Probleme mit VirtualHost
Hallo Liste ! Bin ein absoluter Newbie im Linux-Bereich und habe mir mal die Suse 7.0 Proffessional installiert. Da ich Web-Seiten erstelle, dachte ich mir, ich könnte mal ganz einfach die Umgebung eines Web-Space-Anbieters nachstellen und alles hier testen. Also Dokumantationen aus allen möglichen Quellen gelesen und probiert, leider ohne erfolg, der Apache startet nicht mehr, wenn ich an die Orginal-Datei von Suse (httpd.conf) folgendes anhänge. NameVirtualHost 192.168.200.1 <VirtualHost 192.168.200.1> ServerAdmin webmaster@wichtel.andy.local DocumentRoot /home/wichtel/www/htdocs DirectoryIndex index.htm index.html ServerName wichtel.andy.local ErrorLog /home/wichtel/www/logs/local-error_log CustomLog /home/wichtel/www/logs/access_log common TransferLog /home/wichtel/www/logs/transfer_log Alias /cgi-bin/ /home/wichtel/www/cgi-bin/ <Location /cgi-bin> PerlSendHeader On Options +ExecCGI SetHandler cgi-script PerlHandlerApache::Registry </Location> </VirtualHost> Die Verzeicnisse und Dateien sind alle vorhanden, auch ist der eintrag in hosts gemacht. Für Hilfe wäre ich sehr Dankbar ! Gruss Andy
Hallo Andreas, Andreas Kunz wrote:
<VirtualHost 192.168.200.1> ServerAdmin webmaster@wichtel.andy.local
[...]
</Location> </VirtualHost>
Du solltest die erste Zeile IMHO in folgende umwandeln: <VirtualHost wichtel.andy.de> ... Jan -- ETES - Espenhain & Theofel EDV-Systeme GbR Libanonstrasse 58 A * D-70184 Stuttgart Phone +49 711 4895550 * Fax +49 711 4809761 EMail: info@etes.de --- URL: www.etes.de
Nochmals Hallo !!!
<VirtualHost 192.168.200.1> ServerAdmin webmaster@wichtel.andy.local [...] </Location> </VirtualHost>
Du solltest die erste Zeile IMHO in folgende umwandeln: <VirtualHost wichtel.andy.de>
Jan
Hat leider nicht geklappt ! habe es eben nochmals probiert, da beim Starten von Apache keine Fehlermeldung, bis auf das ein Fehler in der httpd.conf ist ausgibt, habe ich es mal mit den COMANCHE probiert, der wirft folgende Fehlermeldung aus: child process exited abnormally while executing "close $handler" (procedure "fill_widget" line 11) invoked from within "fill_widget file26" hier nochmal das, was ich an die Orginal-Suse-httpd.conf gehängt habe: # ------------------------------------------------------------------- NameVirtualHost 192.168.200.1 <VirtualHost wichtel.andy.de> ServerAdmin webmaster@localhost DocumentRoot /home/wichtel/www/htdocs DirectoryIndex index.htm index.html index.shtml index.php ServerName wichtel.andy.de ErrorLog /home/wichtel/www/logs/local-error_log CustomLog /home/wichtel/www/logs/access_log common TransferLog /home/wichtel/www/logs/transfer_log Alias /cgi-bin/ /home/wichtel/www/cgi-bin/ <Location /cgi-bin> PerlSendHeader On Options +ExecCGI SetHandler cgi-script PerlHandlerApache::Registry </Location> </VirtualHost> # ------------------------------------------------------------------- Vielleicht kann mir ja mal einer eine Funktionierende httpd.conf senden, in der ein VirtualHost implementiert ist. Ansonsten ein schönes Wochenende ! Andy
Hello Andreas, Friday, January 26, 2001, 6:08:52 PM, you wrote: AK> Also Dokumantationen aus allen möglichen Quellen gelesen und probiert, leider AK> ohne erfolg, der Apache startet nicht mehr, wenn ich an die Orginal-Datei von AK> Suse (httpd.conf) folgendes anhänge. ^^^^^^ Ans Ende der Datei? oder an die Stelle, wo VirtualHost Eintraege einkommentiert dastehen AK> NameVirtualHost 192.168.200.1 AK> <VirtualHost 192.168.200.1> AK> ServerAdmin webmaster@wichtel.andy.local AK> DocumentRoot /home/wichtel/www/htdocs AK> DirectoryIndex index.htm index.html AK> ServerName wichtel.andy.local AK> ErrorLog /home/wichtel/www/logs/local-error_log AK> CustomLog /home/wichtel/www/logs/access_log common AK> TransferLog /home/wichtel/www/logs/transfer_log AK> Alias /cgi-bin/ /home/wichtel/www/cgi-bin/ AK> <Location /cgi-bin> AK> PerlSendHeader On AK> Options +ExecCGI AK> SetHandler cgi-script AK> PerlHandlerApache::Registry AK> </Location> AK> </VirtualHost> Das sieht auf einen halben Blick nicht unsauber aus. Wenn hier AK> ErrorLog /home/wichtel/www/logs/local-error_log kein Fehler vermerkt ist, dann von ganz unten anfangen. NameVirtualHost 192.168.200.1 <VirtualHost 192.168.200.1> DocumentRoot /home/wichtel/www/htdocs DirectoryIndex index.htm index.html ErrorLog /home/wichtel/www/logs/local-error_log </VirtualHost> Damit muss APACHE klarkommen, wenn die Verzeichnis alle angelegt sind. Danach Schritt fuer Schritt die anderen Eintraege zulassen und irgendwann wird der Störenfried auftauchen. -- Best regards, Roland mailto:roland.suehsmuth@boecker-online.de
participants (3)
-
Andreas Kunz
-
Jan Theofel
-
Roland Suehsmuth