PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > apache reverse proxying ---> slow ?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

apache reverse proxying ---> slow ?

Réponse
 
LinkBack Outils de la discussion
Vieux 21/05/2005, 18h42   #1
adam.attarian@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut apache reverse proxying ---> slow ?

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).

ammended is my pertinent .conf text, 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 usenet.

thanks!
adam attarian
raleigh,nc
--------------
--------------
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
<VirtualHost *:80>
DocumentRoot /var/docroot
ServerName default.mcdefaulty.com
Options -Indexes

</VirtualHost>


######### John's websites #########
<VirtualHost *:80>
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/
</VirtualHost>

<VirtualHost *:80>
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/
</VirtualHost>

  Réponse avec citation
Vieux 07/06/2005, 19h15   #2
Andy Davidson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache reverse proxying ---> slow ?

[adam.attarian@gmail.com wrote in comp.infosystems.www.servers.unix]
> ServerName zero.darktech.org
> ProxyPass / http://192.168.0.200:1337/
> ProxyPassReverse / http://192.168.0.200:1337/

[...]
> ServerName mczapp.darktech.org
> ProxyPass / http://192.168.0.200:1338/
> ProxyPassReverse / http://192.168.0.200:1338/


Hi, Adam --

If these sites are hosted on the same box behind your firewall
then (apart from for reasons such as tcp offloading, and dropping
the number of requests hitting that box if it's slow), why can't
this box 'sit' on the public ip address, and why not use virtual
hosting to mean both sites can sit on the same address ?



--
http://fotoserve.com/ -
Superb hand-checked AGFA prints, bright sharp posters,
strong block canvas prints, unique picture bags and gifts
..... from your own digital images.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h52.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10305 seconds with 10 queries