View Single Post
  #5  
Old 8th October 2006, 15:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by Tenaka
I started reading through the links you gave me, but can you tell me if its basically possible to do this while still using ispcfg on debian:
Sure, just put the configuration in the Apache Directives field.

have apache2 keep his existing setup and role as a primary server but have him proxy requests for static content to another server and requests for fastcgi to another server?

Quote:
Originally Posted by Tenaka
apache2 is already fully working so I would only need to setup the proxy module for it and have it redirecting requests for i.e. images to the small webserver but that small webserver would need "a copy" of the vhost configuration of apache2 to know which sites and how it is serving, right?
In the reverse proxy configuration you can specify a totally different URL and port, so it's totally up to you how you do it:

Code:
<VirtualHost *:80>
      ServerName myrailsdomain.com
      ProxyPass / http://totallydifferentdomain.com:<port, if different from 80>/
      ProxyPassReverse / http://totallydifferentdomain.com:<port, if different from 80>/
      ProxyPreserveHost on
</VirtualHost>
Quote:
Originally Posted by Tenaka
now how would I go ahead and copy this config if I would use lighttpd as a server for static content??
basically the same as asked here: http://forum.lighttpd.net/topic/1167#new
You can use any webserver software you like for serving your static content, this doesn't influence the reverse proxy configuration on your Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote