Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 7419 invoked by uid 500); 29 Nov 2002 11:02:24 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 7407 invoked from network); 29 Nov 2002 11:02:23 -0000 Received: from ns0b.swx.com (146.109.240.235) by daedalus.apache.org with SMTP; 29 Nov 2002 11:02:23 -0000 Received: from gate0a.unix.swx.ch (gate0a [192.168.252.17]) by ns0b.swx.com (8.12.6/8.12.6) with ESMTP id gATB2at9016295 for ; Fri, 29 Nov 2002 12:02:36 +0100 (MET) Received: from SOMEXEVS001.ex.ordersx.org ([127.0.0.1]) by gate0a.unix.swx.ch (8.12.6/8.12.6) with ESMTP id gATB2aOP004149 for ; Fri, 29 Nov 2002 12:02:36 +0100 (MET) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Date: Fri, 29 Nov 2002 12:02:36 +0100 Message-ID: <484A6CA492BE654395D208B1D8D5393973A596@SOMEXEVS001.ex.ordersx.org> X-MS-Has-Attach: Importance: normal Priority: normal X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Listen 2 port and name-based virtual host Thread-Index: AcKWuvz0eWF+n+OOTn+BiZUHPOARdgA26a+g From: "Boyle Owen" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] Listen 2 port and name-based virtual host It is your use of NameVirtualHost which is allowing access from any port. Remove the BVH directives and it should work (the use of 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 * > > > ServerAdmin nmg@xyz.my > DocumentRoot /data/xyz > ServerName www.xyz.com > CustomLog logs/xyz-access_log combined > ErrorLog logs/xyz-error_log > > > > ServerAdmin nmg@abc.com > DocumentRoot /data/abc > ServerName www.abc.com > #CustomLog logs/abc-access_log combined > #ErrorLog logs/abc-error_log > > > >Thanks for any input you can provide! > >-husri > > > >--------------------------------------------------------------------- >The official User-To-User support forum of the Apache HTTP >Server Project. >See 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 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