VHosts

Alles, was den Apache betrifft, kann hier besprochen werden.

VHosts

Postby mckinley » 25. May 2004 12:21

tag leute......

ich weis... diese thema hatten wir schon 1000mal, doch ich habe den Fehler nicht gefunden weder beim googeln noch inder Forumsuche oder auf apache.org......


Ich habe eine dynip daher nutze isch den dyndns service....
(Widlcard ist angeschaltet)
nun wollte ich eine Subdomain einrichten....

dazu habe ich die httpd.conf editiert.....

#
#
<VirtualHost 127.0.0.1>
ServerName invite.ath.cx
ServerAdmin support@invite.ch
DocumentRoot /srv/www/htdocs
</VirtualHost>
#
#
<VirtualHost 127.0.0.1>
ServerName tand.invite.ath.cx
ServerAdmin support@invite.ch
DocumentRoot /home/tand/public_html
</VirtualHost>
#
#


wenn ich nun http://invite.ath.cx aufrufe, geht das auch, doch wenn ich tand.invite.ath.cx aufrufen will, komme ich auf die mainpage von invite.ath.cx......

Die Hosts habe ich ebenfalls angepasst, doch ich komme nicht dahinter warum das nicht funktioniert....

# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 invite.ath.cx
127.0.0.1 tand.invite.ath.cx
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 voyager.invite.ch voyager


Ich habe ja einen DNS Server (DynDNS) welcher Wildcard hat und daher sollte es ja so funzen...
wisst ihr weiter?
User avatar
mckinley
 
Posts: 48
Joined: 04. January 2003 17:18
Location: /root

Re: VHosts

Postby Wiedmann » 25. May 2004 13:10

Code: Select all
NameVirtualHost *:80
#
#
<VirtualHost *:80>
    ServerName invite.ath.cx:80
    ServerAdmin support@invite.ch
    DocumentRoot /srv/www/htdocs
</VirtualHost>
#
#
<VirtualHost *:80>
    ServerName tand.invite.ath.cx:80
    ServerAdmin support@invite.ch
    DocumentRoot /home/tand/public_html
</VirtualHost>
#
#
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to Apache

Who is online

Users browsing this forum: No registered users and 17 guests