Welcome! Log In Create A New Profile

Advanced

problem with the port -Nginx proxy to Apache

Posted by sali 
problem with the port -Nginx proxy to Apache
January 14, 2010 05:37AM
Hi,

My problem is that Nginx prox to Apache:

location / {

set $domain "http://www.mydomain.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_redirect off;
proxy_pass http://127.0.0.1:2013;
}

Apache listens on port 2013, page is displayed correctly bat after the entry www.mydomain.com/forum URI looks www.mydomain.com:2013/forum (port is visible) entering the www.mydomain.com/forum/ problem does not occur - port is not visible.
In version nginx/0.6.32 everything worked correctly after updating to nginx/0.7.62 and nginx-0.8.29 there is a problem.
Someone has met with such a problem? or has any idea ?

Regards,
Sali
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
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