WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   Apache2 und vhosts auf Debian Sarge (http://www.wcm.at/forum/showthread.php?t=173758)

abcxyz 10.09.2005 20:55

Apache2 und vhosts auf Debian Sarge
 
Hallo!

Stehe vor dem Problem dass ich nun meine dritte Seite online geben will.

Habe bei dyndns.com einen staticdns eintrag gemacht.
Habe Apache2 den VirtualHost gegeben und in /etc/hosts die url eingetragen...
Habe ich was vergessen?
apache2 habe ich neu gestartet aber es kommt immer nur die erste webseite von mir. Warum? Muss ich die hosts datei neu einlesen irgendwie?

Danke.

Dumdideldum 10.09.2005 21:04

Post mal den relevanten VirtualHost Eintrag in der apache2.conf o. httpd.conf - vielleicht hats da was ;)

Ansonsten:
proxy im Browser ausschalten, falls eingeschaltet, das kann mitunter Probleme machen.

abcxyz 10.09.2005 21:26

eintrag in der sites-enabled/000-defaults:

ameVirtualHost *
<VirtualHost *>
ServerAdmin chat@liwest.at
ServerName www.germanchat.ath.cx
ServerAlias germanchat.ath.cx *.germanchat.ath.cx
DocumentRoot /apache-web/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /apache-web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature EMail

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>
<VirtualHost *>
ServerAdmin ts@liwest.at
Servername www.rudolfreinhart.ath.cx
DocumentRoot /reinhart/
ServerAlias rudolfreinhart.ath.cx *.rudolfreinhart.ath.cx
ServerSignature EMail
</VirtualHost>
<VirtualHost>
ServerAdmin ts@liwest.at
Servername www.thomasstrigl.ath.cx
DocumentRoot /privat/
ServerAlias thomasstrigl.ath.cx *.thomasstrigl.ath.cx
ServerSignature EMail
</VirtualHost>


##################
Einträge in der hosts Datei:

192.168.2.x germanchat.ath.cx irc
192.168.2.x rudolfreinhart.ath.cx reinhart
192.168.2.x thomasstrigl.ath.cx strigl


Oder muss ich Neustart machen? -.-
Hab ne Menge am Server laufen was ich ungern täte...

Danke.

Dumdideldum 10.09.2005 21:57

Von außen erreichbar isser ja schonmal, also paßt die Config von apache2.conf mal.

was sagt dir:
ping http://www.germanchat.ath.cx/ ?

Edit:
Im dritten VirtualHost (http://www.thomasstrigl.ath.cx/) hast einen Fehler drin:
hast den Stern bei
<VirtualHost
vergessen.

abcxyz 10.09.2005 22:01

*g* diese seite ist meine erste seite aber es geht um die seite
http://www.thomasstrigl.ath.cx

*g*

arghs danke für fehler aufklärung -.-
das wars wohl...sorry wenn ich euch bemüht habe ...a ber vielen dank :)

Dumdideldum 10.09.2005 22:04

gern geschehen ;)


Alle Zeitangaben in WEZ +2. Es ist jetzt 17:17 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag