LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Alias isn't working (https://www.linuxquestions.org/questions/linux-software-2/apache-alias-isnt-working-298758/)

soren625 03-07-2005 12:17 PM

Apache Alias isn't working
 
Hi all,

I am trying to add an alias that will allow me to view Webalizer statistics from the Web.

I added this to my httpd.conf:

Code:

#
# Webalizer usage statistics page
#
Alias /usage/ "/var/www/usage/"

<Directory "/var/www/usage">
        AllowOverride All
        Options None
        Order allow,deny
        Allow from ALL
</Directory>

However, this is what I get when I try to restart apache after the change:

Code:

Starting httpd: [Mon Mar 07 13:10:53 2005] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 530 will probably never match because it overlaps an earlier Alias.
and I get a 403 Forbidden message saying I don't have permission to access usage/index.html

I don't know where the "overlap" is. The only other alias is my ScriptAlias pointing to my cgi-bin folder.


Can anyone help me??

acid_kewpie 03-07-2005 04:19 PM

does your apache installation use multiple configuration files all #included into httpd.conf? check all the contents of /etc/httpd/conf.d/ or such like. It's kinda hard to ignore an error message so impresively explicit as that one. tried just using a different name?

soren625 03-07-2005 04:34 PM

Incredible. You are my hero. I had never even conceived of trying a different name for the alias. And it worked!!!

Thanks!

acid_kewpie 03-07-2005 04:46 PM

aww bless! :D


All times are GMT -5. The time now is 11:40 AM.