|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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> |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
[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. |
|
![]() |
| Outils de la discussion | |
|
|