jmadsen Posted September 3, 2012 Report Posted September 3, 2012 Don't know how to better describe that for the title. The problem is: I use vhosts extensively for my work, but occasionally I just slap some files into a localhost/mysite When I use a vhost, I can set my first vhost the way it comes "out of the box": <VirtualHost _default_:80> DocumentRoot C:/UniServer/www ServerName localhost ErrorLog "logs/error.log" CustomLog "logs/access.log" common</VirtualHost> But if I want to use localhost/mysite, I have to change it to: <VirtualHost localhost:80> DocumentRoot C:/UniServer/www ServerName localhost ErrorLog "logs/error.log" CustomLog "logs/access.log" common</VirtualHost> Which is a pain, obviously, as it includes an apache restart. my httpd.conf is set to: ServerName localhost .htaccess doesn't seem to be what is affecting it. Would really appreciate ti if someone could give me a lead on this! Thanks, Jeff Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.