httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Listen 2 port and name-based virtual host
Date Fri, 29 Nov 2002 11:02:36 GMT
It is your use of NameVirtualHost which is allowing access from any
port. Remove the BVH directives and it should work (the use of
<VirtualHost www.xyz.com:9000> is correct, this is how you do port-based
VHing).

>-----Original Message-----
>From: Husri Hassan [mailto:husri@mimos.my]
>Sent: Donnerstag, 28. November 2002 09:48
>To: users@httpd.apache.org
>Cc: husri@mimos.my
>Subject: [users@httpd] Listen 2 port and name-based virtual host
>
>
>Hi,
>
>I want run www.abc.com only on the port 8000 and www.xyz.com only on 
>port 9000 on the same server. Now my problem, both of the domain can 
>browse port 8000 and 9000
>eg:  - www.abc.com:8000 and  www.abc.com:9000
>      - www.xyz.com:8000  and www.xyz.com:9000
>
>Could someone point me in the right direction to find out how this is 
>done?  This below my configuration:
>
>DNS  - www.abc.com IN A 192.168.1.4
>          - www.xyz.com  IN A 192.168.1.4
> 
>APACHE CONFIG file
>
>% /var/www/bin/httpd -V
>Server version: Apache/1.3.11 (Unix)
>Server built:   Aug 30 2002 16:09:48
>Server's Module Magic Number: 19990320:6
>Server compiled with....
>
>
>Listen www.abc.com:8000
>Listen www.xyz.com:9000
>
>NameVirtualHost www.abc.com:8000
>NameVirtualHost www.xyz.com:9000
>
>UseCanonicalName Off
>
>BindAddress *
>
><VirtualHost www.xyz.com:9000>
>        ServerAdmin nmg@xyz.my
>        DocumentRoot /data/xyz
>        ServerName www.xyz.com
>        CustomLog logs/xyz-access_log combined
>        ErrorLog logs/xyz-error_log
></VirtualHost>
>
><VirtualHost www.abc.com:8000>
>        ServerAdmin nmg@abc.com
>        DocumentRoot /data/abc
>        ServerName www.abc.com
>        #CustomLog logs/abc-access_log combined
>        #ErrorLog logs/abc-error_log
>
></VirtualHost>
>
>Thanks for any input you can provide!
>
>-husri
>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message