Forum Moderators: phranque

Message Too Old, No Replies

VHost entry by using port 81

         

Markus Klaffke

12:38 pm on Oct 16, 2005 (gmt 0)

10+ Year Member



I must use port 81 for my server. I am not sure with my vhost entries.

The url is [myserver.example.com:81...]

The entries for the VHost look like this:


<VirtualHost 192.168.4.28:81>
ServerName myserver.example.com
DocumentRoot /www/live
</VirtualHost>

This works, but i am unsure, because also this works:


<VirtualHost 192.168.4.28:81>
ServerName myserver.example.com:81
DocumentRoot /www/live
</VirtualHost>

And as for my hosts entries (i am static) i have this:


192.168.4.28 myserver.example.com

And again this works:


192.168.4.28 myserver.example.com:81

Maybe all these combinations work because of a wrong setup, i donīt know, but what is correct?

Thanks for advise, Markus.