Welcome! Log In Create A New Profile

Advanced

reverse_proxy from Apache to nginx?

Posted by WhyT 
reverse_proxy from Apache to nginx?
April 29, 2011 12:20PM
Hi!
I have a special reverse_proxy Config from my Apache Server and i don't know how i must configure nginx to have the same. Here the Apache part:

ProxyPass /domain-com-path/ http://domain.com/
ProxyPassReverse /domain-com-path/ http://domain.com/
ProxyHTMLURLMap http://domain.com /domain-com-path
<Location /domain-com-path/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /domain-com-path/
ProxyHTMLURLMap /domain-com-path /domain-com-path
ProxyHTMLDoctype "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"
</Location>

So i have a domain named: mydomain.com and a domain named domain.com and now i will have www.mydomain.com/domain-com-path/

hope u know what i mean, and u can help?

best wishes
Michael
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready