PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Virtual Host



urbach
21.03.03, 15:12
Hi

Can somebody tell me if the my entry in urbach.conf is correct below?

Thanks
Steven



Listen 80
Listen 8080

<Virtualhost www.urbachkl.ch:80>
Domainhost /srv/www/urbachkl
ServerAdmin info@urbachkl.ch
customlog /var/log/httpd/urbachkl.log common
errorlog /var/log/httpd/urbachkl_error.log
</Virtualhost>


<Virtualhost www.urbach-kontaktlinsen.ch:8080>
Domainhost /srv/www/urbach-kontaktlinsen
ServerAdmin info@urbachkl.ch
customlog /var/log/httpd/urbach-kontaktlinsen.log common
errorlog /var/log/httpd/urbach-kontaktlinsen_error.log
</Virtualhost>

MrIch
21.03.03, 15:21
I am not sure about the Ports...

use DocumentRoot instead of Domainhost.

but this is a german forum!

urbach
22.03.03, 11:46
Theres more info on this forum then linuxforum.org. And my german isnt that great.

Ok Im not using a DNS server on my SUSE Linux system. The problem Im having is that www.urbachkl.ch is pointing to port 80 and I can see my homepage over the Internet but www.urbach-kontaktlinsen.ch is pointing to port 8080 but cant pull up the page. Is there a better way in doing this when not using DNS Server?

Listen 80
Listen 8080

<Virtualhost *:80>
Domainhost /srv/www/urbachkl
ServerAdmin info@urbachkl.ch
customlog /var/log/httpd/urbachkl.log common
errorlog /var/log/httpd/urbachkl_error.log
</Virtualhost>


<Virtualhost *:8080>
Domainhost /srv/www/urbach-kontaktlinsen
ServerAdmin info@urbachkl.ch
customlog /var/log/httpd/urbach-kontaktlinsen.log common
errorlog /var/log/httpd/urbach-kontaktlinsen_error.log
</Virtualhost>