Welcome! Log In Create A New Profile

Advanced

Access router webpage securely (https) with nginx, how?

Posted by mixpc 
Access router webpage securely (https) with nginx, how?
September 07, 2018 01:46PM
Hello All,

In my current setting (Raspberry Pi running Raspbian (Debian Stretch 9.5) and nginx/1.10.3 (installed via sudo apt-get install nginx)
nginx -v log: https://pastebin.com/RsUmkr30

I have installed SSL certificate successfully and can access my Home Assistant installation securely (SSL) and successfully.

My router allows Web Management Port so the router webpage can be accessed but non-securely.

Please, kindly help configure nginx to access the router securely. I am able to access the router webpage securely but it is not displaying as it should:

router1.png shows router webpage non securely
router2.png shows router configuration
router3.png shows router wepage securely but it is not working

/etc/nginx/sites-available/default
is in
https://pastebin.com/JYwnf8aT

# port 4321 forwards to 4322 as a test since I access port 4322 directly
# this is the SSL server. / links to Home Assistant and and /dev01 should link securely to the router

Thank you in advance for your kind support,
Attachments:
open | download - router1.png (13.2 KB)
open | download - router2.png (46.5 KB)
open | download - router3.png (9.7 KB)
Re: Access router webpage securely (https) with nginx, how?
September 07, 2018 03:09PM
Hello again,

/var/log/nginx/access.log in https://pastebin.com/6xVAyQJY

shows a number of files are expected to be loaded such as...
/login/encrypt.js
/login/login.css
/login/logo.png
/login/top-right.png
/login/username.png
/login/password.png

However, editing file default to:

location /dev01/ {
proxy_pass http://192.168.100.1/login/;
}

will result in "You have no authority to access this router!"

Any piece of advice is appreciated,
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
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