Jump to content
Froxlor Forum
  • 0

[solved] ligHTTPd und SSL


Tobias Renger

Question

Hallo,

 

ich nutze ligHTTPd als Webserver. Nachdem Aktivieren der SSL Option f?r eine Domain, legt Froxlor zwei example.com.conf Dateien im /etc/lighttpd/conf-enabled/vhosts Ordner an (example.com dient nur als Platzhalter URI). Ich sch?tze eine ist f?r Port 80 (52_example.com.conf) und die andere f?r Port 443 (62_example.com.conf).

 

52_example.com.conf:

$HTTP["host"] =~ "(?:^|\.)example\.com$" {
 server.document-root = "/var/customers/webs/service/example.com/"
 fastcgi.server = (
       ".php" => (
               "localhost" => (
               "socket" => "/var/run/lighttpd/service-example.com-php.socket",
               "bin-path" => "/usr/bin/php-cgi -c /var/www/php-fcgi-scripts/service/example.com/php.ini",
               "bin-environment" => (
                       "PHP_FCGI_CHILDREN" => "0",
                       "PHP_FCGI_MAX_REQUESTS" => "250"
               )
       )
       )
 )
 alias.url = ( "/webalizer/" => "/var/customers/webs/service/webalizer/" )
 accesslog.filename    = "/var/customers/logs/service-access.log"
}

 

62_example.com.conf:

$HTTP["host"] =~ "(?:^|\.)example\.com$" {
 server.document-root = "/var/customers/webs/service/example.com/"
 fastcgi.server = (
       ".php" => (
               "localhost" => (
               "socket" => "/var/run/lighttpd/service-example.com-php.socket",
               "bin-path" => "/usr/bin/php-cgi -c /var/www/php-fcgi-scripts/service/example.com/php.ini",
               "bin-environment" => (
                       "PHP_FCGI_CHILDREN" => "0",
                       "PHP_FCGI_MAX_REQUESTS" => "250"
               )
       )
       )
 )
 alias.url = ( "/webalizer/" => "/var/customers/webs/service/webalizer/" )
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/ssl/example.com.pem"
ssl.ca-file = "/etc/lighttpd/ssl/www_example_com.ca-bundle"
 accesslog.filename    = "/var/customers/logs/service-access.log"
}

 

Wenn ich danach versuche den Server neu zu starten erhalte ich folgende Fehlermeldung:

 

Duplicate config variable in conditional 23 global/HTTPhost=~(?:^|\.)example\.com$: server.document-root

 

Das Problem scheint der doppelte $HTTP["host"] Eintrag zu sein. Ist es das normale Verhalten von Froxlor beim Aktivieren von SSL zwei .conf Dateien anzulegen oder kann man das deaktivieren?

 

Froxlor 0.9.19

lighttpd/1.4.19

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hi,

 

Eigentlich sollten diese Dateien durch jeweils entsprechende Wrapper eingebunden werden, in welchen IP/Port festgelegt wurden. Kannst du bitte zeigen, welche Dateien alle in /etc/lighttpd vorhanden sind und einmal nach der IP (ohne port) greppen und alle resultate posten?

 

So long,

Florian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...