httpd-vhost.conf Problem --> Subdomain

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

httpd-vhost.conf Problem --> Subdomain

Postby obi_de » 22. January 2008 18:03

Hallo,
ich habe einen vServer der auf Debian 3.1 (sarge) aufbaut.
Nun habe ich Xampp dort draufgehauen... :)
hab bei meinem Hoster auch eine domain angemeldet. hab gelesen das man das mit Virtual host machen muss... so bin net der beste in sowas aber habs probiert... nur is das bei Xampp ja so das es eine httpd-vhost.conf gibt und eine httpd.conf.
In der httpd.conf muss man doch den eintrag Include etc/extra/httpd-vhosts.conf auskommentieren oder? damit der die liesst.
Aufjedenfall wenn ich das mache dann will Xampp nicht mehr starten und da steht nur:
Code: Select all
Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/


wenn ich wieder ein # davor mache startet alles ohen probs.
wie mache ich denn dann eine Subdomain?

Achso meine httpd-vhosts.conf sieht so aus:
Code: Select all
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.


#Use name-based virtual hosting.

# Ensure that Apache listens on port 80
Listen 80

# Listen for virtual host requests on all IP addresses
NameVirtualHost www.is-powning.de

<VirtualHost www.asod.is-powning.de>
DocumentRoot /var/www/clanpage
ServerName www.asod.is-powning.de

# Other directives here


</VirtualHost>


Hab ich i.was falschgemacht?

Vielen dank schonmal :)
obi_de
 
Posts: 1
Joined: 22. January 2008 17:43

Postby Scory » 22. January 2008 19:51

>Hab ich i.was falschgemacht?

Mindestens zwei Dinge:

1) Du hast die Dokumentation über VirtualHost nicht gelesen.
2) Du hast einen vServer gebucht ohne jegliche Kenntnisse über Apache.

Was passiert eigentlich, wenn Dein Server neu gebootet wird (nur eine Frage am Rande)?
Scory
 


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 7 guests