#1  
Old 6th October 2006, 17:51
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,258
Thanks: 76
Thanked 23 Times in 19 Posts
Default about: tuning apache2

I am refering to this howto: http://www.howtoforge.com/configurin...um_performance

has anyone taken an approach to get it done using a perfekt debian install 3.1 ?

I mean that howto only tells us "roughly" what needs to be done, I still need some advice on how one would go ahead and set up another apache (lightweighted) to server static content...

I mean how to integrate it with ispcfg...

can someone give me some hints?
Reply With Quote
Sponsored Links
  #2  
Old 6th October 2006, 23:04
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,258
Thanks: 76
Thanked 23 Times in 19 Posts
Default

besides that I did some additional digging and found another similar tutorial:http://servers.linux.com/servers/06/....shtml?tid=118 the only difference is they use lighttpd but still I need some hints on how to use this with ispcfg especially how to adapt the existing vhosts, or how to create or copy those vhosts so that lightpd serves static content for all of them, maybe even fastcgi...

here is another similar article using mongrel instead of lighttpd: http://blog.innerewut.de/articles/20...er-and-mongrel

and another one for mongrel serving ruby on rails applications: http://mongrel.rubyforge.org/docs/apache.html

another one: http://blog.codahale.com/2006/06/19/...trano-and-you/

Last edited by Ovidiu; 7th October 2006 at 14:20.
Reply With Quote
  #3  
Old 7th October 2006, 14:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,729 Times in 2,567 Posts
Default

These pages contain some configuration examples: http://forum.lighttpd.net/topic/1711
http://www.serverwatch.com/tutorials...0825_3290851_1
http://undeadly.org/cgi?action=artic...&mode=expanded
http://www.cafesoft.com/products/cam...erseProxy.html

You can put the reverse proxy configuration into the Apache Directives field of the respective web site in ISPConfig.
__________________
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
  #4  
Old 7th October 2006, 14:32
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,258
Thanks: 76
Thanked 23 Times in 19 Posts
Default

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:

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?

I will try first to get the part with the static content running on another small webserver going.

the problems I see are basically this:

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?

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

oh and what about having a slim apache2 running in the background serving the static pages? I mean there I could just copy the vhost configurations, that would be the easieast to implement, abd I guess tehre would really be a noticeable difference as my apache2 processes usually have between 12 - 24 MB serving dynamic content...

Last edited by Ovidiu; 7th October 2006 at 23:27.
Reply With Quote
  #5  
Old 8th October 2006, 15:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,729 Times in 2,567 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
  #6  
Old 8th October 2006, 21:50
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,258
Thanks: 76
Thanked 23 Times in 19 Posts
Default

well I understood it like this (I hope I got it right:-)

downlaod source of apache2 => /usr/local/src
h898552:/usr/local/src/httpd-2.2.3# ./configure --prefix=/usr/local/apache2 --enable-proxy --enable-proxy-http --enable-cache --enable-mem_cache

these are the modules

still working on it... I thought I might need, then make, folowed by make install


=> I can start it from /usr/local/apache2/bin/apache2ctl start after modifying the "Listen localhost:88" so now it runs on port 88 and the original can continue running on port 80.

next step would be to copy /etc/apache2/apache2.conf to /usr/local/apache2/http.conf and change all relevant paths and ports that might disturb...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI with Apache2 on Debian jchaven Server Operation 7 25th August 2008 17:06
Apache2 without APXS ctroyp Installation/Configuration 8 29th January 2007 03:05
Web server offline after php4 and apache2 upgrade dfriis Installation/Configuration 11 7th December 2006 16:14
PHP on Apache2 no longer works after ISPconfig azorman Installation/Configuration 6 23rd July 2006 22:06
Big problem with apache2 on Ubuntu piratta Installation/Configuration 2 18th January 2006 17:29


All times are GMT +2. The time now is 07:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.