kleines vhost problem

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

kleines vhost problem

Postby tekknozid » 17. May 2003 03:37

also. hab mir 2 vhosts eingerichtet.
nennen wir sie mal www.domain1.de und www.domain2.de
beide sind auch unter diesen domains zu erreichen :-)
lasse ich allerdings das www vor domain2.de weg werde ich auf www.domain1.de umgeleitet ?
warum ?
tekknozid
 
Posts: 82
Joined: 17. May 2003 03:17

Postby PF4 » 17. May 2003 08:42

in die Vhosts

ScriptAlias www.domain.tld domain.tld eintragen

Das ist ganz einfach zu erklären. Wenn der Apache eine Adresse nicht finden kann dann wird eben die erste in der Liste benutzt.
PF4
 
Posts: 528
Joined: 10. March 2003 09:15

Postby tekknozid » 17. May 2003 12:29

danke erstmal.
hab die vhosts jetzt wie folgt.
funzt aber trotzdem nicht ?

Code: Select all
<VirtualHost xxx.xxx.xxx.xxx>
    ServerAdmin webmaster@domain1.de
    DocumentRoot /opt/lampp/htdocs/domain1.de
    ScriptAlias www.domain1.de domain1.de
    ServerName www.domain1.de
    ErrorLog logs/domain1.de-error_log
    CustomLog logs/domain1.de-access_log common
</VirtualHost>

<VirtualHost xxx.xxx.xxx.xxx>
    ServerAdmin webmaster@domain2.de
    DocumentRoot /opt/lampp/htdocs/domain2.de
    ScriptAlias www.domain2.de domain2.de
    ServerName www.domain2.de
    ErrorLog logs/domain2.de-error_log
    CustomLog logs/domain2.de-access_log common
</VirtualHost>
tekknozid
 
Posts: 82
Joined: 17. May 2003 03:17

Postby AlexPausB » 17. May 2003 14:36

Servus,

bei mir gehts mit folgendem Einstellungen:

Code: Select all
...
ServerAlias domain1.de *.domain1.de
...
ServerAlias domain2.de *.domain2.de


Und?
AlexPausB
 
Posts: 471
Joined: 05. February 2003 11:19
Location: Fdorf

Postby tekknozid » 17. May 2003 18:32

nö. will immer noch nich :-(
tekknozid
 
Posts: 82
Joined: 17. May 2003 03:17

Postby tekknozid » 20. May 2003 01:23

keiner ne idee ?
tekknozid
 
Posts: 82
Joined: 17. May 2003 03:17

Postby Oswald » 20. May 2003 09:22

party, bitte nicht immer so drängeln...
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux


Return to Apache

Who is online

Users browsing this forum: No registered users and 27 guests