So I have a small server with Lighttpd and I have installed PhpMyAdmin on it.
This is the default configuration. The Computer is accessible from the Internet on Port 80.
How can I make phpMyAdmin to listen on another port other then 80 ?
Or how can I make it to listen only on a specific subdomain ?
# Alias for phpMyAdmin directory
alias.url += (
"/phpmyadmin" => "/usr/share/phpmyadmin",
)
# Disallow access to libraries
$HTTP["url"] =~ "^/phpmyadmin/templates" {
url.access-deny = ( "" )
}
$HTTP["url"] =~ "^/phpmyadmin/libraries" {
url.access-deny = ( "" )
}
$HTTP["url"] =~ "^/phpmyadmin/setup/lib" {
url.access-deny = ( "" )
}
# Limit access to setup script
$HTTP["url"] =~ "^/phpmyadmin/setup" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/phpmyadmin/htpasswd.setup"
auth.require = (
"/" => (
"method" => "basic",
"realm" => "phpMyAdmin Setup",
"require" => "valid-user"
)
)
}