Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Can you specify two testing servers from within Apache? |
|
Author |
|
jim28100
Joined: 30 Mar 2009 Posts: 2 Location: Berkshire UK
|
Posted: Mon 18 May '09 12:10 Post subject: Can you specify two testing servers from within Apache? |
|
|
Hi I’m newbie so please bear with me...
I am currently running Apache2.2/PHP5 on my Windows PC as a testing server. I was (until recently) also running a second testing server over a local network, which was also configured for Apache/PHP. Unfortunately, this machine is no longer configured as a testing server.
Non-secure work files will still remain on this server. Therefore, is it possible to specify two different test areas from within my local version of Apache, one on my local machine (for secure work) and one on the local network?
I know I can stop Apache, swap over ‘DocumentRoot’ and ‘Directory’ and restart it again but it would be very useful to be able to access both without doing this.
I hope someone can help?
Jim |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 18 May '09 16:27 Post subject: |
|
|
If you run apache as service you can change the httpd.conf without stopping apache and than just restart it with the changed config file. Apache parses the config file at startup / restart, but than you can do what ever you want to do with that file.
e.g.
Code: |
C:\apache2\bin\httpd -k start
|
maybe you check the correct syntax before restarting with
Code: |
C:\apache2\bin\httpd -S
|
|
|
Back to top |
|
|
|
|
|
|