February 8th, 2012, 01:02 PM
Setting document root for just one domain?
Sorry for this very basic question.
I've created a virtualhost like this:
This overwrites the default docroot, so I can't access anything on localhost, everything just redirects to the new VirtualHost's docroot. Obviously I want only one domain for that to happen. Is there a way to do this?
Allow From All
Alias /sf c:/users/zane/workspaces/aptana/pb//lib/vendor/symfony/data/web/sf
Allow from All
When I try to create multiple VirtualHosts, everything just uses the docroot of the first one.
I've searched the manual, but haven't really found a solution: http://httpd.apache.org/docs/1.3/vhosts/name-based.html
Probably I have a wrong understanding of the concept of vhosts...
February 8th, 2012, 02:01 PM
You can make a first VirtualHost without a ServerName. That will be given when you access the server with its IP.
And then, create how many VirtualHost-s you want, each one with its ServerName.
February 8th, 2012, 03:33 PM
Hmm, I'd have never thought of this Thanks.