Forum Moderators: phranque
I want to increase the number of test sites available. Currently I do this by renaming the top directory of the test sites so that the one I want is called "Test Site". But I'm sure that there should be a more sophisticated way of doing things than that!
My knowledge of Apache is miniscule, so I would be grateful if someone could advise.
In httpd.config I have:
ServerName localhost:8080
DocumentRoot "E:/Documents/Test Site"
<Directory "E:/documents/Test Site">
UserDir "E:/documents/Test Site"
I have a separate Linux file server that also has Apache running to use as a development server.
- Each web site is off of a single directory that's shared to make the sites easy to edit
- Port 80 is mapped to /web/rootweb - the only file in that directory is index.html that shows the sites on the server (have to manually edit it)
- Each other site is given a different port. I use the ports in the 30,000 range b/c they are not commonly used by other programs. So, if I connect to [server:30000,...] it shows one site while server:30001 shows another. That way I can view any of them without having to change settings.
The setup for Apache is similar to setting up multiple IP addresses to map to different sites. But, instead of using the ip address for the virtual host, you use *:port .
- Ryan
[webmasterworld.com...]