Hi All,
I have a script located in:
/srv/
that I want available to all users, it is basically awstats and it shows different statistics depending on the URL that it is accessed with. To achieve this I have this Directory directive:
<Directory "/srv/ AllowOverride AuthConfig FileInfo Indexes Limit
Options +ExecCGI -Includes -FollowSymLinks -Indexes
Order allow,deny
Allow from all
</Directory>
and this ScriptAlias directive in every VirtualHost container:
ScriptAlias /stats/statistics /srv/
Every virtualhost has a /stats directory where I put the following .htaccess (and associated .htpasswd) file:
AuthUserFile /AuthGroupFile /dev/null
Authname "my.domain.com administration area"
AuthType Basic
<Limit GET>
order deny,allow
allow from all
require user will
</Limit>
The system works fine, when I go to:
I get the stats for my.domain.com and when I go to:
I get the stats for my.other.domain.com and they are accessing the same script at:
/srv/
Unfortunatly the authentication does not work, I have fiddled with the config and it seems to be completely ignoring the .htaccess file. Does anyone have any ideas why this is? I don't want to put a .htaccess file in /srv/ I would rather manage the users access at the virtualhost level. Anyone any ideas about this?
TIA
Will. will@hellacool.co.uk
I have a script located in:
/srv/
that I want available to all users, it is basically awstats and it shows different statistics depending on the URL that it is accessed with. To achieve this I have this Directory directive:
<Directory "/srv/ AllowOverride AuthConfig FileInfo Indexes Limit
Options +ExecCGI -Includes -FollowSymLinks -Indexes
Order allow,deny
Allow from all
</Directory>
and this ScriptAlias directive in every VirtualHost container:
ScriptAlias /stats/statistics /srv/
Every virtualhost has a /stats directory where I put the following .htaccess (and associated .htpasswd) file:
AuthUserFile /AuthGroupFile /dev/null
Authname "my.domain.com administration area"
AuthType Basic
<Limit GET>
order deny,allow
allow from all
require user will
</Limit>
The system works fine, when I go to:
I get the stats for my.domain.com and when I go to:
I get the stats for my.other.domain.com and they are accessing the same script at:
/srv/
Unfortunatly the authentication does not work, I have fiddled with the config and it seems to be completely ignoring the .htaccess file. Does anyone have any ideas why this is? I don't want to put a .htaccess file in /srv/ I would rather manage the users access at the virtualhost level. Anyone any ideas about this?
TIA
Will. will@hellacool.co.uk