nimzok
November 13, 2019, 6:40pm
1
I’d like to achieve the following:
move default piaware status page to another port than 80
move skyview from 8080 to 80 port
How to get this done in the lighthttpd config?
Would appreciate any help at a level of a Linux user with basic skills.
Piotr
Edit the appropriate files in this folder:
/etc/lighttpd/conf-enabled
If you need more detail, someone else will have to provide it.
Oh to apply changes, restart lighttpd.
nimzok
November 13, 2019, 6:47pm
3
Thanks for your prompt reply.
I’ve already read lots of posts regarding files /etc/lighttpd/conf-enabled, but I’m not 100% sure which changes to apply in order not to mess up or brick my pi.
Well the real files are in
/etc/lighttpd/conf-available
Copy them somewhere else and start experimenting.
(in conf-enabled are just symlinks)
Also try understanding the syntax, it’s not that complicated.
nimzok
November 13, 2019, 6:57pm
5
Would you like to correct me pls if I am wrong:
FILE: lighthttpd.conf:
server.port = 80
change to (let’s say):
server.port = 8484
FILE 89-dump90-fa.conf
Listen on port 8080 and serve the map there, too.
$SERVER[“socket”] == “:8080” {
alias.url += (
“/data/” => “/run/dump1090-fa/”,
“/” => “/usr/share/dump1090-fa/html/”
)
}
CHANGE TO
Listen on port 80 and serve the map there, too.
$SERVER[“socket”] == “:80” {
alias.url += (
“/data/” => “/run/dump1090-fa/”,
“/” => “/usr/share/dump1090-fa/html/”
)
}
Not how i would do it, but might work
You’ve got backups, just try it … how else would you learn?
nimzok
November 13, 2019, 7:08pm
7
Would you like to let me know your way of doing this ;-)?
nimzok
November 13, 2019, 7:37pm
8
The method I suggested here worked.
@wiedehopf - thnx for encouraging me to experiment