httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From will <w...@hellacool.co.uk>
Subject Re: [users@httpd] Scriptaliased directory authentication problem
Date Sat, 29 Mar 2003 18:07:34 GMT
On Thu, 2003-03-27 at 23:24, will wrote:
> Hi All,
> 
> I have a script located in:
<snip>

OK, I have tried to get the system working with that config (see my
previous email in the thread for details).  I am trying a different
approach.  I have given every virtualhost a statistics directory inside
their /stats directory:

will@p15114251:/www/somefakedomain.com/htdocs> cd stats
will@p15114251:/www/somefakedomain.com/htdocs/stats> ls -laR
.:
total 20
drwxr-xr-x    3 will     users        4096 2003-03-29 18:36 .
drwxr-xr-x   17 will     www          4096 2003-03-27 18:40 ..
-rw-r--r--    1 will     users         285 2003-03-29 18:36 .htaccess
-rw-r--r--    1 will     users          19 2003-03-29 14:10 .htpasswd
drwxr-xr-x    2 will     users        4096 2003-03-29 18:42 statistics

./statistics:
total 12
drwxr-xr-x    2 will     users        4096 2003-03-29 18:42 .
drwxr-xr-x    3 will     users        4096 2003-03-29 18:36 ..
-rw-r--r--    1 will     users          48 2003-03-29 18:42 .htaccess

The .htaccess in the /stats/.htaccess file contains the authentication
directives, and the /stats/statistics/.htaccess file contains the line:

DirectoryIndex / /cgi-stats/awstats.pl

and the httpd.conf contains a ScriptAlias for /cgi-stats/.  Now I do get
asked for the username and password when going to:

http://somefakedomain.com/stats/statistics/

but I get a not found when I go to:

http://somefakedomain.com/stats/statistics/awstats.pl

I have tried these alternative DirectoryIndex directives:

DirectoryIndex /cgi-stats/awstats.pl
DirectoryIndex awstats.pl /cgi-stats/awstats.pl

but this still does not work when I go to:

http://somefakedomain.com/stats/statistics/awstats.pl

Any ideas?

Will.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message