reverse proxying --> mega slow

    Date: 05/21/05 (Apache)    Keywords: web, hosting, apache

    [Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]

    hello all -- i don’t know where else to ask my question, so here we go. first, background on my setup. i have two webservers on an internal network, each to be responsible for hosting a unique site. i have one public IP, and all port 80 traffic is being forwarded to a third machine running mac os x server. so obviously, there would need to be some high level packet rewriting to get these requests to the correct box via the mac os x server machine. the solution? well besides acquiring another public ip (or two), reverse proxying (right?)

    the problem at the moment is that it is slow as balls. see for yourself --> http://mczapp.darktech.org (click on a japan page). the pictures come up pretty slow. compare this to behind the firewall (http://192...), the images and pages load lightning quick. what’s the deal? is it just by virtue of reverse proxying? my friend says no, based on his experience. is it that mac os x server’s apache build is just fucked/bloated like whoa? i mean, the computer is fast enough to be doing this, too. should i do precaching (i don’t even know how to do that).

    Listen *:80
    Port 80
    NameVirtualHost *:80

    ## default virtual host ###
    # if someone gets to this server with an invalid virtualhost URL
    # it’ll default to this configuration because it’s listed first

    DocumentRoot /var/docroot
    ServerName default.mcdefaulty.com
    Options -Indexes




    ######### John’s websites #########

    DocumentRoot /var/docroot/zero.darktech.org
    ServerName zero.darktech.org
    Options -Indexes
    ErrorLog “/var/log/httpd/zero.darktech.org-error.log”
    CustomLog “/var/log/httpd/zero.darktech.org-access.log” combined

    # Proxy stuff
    ProxyRequests Off
    ProxyPass / http://192.168.0.200:1337/
    ProxyPassReverse / http://192.168.0.200:1337/



    DocumentRoot /var/docroot/mczapp.darktech.org
    ServerName mczapp.darktech.org
    Options +Indexes
    ErrorLog “/var/log/httpd/mczapp.darktech.org-error.log”
    CustomLog “/var/log/httpd/mczapp.darktech.org-access.log” combined

    # Proxy stuff
    ProxyPass / http://192.168.0.200:1338/
    ProxyPassReverse / http://192.168.0.200:1338/

    in case there is something i’m forgetting. i don’t know enough about reverse proxying to really troubleshoot, so i submit to the wisdom of the lj comm.

    thanks for your help =D

    Source: http://www.livejournal.com/community/apache/19923.html

« Case Sensitive URLs on Windows || Installation »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home