Page 1 of 1

Apache 2.0.47 httpd.conf

Posted: 2003-07-25 12:10
by distl
Hallo,

ich habe jetzt mein System komplett mit allem drum und dran auf den neuesten Stand gebracht.
Alles läuft bis auf den Apachen.
Irgendiwe habe ich gelesen, dass die Virtual Hosts anders deklariert sein müssen als in den Versionen 1.3x.

Könnte mir bitte jemand ein Beispiel dafür geben?

Danke

Gruss

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 13:37
by alexander newald
Eigendlich nicht. Was sagt die Fehlermeldung?

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 13:42
by distl
Fehler beim Starten von Apache :
Starting Apache with SSL...
Syntax error on line 141 of /etc/httpd/vhosts.oldip:
User cannot occur within section
[1mError 1! Couln't start Apache![m


Komisch sieht sie schon aus diese Meldung.

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 13:49
by alexander newald

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 13:54
by distl
Ã?hem, was hat bitte suexec mit SSL zu tun?

Gruss

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 14:00
by alexander newald
Hast du dir die Seite durchgelesen? Sicher nein! Wer sagt, dass der Fehler von SSL kommt??

Apache 2 kennt keine User/Group Anweisung mehr, sondern die heissen anders, aber einfach mal die von mir angegebene Seite lesen...

Ansonsten einfach mal den Abschnitt aus der httpd.conf posten

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 14:07
by distl
suexec ist aber installiert.
Kann also nicht daran liegen.

Hier ist ein Auszug der conf

NameVirtualHost 195.xx.xxx.51

<Directory "/home/www">
<Files ~ "^.ht">
deny from all
</Files>
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Options -FollowSymLinks -SymLinksIfOwnerMatch Includes
</Directory>
<Directory "/home/www/user1/html">
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.shtml index.shtm index.sht
Options +ExecCGI +Includes
</Directory>

<Directory "/home/www/user1/logs">
AllowOverride all
DirectoryIndex index.html index.htm
AuthType Basic
AuthName "Logdateien"
AuthUserFile /etc/userlist.conf
require user user1
</Directory>

<VirtualHost 195.xx.xxx.51>
ServerName user1.server.de
DocumentRoot /home/www/user1/html
User user1
Group ftponly
php_admin_value open_basedir /home/www/user1
php_admin_value upload_tmp_dir /home/www/user1/phptmp
CustomLog /home/www/user1/logs/access_log common
CustomLog /var/log/httpd/access_log common
CustomLog /var/log/httpd/http_traffic_log traffic
ServerAlias domain.de
ServerAlias http://www.domain.de
</VirtualHost>

<VirtualHost 195.xx.xxx.51>
ServerName log.user1.server.de
DocumentRoot /home/www/user1/logs
User user1
Group ftponly
</VirtualHost>


Gruss

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 14:13
by alexander newald
Welche Zeile ist 141?

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 14:16
by distl
Diese:

DocumentRoot /home/www/user1/html

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 14:32
by alexander newald
Bzw. wohl die

User user1

Wie schon oben geschrieben:

http://httpd.apache.org/docs-2.0/ -> Suexec für CGI

Die Seite lesen :!: Denn User/Group gibt es nicht mehr...

Hint: http://httpd.apache.org/docs-2.0/mod/mo ... cusergroup

Re: Apache 2.0.47 httpd.conf

Posted: 2003-07-25 14:40
by distl
OK. Danke