Код:
lighttpd.conf
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/etc/ssl/server.pem"
ssl.ca-file = "/usr/local/etc/ssl/server.crt"
server.name = "stat.mynet"
server.document-root = "/usr/local/var/www/stat/"
}
Код:
lighttpd.conf
$SERVER["socket"] == "192.168.0.1:443" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/etc/ssl/server.pem"
ssl.ca-file = "/usr/local/etc/ssl/server.crt"
server.name = "stat.mynet"
server.document-root = "/usr/local/var/www/stat/"
}
$SERVER["socket"] == "adm.loc.net:443" {
ssl.engine = "enable"
ssl.pemfile = "/usr/local/etc/ssl/server.pem"
ssl.ca-file = "/usr/local/etc/ssl/server.crt"
server.name = "adm.loc.net"
alias.url = ( "/img" => "/usr/local/var/www/stat/img/", "/i" => "/usr/local/var/www/stat/i/" )
server.document-root = "/usr/local/var/www/stat/cgi-bin/adm/"
}
все работат, но есть одна маленькая ошибка, если из админки зайти в статистику клиента, то обратно по кнопке "администрирование" уже не возвращается:
в админке ссылки вида
Код:
https://adm.loc.net/adm.pl
а по кнопках "администрирование", "данные клиента", "счет" -
Код:
https://adm.loc.net/cgi-bin/adm/adm.p