Welcome! Log In Create A New Profile

Advanced

Re: Location

basti
January 11, 2019 01:12PM
On 11.01.19 17:35, petrosetta wrote:
> Hi All
> I am trying to redirect to an internal server behind nginx that I really
> have no permissions to change. When you browse to the site normally at
> https://www.devapp.com for example it redirects to
> https://www.devapp.com/webaccess and it comes up fine. When I put in the
> nginx entries for it below and try to browse to it through nxinx such as
> https://www.mysite.com/webaccess the site comes up all garbled and missing
> some images. When I checked the structure of the site, I am noticing that
> the images directory is above the webaccess directory. Any ideas on how I
> can get the site to display correctly through nginx? I hope I supplied clear
> enough information. Thanks.
>
> upstream devapp {
> server 192.168.1.18:443;
> }
>
> location /webaccess/ {
> proxy_pass https://devapp;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> add_header X-Frame-Options SAMEORIGIN;
> add_header X-Content-Type-Options nosniff;
> add_header X-XSS-Protection "1; mode=block";
> add_header Strict-Transport-Security
> "max-age=31536000;includeSubDomains" always;
> }

Hello,

https://www.devapp.com redirect to https://www.mysite.com/webaccess
right?

Please show us the complete server block and an "image" URL for example.
As I understand it in the right way you must also redirect / to the proxy.



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

Location

petrosetta January 11, 2019 11:35AM

Re: Location

basti January 11, 2019 01:12PM

Re: Location

petrosetta January 11, 2019 01:51PM

Re: Location

basti January 11, 2019 02:22PM

Re: Location

petrosetta January 11, 2019 02:44PM

Re: Location

basti January 11, 2019 03:24PM

Re: Location

petrosetta January 11, 2019 04:04PM

Re: Location

basti January 12, 2019 11:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready