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: Need Help Creating & Using Virtual Servers |
|
Author |
|
barrygood
Joined: 09 May 2007 Posts: 4
|
Posted: Wed 09 May '07 22:54 Post subject: Need Help Creating & Using Virtual Servers |
|
|
Hello all,
I need help with setting up and using virtual servers.
I have the Apache running well, along with my PHP, MySQL, and my main web site.
The problem I'm faced with now is that I'm working on more web sites offline through Dreamweaver, and when I create a server for them, I have to manually go to the root of my server and add a folder name to place my new web site in, which is still inside of my main website folder.
How can I create virtual servers where each web site can be worked on without being inside of the main server files?
I thank you in advance for your valued time. |
|
Back to top |
|
slamdunk872001
Joined: 13 Apr 2007 Posts: 6 Location: Ho Chi Minh
|
Posted: Thu 10 May '07 1:23 Post subject: |
|
|
there are a lot of topic about that ...
just configure httpd.conf
add:
Code: |
NameVirtualHost 12.34.56.78:80
<VirtualHost 12.34.56.78:80>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot "E:/Appserv/www/"
</VirtualHost>
<VirtualHost 12.34.56.78:80>
ServerName domain.com
ServerAlias forum.domain.com
DocumentRoot "E:/Appserv/www/forum"
</VirtualHost> |
or you can use this one for port
Code: | <VirtualHost 12.34.56.78:80>
ServerName mail.domain.com
ProxyPass / http://12.34.56.78:3000/
ProxyPassReverse / http://12.34.56.78:3000/
</VirtualHost> |
Last edited by slamdunk872001 on Thu 10 May '07 1:52; edited 1 time in total |
|
Back to top |
|
barrygood
Joined: 09 May 2007 Posts: 4
|
Posted: Thu 10 May '07 1:50 Post subject: |
|
|
Thanks for the info.... i'll get right on it.
I just download a program listed here called ZPanel. I am assuming that it will allow the logging in of the different virtual servers. |
|
Back to top |
|
slamdunk872001
Joined: 13 Apr 2007 Posts: 6 Location: Ho Chi Minh
|
Posted: Thu 10 May '07 5:08 Post subject: |
|
|
Zpanel is good, but i think it isn't stable as you configure the httpd.conf |
|
Back to top |
|
|
|
|
|
|