2016-07-05 8 views
0

https://httpd.apache.org/docs/current/mod/mod_proxy.htmlReverse-Proxy-Arten

Nach dieser Überweisung fehlt i Reverse-Proxy in meinem Apache-Server implementiert haben.

ProxyPass "/foo" "http://foo.example.com/bar" 
ProxyPassReverse "/foo" "http://foo.example.com/bar" 

Seiten vom Ursprungsserver abruft, aber Stile sind missing.I die folgenden Module in httpd.conf Datei geladen haben.

LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_http_module modules/mod_proxy_http.so 

Wer hat eine Idee, was ich vermisse?

Antwort

1

Wir müssen auch Reverse-Proxy-Abgleich mit den css/js-Dateiverzeichnisse geben.

ProxyPass "/foo/static/css or js" "http://foo.example.com/static/css or js directory" 
ProxyPassReverse "/foo/static/css or js " "http://foo.example.com/css or js directory"