• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Lighttpd, localhost only?

mofaza

Maskin
Joined
Jun 26, 2011
Messages
73
Reaction score
0
Hello, I want phpmyadmin only accessible from localhost, is there any way to do this?
Other tips about securing my server is also appreciated.

Thanks in advance.
 
Last edited:
Lighttpd doesnt support .htaccess files. Anyone got any solution to make phpmyadmin available to localhost only?
 
Found the solution myself, so I post it here if someone wants it. :)

in /etc/lighttpd/lighttpd.conf

add this code somewhere:
Code:
$HTTP["host"] == "example.no-ip.org" {
    #!~ is a perl style regular expression not match
    $HTTP["remoteip"] !~ "^(127.0.0.1)$" {
        $HTTP["url"] =~ "^/phpmyadmin/" {
            url.access-deny = ( "" )
        }
    }
}
 
Back
Top