You are not logged in.

#1 2012-01-07 05:57:14

Fallacy
Member
Registered: 2012-01-07
Posts: 5

Apache - Unwanted Redirect to VirtualHost

On my Arch VPS, Apache keeps redirecting the root site (fallaciouslands.net) to the first virtual host in the vhosts file, forum.fallaciouslands.net, even though there's nothing telling it to do that. I've been playing around with the configuration, like putting a simple web root virtual host first, but nothing has worked.

etc/hosts
httpd-vhosts.conf

Offline

#2 2012-01-07 10:24:04

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Apache - Unwanted Redirect to VirtualHost

This is expected behaviour if you don't have a vhost configured that matches "fallaciouslands.net" in the ServerName/Alias. If none matches, it picks the first available.

Offline

#3 2012-01-07 17:48:17

Fallacy
Member
Registered: 2012-01-07
Posts: 5

Re: Apache - Unwanted Redirect to VirtualHost

teekay wrote:

This is expected behaviour if you don't have a vhost configured that matches "fallaciouslands.net" in the ServerName/Alias. If none matches, it picks the first available.

Yeah, I figured that out yesterday. I actually had done it before, but it didn't work when I tried to visit the site, probably because I needed to clear my cache -- stupid Firefox.

Offline

Board footer

Powered by FluxBB