logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can you specify two testing servers from within Apache?
Author
jim28100



Joined: 30 Mar 2009
Posts: 2
Location: Berkshire UK

PostPosted: Mon 18 May '09 12:10    Post subject: Can you specify two testing servers from within Apache? Reply with quote

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

PostPosted: Mon 18 May '09 16:27    Post subject: Reply with quote

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


Reply to topic   Topic: Can you specify two testing servers from within Apache? View previous topic :: View next topic
Post new topic   Forum Index -> Apache