wx4tcc
Edit file lighttpd.conf, and change port number from default 80 to whatever number you want.
STEP-1 of 4
Open file in nano
STEP-2 of 4
Scroll down to line "server.port =80"
Change port number as you want
STEP-3 of 4
Save file (Ctrl+o) and close it (Crtl+x)
STEP-4 of 4
RESTART lighttpd to implement changes
EDIT:
After changing port number from default 80 to 8036 in file lighttpd.conf, the address will be as follows:
Above is an example for following case:
(1) Port # 8036 is opened in router for your Pi and Application "HTTP" or "WEBSERVER"
(2) In file lighttpd.conf, item server.port is changed from default 80 to 8036
(3) Your Internet IP is 46.72.156.2
Edit file lighttpd.conf, and change port number from default 80 to whatever number you want.
STEP-1 of 4
Open file in nano
Code:
sudo nano /etc/lighttpd/lighttpd.conf
Scroll down to line "server.port =80"
Change port number as you want
Code:
server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_redirect", ) server.document-root = "/var/www/html" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" [B][Color=#Ff0000]server.port = 80[/color][/b] index-file.names = ( "index.php", "index.html", "index.lighttpd.html" ) url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) .... .... ....
Save file (Ctrl+o) and close it (Crtl+x)
STEP-4 of 4
RESTART lighttpd to implement changes
Code:
sudo systemctl restart lighttpd
EDIT:
After changing port number from default 80 to 8036 in file lighttpd.conf, the address will be as follows:
Above is an example for following case:
(1) Port # 8036 is opened in router for your Pi and Application "HTTP" or "WEBSERVER"
(2) In file lighttpd.conf, item server.port is changed from default 80 to 8036
(3) Your Internet IP is 46.72.156.2
Comment