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@xxxxxxxxxxx [|] 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx