|
|
| Author |
Message |
|
| Guest |
Posted: Thu Jul 20, 2006 1:04 pm |
|
|
|
Guest
|
Hello,
I guess it is a very basic question, but I am not familiar with the
settings of concurrent web servers, reverse proxies, etc.
My system runs Yaws and I am happy with it, but I would need to run
Apache as well. I can set Apache to listen to 8000 (for example)
instead of 80, i.e. to have
http://www.firstdomain.org/ run by Yaws
and http://www.seconddomain.org:8000/ run by Apache.
But I would prefer to get rid of the :8000. My understanding is that I
could use Yaws as a primary server and let it forward the requests for
www.seconddomain.org to Apache.
But I don't understand how to practically implement this. Would
somebody be kind enough to spend some time writing down the piece of
yaws.conf needed to run this example (and any other useful
information)?
Thanks a lot,
J |
|
|
| Back to top |
|
| Ludvig |
Posted: Fri Jul 21, 2006 8:38 am |
|
|
|
User
Joined: 20 Jul 2006
Posts: 38
Location: London
|
I would do it like this.
Set your Apache server on port 80 and the edit the vhost.conf file to point to your yaws server
Code:
<VirtualHost *:80>
ServerName www.seconddomain.com
ServerAlias seconddomain.com *seconddomain.com
DocumentRoot /home/second/docroot
</VirtualHost>
<VirtualHost *:80>
ServerName www.firstdomain.com
ServerAlias firstdomain.com *.firstdomain.com
DocumentRoot /var/yaws/yadayada
ProxyPass / http://firstdomain.com:8000/
ProxyPassReverse / http://firstdomain.com:8000/
</VirtualHost>
Then you can let your apache server do all the forwarding in an easy way. In this way you can run
how many yaws server as you want. Just create a new vhost i the vhost file to the new yaws server.
[/code] |
|
|
| Back to top |
|
| Guest |
Posted: Fri Jul 21, 2006 6:16 pm |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|