hoi alex

>
> hier ein Auszug aus meiner httpd.conf.
> Wenn ich die unterschiedlichen domaens jetzt aufrufen will sehe ich
> lediglich die Apache Test Page.
>
>
>
> ### Section 3: Virtual Hosts
> #
> # VirtualHost: 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.0/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.
> #
> NameVirtualHost *
>
>
> # Where do we put the lock and pif files?
> LockFile "/var/lock/httpd.lock"
> CoreDumpDirectory "/etc/httpd"
>
> # Defaults for virtual hosts
>
> # Log
> #
> # Virtual hosts
> #
>
> # Virtual host DOMAEN 1
> <VirtualHost *>
>       DocumentRoot /var/www/html/DOMAEN 1
>
>
>       ServerName domaen1.net
>
> </VirtualHost>
>
> # Virtual host DOMAEN 2
> <VirtualHost *>
>       DocumentRoot /var/www/html/DOMAEN 2
>
>
>       ServerName domaen2.net
>
> </VirtualHost>
>

hmm, ausser den leerschl�gen bei den directory-namen (w�rde ich generell
vermeiden), scheint es ok zu sein.

habs jetzt mal kurz selber probiert. folgende einstllungen laufen bei
mir:

*************************************
NameVirtualHost 192.168.1.20

<VirtualHost 192.168.1.20 >
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /var/www/go
    ServerName go.ch
</VirtualHost>
**************************************


und nicht vergessen, den apache zu restarten!

gruss
eric


--------------------------------------------------------------------------
                Apache HTTP Server Mailing List "users-de" 
      unsubscribe-Anfragen an [EMAIL PROTECTED]
           sonstige Anfragen an [EMAIL PROTECTED]
--------------------------------------------------------------------------

Antwort per Email an