Working :) I had a trailing "/" after 8080 that was breaking it server { listen 80; server_name 192.168.1.25; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name 192.168.1.25; root /var/www/html; index index.html index.htm indby abasel - How to...
Thought that I had it sorted but alas notby abasel - How to...
Nearly there I think. The below gives me the correct 403 response. If I however add allow 192.168.1.51 I then get a 404 error. I think it has something to do with the reserve proxy. location ^~ /paperui/ { proxy_pass http://localhost:8080/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxyby abasel - How to...
Even when I try the following I get a 404 error whenever browsing to any URL with 'paper' in it location ~ paper { allow all; deny 192.168.1.5; }by abasel - How to...
The following appears to almost work server { listen 80; server_name 192.168.1.25; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name 192.168.1.25; root /var/www/html; index index.html index.htm index.nginx-debian.html; ssl_certificateby abasel - How to...
I am using Nginx on my Ubuntu 18.04 box, running OpenHAB. I am only wanting a particular IP on my network to be able to browse to any URL with '/paperui/' in the address. My configuration files looks as follows: server { listen 80; server_name mydomain_or_myip; return 301 https://$server_name$request_uri; }by abasel - How to...