mercredi 13 mai 2015

vHosts und Proxy

Hallo zusammen,

ich versuche mich gerade daran, einen vHost anzulegen als Reverse Proxy.

vHosts: intra.example.com
Ziel: http://ift.tt/1e0ODDm

Mein Ziel ist es also, eine Anwendung, die in einem Unterverzeichnis auf "webhost.example.com" zu erreichen ist, auf einem vHost abzubilden.

Ist das möglich? Habe es mit proxy_html versucht, aber das haut absolut nicht hin... Ich vermute, dass ich einen komplett falschen Ansatz habe.

Freue mich über eure Hilfe :-)



Code:

<VirtualHost *:80>
        ServerName intra.example.com

        <Proxy *>
                Order deny,allow
                Allow from all
        </Proxy>

        ProxyRequests off

        ProxyPass /webapp/ http://ift.tt/1AW7e8m
        ProxyHTMLURLMap http://ift.tt/1AW7e8m /webapp

        <Location /webapp/>
                ProxyPassReverse http://ift.tt/1AW7e8m
                SetOutputFilter proxy-html
                ProxyHTMLURLMap / /webapp/
                ProxyHTMLURLMap /webapp /webapp
        </Location>

        ProxyPreserveHost On


</VirtualHost>



Aucun commentaire:

Enregistrer un commentaire