October 16th, 2000, 03:34 PM
On my Win2K laptop, Apache 1.3.x, I keep local copies of a number of website for these offline, or when a client does not have a connection.
These sites are currently all in folders under /htdocs/
I want to have each directory ("foo" "oink", etc.,) act as it's own docroot so URL's of "/" take me to the correct root.
I've looked at Apache's docs. re. virtual name-based hosting but am confused as (in this case) my machine is not on a newtork, it is all "localhost 127.0.0.1" -stuff
What changes do I need make within httpd.conf (and Windows "hosts" file?) to enable this?
October 18th, 2000, 03:58 AM
I do the following to allow access to /htdocs/generator :
In the Win2k hosts file i include a entry :
In the httpd.conf in include :
and just below :
CustomLog logs/generator-access_log common
I restart Apache and can now access what previously was localhost/generator as
Hope it helps,