Welcome! Log In Create A New Profile

Advanced

Location

January 11, 2019 11:35AM
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;
}
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: 266
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