2 VirtualHost

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

2 VirtualHost

Postby shylux » 17. December 2010 14:31

Hallo Leute

Ich möchte auf Port 80 und Port 443 zwei verschiedene webseiten anbieten.

Leider erhalte ich einen Fehler und ich kann keine Beispiele finden wie ich es machen soll.
Code: Select all
root@shylux:/var/www# apache2ctl configtest
[Fri Dec 17 14:26:27 2010] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring!
Syntax OK


Dies ist meine apache config:
Code: Select all
<VirtualHost *:80>
        ServerName shylux.dyndns.org
        DocumentRoot /var/www/shylux.dyndns.org
        <Directory /var/www/shylux.dyndns.org>
                AllowOverride None
        </Directory>
        <Location />
                Order Allow,Deny
                Allow from All
        </Location>

        #SSLEngine On
        #SSLCertificateFile /etc/ssl/certs/server.crt
        #SSLCertificateKeyFile /etc/ssl/private/server_priv.key
</VirtualHost>

<VirtualHost *.443>
        ServerName shylux.dyndns.org
</VirtualHost>


Ihr könnt mir auch einfach eure Konfiguration schicken, dann kann ich das abschreiben :)

lg Shylux
shylux
 
Posts: 4
Joined: 06. December 2010 10:05

Re: 2 VirtualHost

Postby Stepke-DSL » 17. December 2010 15:20

shylux wrote:
Code: Select all
root@shylux:/var/www# apache2ctl configtest
[Fri Dec 17 14:26:27 2010] [error] (EAI 2)Name or service not known: Could not resolve host name *.443 -- ignoring!
Syntax OK


Dies ist meine apache config:
Code: Select all
<VirtualHost *:80>
        ServerName shylux.dyndns.org
        DocumentRoot /var/www/shylux.dyndns.org
        <Directory /var/www/shylux.dyndns.org>
                AllowOverride None
        </Directory>
        <Location />
                Order Allow,Deny
                Allow from All
        </Location>

        #SSLEngine On
        #SSLCertificateFile /etc/ssl/certs/server.crt
        #SSLCertificateKeyFile /etc/ssl/private/server_priv.key
</VirtualHost>

<VirtualHost *.443>
        ServerName shylux.dyndns.org
</VirtualHost>


Die Fehlermeldung sagt es doch schon...
Du hast einen Fehler drin, nimm anstatt
Code: Select all
<VirtualHost *.443>

folgendes
Code: Select all
<VirtualHost *:443>


Achte auf den DOPPELPUNKT!

MfG Stepke
Stepke-DSL
 
Posts: 313
Joined: 12. July 2007 16:08
Operating System: Win XP Pro SP3 + SuSe Linux


Return to Apache

Who is online

Users browsing this forum: No registered users and 21 guests