Jump to content
Froxlor Forum
  • 0

lightttpd crasht nach domain hinzuf?gen unter Gentoo


chcnetguru

Question

Hallo Alle,

 

Ich hab unter gentoo nach der Anleitung http://redmine.froxlor.org/projects/froxlor/wiki/Installing_Froxlor-09_on_Gentoo_Linux froxlor mit lighttpd installiert. Wenn man das normal mit emerge --config froxlor installiert, funktioniert die erstkonfiguration vom ebuild tadellos. Man kann einloggen und konfigurieren. F?gt man einen ersten Kunden hinzu, startet nach dem cron-job der lighttpd nicht mehr mit folgender Fehlermeldung:

 

Duplicate config variable in conditional 3 global/SERVERsocket==81.223.20.188:80/HTTPhost=~(?:^|\.)chcnet\.mx2\.domain\.com$: alias.url

2011-11-22 11:43:17: (configfile.c.907) source: /etc/lighttpd/froxlor-vhosts.conf line: 28 pos: 21 parser failed somehow near here: (EOL)

2011-11-22 11:43:17: (configfile.c.907) source: /etc/lighttpd/lighttpd.conf line: 60 pos: 1 parser failed somehow near here: (EOL)

 

Es ist alles auf default, daher wundere ich mich ja.

 

Hier der Output, der generiert wird:

# froxlor-vhosts.conf
# Created 22.11.2011 11:40
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

$SERVER["socket"] == "81.223.20.188:80" {
server.port = 80
server.bind = "81.223.20.188"
# Froxlor default vhost
$HTTP["host"] =~ "^(?:www\.|)mx2\.domain\.com$" {
 server.document-root = "/var/www/"
}
$HTTP["host"] =~ "(?:^|\.)chcnet\.mx2\.domain\.com$" {
 server.document-root = "/var/customers/webs/chcnet/"
 $HTTP["url"] =~ "^/awstats/" {
   auth.backend = "htpasswd"
   auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd/1-fcd6cf82940336633ec69a10a97481a9.htpasswd"
   auth.require = (
     "/awstats/" =>
     (
        "method"  => "basic",
        "realm"   => "Restricted Area",
        "require" => "valid-user"
     )
   )
 }
 alias.url = ( "/awstats/" => "/var/customers/webs/chcnet/awstats/chcnet.mx2.domain.com" )
 alias.url = ( "/awstats-icon" => "/usr/share/awstats/icon/" )
 accesslog.filename    = "/var/customers/logs/chcnet-access.log"
}
$HTTP["host"] =~ "(?:^|\.)test1\.lan$" {
 server.document-root = "/var/customers/webs/chcnet/"
 $HTTP["url"] =~ "^/awstats/" {
   auth.backend = "htpasswd"
   auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd/1-fcd6cf82940336633ec69a10a97481a9.htpasswd"
   auth.require = (
     "/awstats/" =>
     (
        "method"  => "basic",
        "realm"   => "Restricted Area",
        "require" => "valid-user"
     )
   )
 }
 alias.url = ( "/awstats/" => "/var/customers/webs/chcnet/awstats/test1.lan" )
 alias.url = ( "/awstats-icon" => "/usr/share/awstats/icon/" )
 accesslog.filename    = "/var/customers/logs/chcnet-access.log"
}
}

 

Weiss vielleicht jemand, was falsch ist?

 

LG

Christoph

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

sieht mir nach nem bug aus den bisher wohl niemand vorher gefunden hat.

aber damits bei dir jetzt erstmal wieder funktioniert, folgendes:

 

scripts/jobs/cron_tasks.inc.http.20.lighttpd.php

suche nach:

$stats_text.= '  alias.url = ( "/awstats-icon" => "' . makeCorrectDir($this->settings['system']['awstats_icons']) . '" )' . "\n";

ersetze durch:

$stats_text.= '  alias.url += ( "/awstats-icon" => "' . makeCorrectDir($this->settings['system']['awstats_icons']) . '" )' . "\n";

 

entweder auf den naechsten cronrun warten, oder in der config

alias.url = ( "/awstats-icon" => "/usr/share/awstats/icon/" )

mit

alias.url += ( "/awstats-icon" => "/usr/share/awstats/icon/" )

ersetzen.

 

http://redmine.froxlor.org/issues/982

Link to comment
Share on other sites

vHost Datei bittet posten

 

Bitte Sehr: Die Fehlermeldung, wenn man den froxlorpanel aufrufen will, ist 404 - not found. Die default config funktioniert - aber dort gibts kein chcnet.mx2.domain.com drinn....

 

# froxlor-vhosts.conf
# Created 22.11.2011 17:15
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the p
anel.

$SERVER["socket"] == "81.223.20.188:80" {
server.port = 80
server.bind = "81.223.20.188"
# Froxlor default vhost
$HTTP["host"] =~ "^(?:www\.|)mx2\.mydomain\.com$" {
 server.document-root = "/var/www/"
}
$HTTP["host"] =~ "(?:^|\.)chcnet\.mx2\.mydomain\.com$" {
 server.document-root = "/var/customers/webs/chcnet/"
 $HTTP["url"] =~ "^/awstats/" {
   auth.backend = "htpasswd"
   auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd/1-fcd6cf82940336633ec69a10a97481a9.htp
asswd"
   auth.require = (
     "/awstats/" =>
     (
        "method"  => "basic",
        "realm"   => "Restricted Area",
        "require" => "valid-user"
     )
   )
 }
 alias.url = ( "/awstats/" => "/var/customers/webs/chcnet/awstats/chcnet.mx2.domain.tld" )
 alias.url += ( "/awstats-icon" => "/usr/share/awstats/icon/" )
 accesslog.filename    = "/var/customers/logs/chcnet-access.log"
}
$HTTP["host"] =~ "(?:^|\.)test1\.lan$" {
 server.document-root = "/var/customers/webs/chcnet/"
 $HTTP["url"] =~ "^/awstats/" {
   auth.backend = "htpasswd"
   auth.backend.htpasswd.userfile = "/etc/lighttpd/htpasswd/1-fcd6cf82940336633ec69a10a97481a9.htpasswd"
   auth.require = (
     "/awstats/" =>
     (
        "method"  => "basic",
        "realm"   => "Restricted Area",
        "require" => "valid-user"
     )
   )
 }
 alias.url = ( "/awstats/" => "/var/customers/webs/chcnet/awstats/test1.lan" )
 alias.url += ( "/awstats-icon" => "/usr/share/awstats/icon/" )
 accesslog.filename    = "/var/customers/logs/chcnet-access.log"
}
}

Link to comment
Share on other sites

Archived

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



×
×
  • Create New...