Forum Moderators: phranque

Message Too Old, No Replies

Running multiple test sites on local host

Is this possible?

         

HarryM

3:09 pm on Nov 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Currently I have an Apache server running as local host 8080 on a Windows 2000 PC which I use for running a single test site. All files are under a directory named "Test Site".

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"

Nutter

1:40 pm on Nov 8, 2004 (gmt 0)

10+ Year Member



Here's what I do for the half dozen or so sites I'm working on:

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

ukgimp

2:07 pm on Nov 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



oh yes

[webmasterworld.com...]

HarryM

2:51 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the help. I should be able to set it up now.

Harry