Describe Guides/ChangeAdministrationWebsitePort here.
Change the port of the administration website
Oleg firmware version: 1.9.2.7-7f
I want to access a website running on my Asus WL-500gx router on both the LAN and WAN side using port 80, but this port is used by the administration website. So I started looking but found no pleasing help, only people routing with iptables. But after downloading the source code and looking at some code I found in the file rc.diff that the webserver uses a variable stored in nvram containing the port number:
$ nvram get http_lanport 80
And here is how to change it to port 8080:
$ nvram set http_lanport=8080 $ nvram commit
Now you need to reboot:
$ reboot
Just wait a few seconds and point your browser to
http://192.168.1.1:8080. Now you can edit the configuration of your second webserver to use port 80.
The WAN-port of the administration website uses also a nvram variable:
$ nvram get misc_httpport_x 8080
But changing that is already covered in the administration website.
