Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Use Apache virtual hosts outside the Sites folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Use Apache virtual hosts outside the Sites folder
Authored by: RickMacEldery on Sep 06, '09 01:10:47PM

Well this may not be the solution you are looking for but might put you on the right path:

Instead of using virtual host directive, use the default to localhost.

The first vh block is used for the default localhost, comment everything out. More like an empty virtualhost block.
<virtualhost *:80>
# Document Path "/leave it blank or comment it out with #"
#ServerName leave it blank or comment it out with #
</virtualhost>
By leaving these commented out apache will use documentroot path in the httpd.conf file. (this is the default) for localhost and any unresolved uri's.

change and edit documentroot as need.

standard permission applies... and make sure safe mode in php is off if you are using php.

Hope this helped.
rickmacelderry



[ Reply to This | # ]