Welcome! Log In Create A New Profile

Advanced

Trouble with redirects from backend

Rainer Duffner
February 11, 2017 07:28PM
Hi,

I have typo3 with nginx running behind an nginx reverse-proxy, mapped to a subdirectory.

So, it's www.company.bla/ourtypo3site.

Typo3 has RealURL extension installed and that adds a "slash" at the end if it's not sent by the browser - this is done via a redirect.

The trouble is that when this redirect is issued, the nginx reverse proxy turns it into a redirect into the main site.

www.company.bla/ourtypo3site/some/page

turns into
www.company.bla/some/page

I have the following configuration for nginx on the reverse proxy:


location /ourtypo3 {
include proxy.conf;
proxy_set_header HTTPS on;
proxy_pass http://ourtypo3:80/;
# http://serverfault.com/questions/444532/reverse-proxy-remove-subdirectory
}


How can I fix this?

At first, I tried hard-coding the redirects on the reverse-proxy. But that's a lot of work and not really a solution.

nginx 1.10



Regards
Rainer
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Trouble with redirects from backend

Rainer Duffner February 11, 2017 07:28PM

Re: Trouble with redirects from backend

JoakimR February 19, 2017 03:41PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready