Welcome! Log In Create A New Profile

Advanced

Re: Location

basti
January 11, 2019 02:22PM
On 11.01.19 19:51, petrosetta wrote:
> HI
> Thanks so much for replying. Below is the block and upstream entry. Also,
> let's say without NGINX I bring up the site at
> https://mysite.domain.com/webaccess, when I click on an image, the url is
> https://mysite.domain.com/name_of_image.
>
> 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;
> }
> }
>

As I write before you must also redirect /.
For example something like should work:

location / {
# next line is optional depend on your app
rewrite /webaccess/(.*)$ /webaccess/$1 break;
proxy_pass https://devapp;
...
}

If you have access to server logs that host mysite.domain.com so have a
look on it what's wrong if you have sill problems.


_______________________________________________
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: 45
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