Configuring httpd.conf
Posted: Tue Oct 05, 2004 4:02 pm
Hello,
I have several domains on one webserver that have to be configured by httpd.conf
httpd.conf:
------------
==> Entering domain1.de in my browser opens up the content of http://www.domain2.de (I restarted httpd). Entering http://www.domain1.de, then the content of http://www.domain1.de is indeed shown. That is correct.
What am I doing wrong? How can I configure httpd.conf that also urls without the www are redirected correctly?
Thanks!
I have several domains on one webserver that have to be configured by httpd.conf
httpd.conf:
------------
Code: Select all
ї...]
NameVirtualHost xxx.xxx.xx.xx
<VirtualHost xxx.xxx.xx.xx>
ServerName www.domain1.de
DocumentRoot /www/www.domain1.de/site
</VirtualHost>
<VirtualHost xxx.xxx.xx.xx>
ServerName domain1.de
DocumentRoot /www/www.domain1.de/site
</VirtualHost>
<VirtualHost xxx.xxx.xx.xx>
ServerName domain2.de
DocumentRoot /www/www.domain2.de/site
</VirtualHost>
ї...]
OR
<VirtualHost xxx.xxx.xx.xx>
ServerName domain1.de
ServerAlias www.domain1.de
DocumentRoot /www/www.domain1.de/site
</VirtualHost>
<VirtualHost xxx.xxx.xx.xx>
ServerName domain2.de
DocumentRoot /www/www.domain2.de/site
</VirtualHost>What am I doing wrong? How can I configure httpd.conf that also urls without the www are redirected correctly?
Thanks!
Code: Select all
Code: Select all