A basic question. If I have a RPi on my LAN with an IP address 192.168.x.xx
, then I can type 192.168.x.xx/Skyaware/
in a browser on a desktop machine on the LAN to see the Skyaware map or 192.168.x.xx/Graphs1090/
to see performance graphs etc. I assume /Skyaware/
and /Graphs1090/
are names for ports. How do I go about setting up a new service with a new port and associated name? TIA
Not ports. Virtual host directories.
Specified in the lighttpd server configuration
Ok, I was also looking at those lighttpd .conf files for graphs1090. In my case I have a very simple static web page that has a table. The part I don’t understand in the 88-graphs1090.conf
file is in the section:
alias.url += (
"/graphs1090/graphs/" => "/run/graphs1090/",
"/graphs1090/" => "/usr/share/graphs1090/html/",
)
It seems like I would need the equivalent of the second line only
"/graphs1090/" => "/usr/share/graphs1090/html/",
Don’t understand the first line:
"/graphs1090/graphs/" => "/run/graphs1090/"
Ok, that was easy. Made a file
90-actable.conf
in
/etc/lighttpd/conf-available
.
Made a symbolic link in
/etc/lighttpd/conf-enabled
to the file.
sudo ln -sf /etc/lighttpd/conf-available/90-actable.conf /etc/lighttpd/conf-enabled/90-actable.conf
The file 90-actable.conf
just has
alias.url += (
"/actable/" => "/usr/share/actable/html/"
)
where the directory
/usr/share/actable/html
has the html file, Javascript file, and data for the table.
Restarted lighttpd.
Seems to work ok.
Edit to add; I changed the title of the thread to Virtual host directory.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.