public:fbsd_lighttpd_redirect
Lighttpd: redirect in HTTPS
redirect all traffic in HTTPS equivalent URL
- lighttpd.conf
$SERVER["socket"] == ":80" { $HTTP["host"] =~ "(.*)" { url.redirect = ( "^/(.*)" => "https://%1/$1" ) } }
redirect only a particular pattern URL
- lighttpd.conf
$HTTP["scheme"] == "http" { url.redirect = ("^/(phpmyadmin/.*)" => "https://%1/$1") }
redirect only a particular pattern URL
- lighttpd.conf
$SERVER["socket"] == ":80" { $HTTP["url"] =~ "(.*)/secure" { url.redirect = ( "^/(.*)" => "https://www.example.com/secure/" ) } server.document-root = "/var/www" }
—
return to gimbo wiki home page
public/fbsd_lighttpd_redirect.txt · Last modified: by 127.0.0.1