Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2814 → Rev 2920

/conf/lighttpd/vhosts.d/alcasar-with-ssl.conf
20,16 → 20,12
ssl.use-compression = "disable"
ssl.honor-cipher-order = "enable"
ssl.cipher-list = "ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS"
 
var.server_name = "alcasar.localdomain"
server.name = server_name
 
server.document-root = "/var/www/html"
}
 
$HTTP["scheme"] == "https" {
 
alias.url = (
"/save" => "/var/Save"
)
81,11 → 77,6
}
 
$HTTP["scheme"] == "http" {
# Force HTTPS for specific pages
# $HTTP["url"] =~ "^/(acc|save|(intercept|password).php)" {
$HTTP["url"] =~ "^/(acc|save)" {
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "https://%0$0")
}
}
# Force HTTPS on all pages
url.redirect = ("" => "https://${url.authority}${url.path}${qsa}")
}
/conf/lighttpd/vhosts.d/alcasar-without-ssl.conf
82,7 → 82,6
 
$HTTP["scheme"] == "http" {
# Force HTTPS for specific pages
# $HTTP["url"] =~ "^/(acc|save)" {
$HTTP["url"] =~ "^/(acc|save)" {
$HTTP["host"] =~ ".*" {
url.redirect = (".*" => "https://%0$0")