You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jonathan Mark <jo...@yahoo.com> on 2008/02/18 15:51:54 UTC

[users@httpd] Adding "Listen 80" Breaks "Listen 9080"

The following rewrites the way it is supposed to. Visitors to port 9080 are sent to yahoo.com:

Listen 9080
#Listen 80
LoadModule rewrite_module modules/mod_rewrite.so
<VirtualHost *:9080>
RewriteEngine ON
RewriteRule "^/(.*)" http://yahoo.com
</VirtualHost>

However, uncommenting "Listen 80" breaks "Listen 9080". When Apache listens on both ports visitors to port 9080 get an "unable to connect" error.

How can I listen on ports 80 and 9080 at the same time?  

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


Re: [users@httpd] Adding "Listen 80" Breaks "Listen 9080"

Posted by Jim Jagielski <ji...@jaguNET.com>.
On Mon, Feb 18, 2008 at 06:51:54AM -0800, Jonathan Mark wrote:
> The following rewrites the way it is supposed to. Visitors to port 9080 are sent to yahoo.com:
> 
> Listen 9080
> #Listen 80
> LoadModule rewrite_module modules/mod_rewrite.so
> <VirtualHost *:9080>
> RewriteEngine ON
> RewriteRule "^/(.*)" http://yahoo.com
> </VirtualHost>
> 
> However, uncommenting "Listen 80" breaks "Listen 9080". When Apache listens on both ports visitors to port 9080 get an "unable to connect" error.
> 
> How can I listen on ports 80 and 9080 at the same time?  
> 

I would guess it's one of two things:

  1. You aren't running as root, therefore you can't bind to
     80 and so httpd won't start.
  2. Something else is already bound on port 80, so you can't
     bind and so httpd won't start.
-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
        "Great is the guilt of an unnecessary war"  ~ John Adams

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