Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 55900 invoked from network); 12 Apr 2010 21:57:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 21:57:04 -0000 Received: (qmail 88243 invoked by uid 500); 12 Apr 2010 21:57:01 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 88217 invoked by uid 500); 12 Apr 2010 21:57:01 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 88209 invoked by uid 99); 12 Apr 2010 21:57:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 21:57:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.20.47.5] (HELO ns.silohost.com) (66.20.47.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 21:56:55 +0000 Received: from Aloysius.local (126.sub-75-235-167.myvzw.com [75.235.167.126]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ns.silohost.com (Postfix) with ESMTP id 23C763591B9 for ; Mon, 12 Apr 2010 21:56:32 +0000 (UTC) Message-ID: <4BC39710.2080208@jasonn.com> Date: Mon, 12 Apr 2010 16:56:32 -0500 From: Jason Nunnelley Reply-To: jason@jasonn.com Organization: JasonN (dot) com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: users@httpd.apache.org References: <4BC32A68.2080506@pack3.ch> <4BC32F32.4010108@gmail.com> <18089.43825.qm@web50702.mail.re2.yahoo.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050305090602010100080306" Subject: Re: [users@httpd] virtualhost not picking up for non port 80 --------------050305090602010100080306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The conf VirtualHost must include the hostname and the port. You could just add * to indicate it should listen to all ports. I'm not sure what teh 8886 port has to do with your problem - not sure it has antyhing to do with it. You need a Listen *:80 or 192.168.1.1:80 for it to listen on port 80. On 4/12/10 4:51 PM, Michael Ni wrote: > tried it, still doesn't work, > > i dont think it needs to be that specific right? > > Listen 192.168.0.10 should work. > > On Mon, Apr 12, 2010 at 8:07 AM, alin vasile > wrote: > > in httpd.conf it shouldn't be > > Listen 192.168.0.10 :8886? > > ------------------------------------------------------------------------ > *From:* Michael Ni > > > *To:* users@httpd.apache.org > *Sent:* Mon, April 12, 2010 5:39:42 PM > *Subject:* Re: [users@httpd] virtualhost not picking up for non > port 80 > > yes i have > > Listen 8886 > in the httpd.conf file > > i tried changing the private ip to localhost, it doesn't work as well > > > > On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras > > > wrote: > > Michael, > > Make sure you have a corresponding Listen directive before > your vhost as well for that port. > > Frank. > > > On 04/12/2010 10:20 AM, Michael Ni wrote: > > i added log in virtual host > ErrorLog "logs/asdf-error.log" > CustomLog "logs/asdf-access.log" common > > when i tried again, nothing shows up on both > > i also did a httpd -S and got the following > > C:\Program Files\Apache Software > Foundation\Apache2.2\bin>httpd -S > VirtualHost configuration: > 192.168.0.10:8886 > is a NameVirtualHost > default server www.foobar.com > > > (C:/Program Files/Apache Software Foundat > ion/Apache2.2/conf/extra/httpd-vhosts.conf:52) > port 8886 namevhost www.foobar.com > > > (C:/Program Files/Apache Software Fo > undation/Apache2.2/conf/extra/httpd-vhosts.conf:52) > Syntax OK > > but it just won't pick up for some reason > > > On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info > (info@pack3.ch > >) > > >> wrote: > > Am 12.04.2010 16:00, schrieb Michael Ni: > > I'm having difficulty on windows XP getting a > virtualhost to work > with non port 80. > it works when i use port 80 in the virtualhost but > doesn't work > with other ports. > i have turned off my firewall, although this is > private ip, > shouldn't matter > i have tried ports 8080, 8888, 8000, and now with 8886. > when it doesn't match my virtualhost, it will > redirect to the main > configuration servername automatically > if i turn off the all other "listen" and only keep > "listen 8886", > i will just be unable to connect > i have searched all over the internet but i can't > find the solution. > > hope someone can help. > > the following is my config > > WINDOWS HOSTS FILE > ------------------------------------ > 192.168.0.10 www.foobar.com > > > > HTTPD.CONF > --------------------------------------- > Listen 8886 > > HTTPD-VHOSTS.CONF > > NameVirtualHost 192.168.0.10:8886 > > > > > > > Foundation/Apache2.2/htdocs"> > Options Indexes FollowSymLinks > AllowOverride none > Order allow,deny > Allow from all > > > ServerName www.foobar.com > > > DocumentRoot "C:/Program Files/Apache Software > Foundation/Apache2.2/htdocs" > > > > > Hi Michael, > > 1) it would be interesting what you see in the log file > > 2) as soon apache is started it would be interesting if > its really > listening or actually something else is listening on > that port > > you can check this with a simple telnet connect to your > ip and port > and see if you get a connection working - where ever it > would go > > greetings > > aaron > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See 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 > > > > > -- Jason A. Nunnelley +1 2562971652 http://www.google.com/profiles/imjasonn [Member Tekany, LLC] --------------050305090602010100080306 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The conf VirtualHost must include the hostname and the port. You could just add * to indicate it should listen to all ports.

I'm not sure what teh 8886 port has to do with your problem - not sure it has antyhing to do with it. You need a Listen *:80 or 192.168.1.1:80 for it to listen on port 80.

On 4/12/10 4:51 PM, Michael Ni wrote:
tried it, still doesn't work,

i dont think it needs to be that specific right?

Listen 192.168.0.10 should work.

On Mon, Apr 12, 2010 at 8:07 AM, alin vasile <alinachegalati@yahoo.com> wrote:
in httpd.conf it shouldn't be

Listen 192.168.0.10:8886?


From: Michael Ni <michaelcni@gmail.com> Sent: Mon, April 12, 2010 5:39:42 PM
Subject: Re: [users@httpd] virtualhost not picking up for non port 80

yes i have 

Listen 8886
in the httpd.conf file 

i tried changing the private ip to localhost, it doesn't work as well



On Mon, Apr 12, 2010 at 7:33 AM, Frank Gingras <francois.gingras@gmail.com> wrote:
Michael,

Make sure you have a corresponding Listen directive before your vhost as well for that port.

Frank.


On 04/12/2010 10:20 AM, Michael Ni wrote:
i added log in virtual host
   ErrorLog "logs/asdf-error.log"
   CustomLog "logs/asdf-access.log" common

when i tried again, nothing shows up on both

i also did a httpd -S and got the following

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -S
VirtualHost configuration:
192.168.0.10:8886 <http://192.168.0.10:8886>      is a NameVirtualHost
         default server www.foobar.com <http://www.foobar.com>

(C:/Program Files/Apache Software Foundat
ion/Apache2.2/conf/extra/httpd-vhosts.conf:52)
         port 8886 namevhost www.foobar.com <http://www.foobar.com>

(C:/Program Files/Apache Software Fo
undation/Apache2.2/conf/extra/httpd-vhosts.conf:52)
Syntax OK

but it just won't pick up for some reason


On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (info@pack3.ch
<mailto:info@pack3.ch>) <info@pack3.ch <mailto:info@pack3.ch>> wrote:

   Am 12.04.2010 16:00, schrieb Michael Ni:
   I'm having difficulty on windows XP getting a virtualhost to work
   with non port 80.
   it works when i use port 80 in the virtualhost but doesn't work
   with other ports.
   i have turned off my firewall, although this is private ip,
   shouldn't matter
   i have tried ports 8080, 8888, 8000, and now with 8886.
   when it doesn't match my virtualhost, it will redirect to the main
   configuration servername automatically
   if i turn off the all other "listen" and only keep "listen 8886",
   i will just be unable to connect
   i have searched all over the internet but i can't find the solution.

   hope someone can help.

   the following is my config

   WINDOWS HOSTS FILE
   ------------------------------------
   192.168.0.10 www.foobar.com <http://www.foobar.com>


   HTTPD.CONF
   ---------------------------------------
   Listen 8886

   HTTPD-VHOSTS.CONF

   NameVirtualHost 192.168.0.10:8886 <http://192.168.0.10:8886>

   <VirtualHost 192.168.0.10:8886 <http://192.168.0.10:8886>>


   <Directory "C:/Program Files/Apache Software
   Foundation/Apache2.2/htdocs">
       Options Indexes FollowSymLinks
       AllowOverride none
       Order allow,deny
       Allow from all
   </Directory>

      ServerName www.foobar.com <http://www.foobar.com>

      DocumentRoot "C:/Program Files/Apache Software
   Foundation/Apache2.2/htdocs"

   </VirtualHost>


   Hi Michael,

   1) it would be interesting what you see in the log file

   2) as soon apache is started it would be interesting if its really
   listening or actually something else is listening on that port

   you can check this with a simple telnet connect to your ip and port
   and see if you get a connection working - where ever it would go

   greetings

   aaron



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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





-- 

Jason A. Nunnelley
+1 2562971652

http://www.google.com/profiles/imjasonn

[Member Tekany, LLC]
--------------050305090602010100080306--