Saturday 24 May 2014

apache2: [warn] The Alias directive in /etc/apache2/sites-enabled/httpd at line 47 will probably never match because it overlaps an earlier Alias.

Apache shows this warning because the user may used two Alias for the same path in the Apache configuration files. In my case i used two alias  given as follows:

        Alias /static/ /home/user/site/static/

        <Directory /home/user/site/static>
        Order deny,allow
        Allow from all
        </Directory>

and

         Alias /static/ /home/user/site/static/
         <Location "/static/">
             Options -Indexes
         </Location>

So, i removed the second one.

No comments:

Post a Comment