Lighttpd Subhost issue
I have tried several different methods with no success. The main domain site and
I'll call it example.co.uk
example.co.uk also works as expected also using the config
I have the following A Name records set
database and xcache
I have tried:
$HTTP["host"] == "database.example.co.uk" {
server.document-root = "/usr/share/phpmyadmin"
}
$HTTP["host"] == "xcache.example.co.uk" {
server.document-root = "/usr/share/xcache/admin"
}
But this isn't working. Instead I am shown a server not found page.
Any help would be appreciated.
6 Replies
OFF TOPIC:
What suggestions would you have to securing such parts of a site? as it would be nice to have access to them quickly if needed in the future.
Oh and thank you for the replys.
@dacoxall:
What suggestions would you have to securing such parts of a site?
Make them only accessible from localhost. When you need to access them, set up port forwarding through an SSH tunnel.
ssh -L 8080:127.0.0.1:80 username@hostname
If you're using PuTTY on Windows, the relevant settings are found in Connection -> SSH -> Tunnels.
Then you can browse to