Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm getting this warning from Apache:

The Alias directive in /etc/httpd/conf.d/foo.conf at line 10 will 
probably never match because it overlaps an earlier Alias.

However the Alias overlaps on a completely different virtual host.

Might this be caused because one alias is on a name-based virtual host while the other alias is on an IP-based virtual host?

Everything is working fine, just the warning is a bit annoying...

share|improve this question

1 Answer 1

up vote 2 down vote accepted

This warning was because the Alias directive was part of a include file, causing the Alias to be applied globally, rather than on a single virtual host.

share|improve this answer
    
Nice! Thanks for that. I was making the same mistake. –  Gerry Nov 14 '13 at 14:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.