httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwien Samantha Y <apa...@cosinus.sederhana.or.id>
Subject Re: [users@httpd] Listen 2 port and name-based virtual host
Date Thu, 28 Nov 2002 17:08:45 GMT



Try with this,


Port 8000
Listen 192.168.1.4:8000
Listen 192.168.1.4:9000
#BindAddress *


NameVirtualHost 192.168.1.4:8000
NameVirtualHost 192.168.1.4:9000

<VirtualHost 192.168.1.4: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 192.168.1.4:8000>
       ServerAdmin nmg@abc.com
       DocumentRoot /data/abc
       ServerName www.abc.com
       #CustomLog logs/abc-access_log combined
       #ErrorLog logs/abc-error_log

</VirtualHost>



good luck !

wIEn

On Thu, 2002-11-28 at 09:30, Husri Hassan wrote:
> I got this error messages
> 
> % /var/www/bin/apachectl start
> [Thu Nov 28 17:28:36 2002] [error] VirtualHost www.abc.com:8000 --
> mixing * ports and non-* ports with a NameVirtualHost address is not
> supported, proceeding with undefined results
> [Thu Nov 28 17:28:36 2002] [error] VirtualHost www.xyz.com:9000 --
> mixing * ports and non-* ports with a NameVirtualHost address is not
> supported, proceeding with undefined results
> 
> -husri
> 
> Mystery Admin wrote:
> > On Thu, 28 Nov 2002 at 00:48:35, Husri Hassan wrote:
> > 
> > 
> > > 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
> > > 
> > 
> > Try specifying only ONE "NameVirtualHost" and make it like this:
> > 
> > NameVirtualHost 192.168.1.4
> > 
> > I've done the same thing you're trying to do when I post test sites on my server
> > and using the above NameVirtualHost setting has worked great for me.
> >  
> > Also, upgrade to Apache 1.3.27 (if you can) so you can pick up the latest bug
> > and security fixes... :)
> > 
> > Good luck!
> > 
> > Peace...
> > 
> > Tom
> > 
> > ___________________
> > http://jawmail.org/
> > 
> > 
> > ---------------------------------------------------------------------
> > 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: us
> > ers-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> > 
> > 
> > 
> > 
> 


---------------------------------------------------------------------
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