httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] 502 Bad Gateway
Date Tue, 20 Sep 2005 13:26:13 GMT
On 9/20/05, Sean McKendall <seanmckendall@yahoo.com> wrote:
> Hello all,
> 
> I've managed to set up Apache, Domino, PHP, and MySQL on the same machine.
> Apache is running on port 80 and Domino is running on port 81.  I would like
> Apache to forward any .nsf file to port 81.  So,
> www.mydomain.com/database.nsf should redirect to
> www.mydomain.com:81/database.nsf.  I believe I've accomplished this by the
> following:
> 
> RewriteEngine on
> RewriteRule ^(.*).nsf(.*) http://www.mydomain.com:81$1.nsf$2 [P]
> 
> Also, I'd like to redirect www.mydomain.com to
> www.mydomain.com/database.nsf.  I believe I've done this correctly by using
> the following redirect:
> 
> Redirect permanent /index.html http://www.mydomain.com/database.nsf
> 
> After the httpd.conf file is finally configured, I test things out.  Going
> to www.mydomain.com gives me a 502 Bad Gateway message.  In the error.log
> file, I see:
> 
> [Tue Sep 20 07:00:14 2005] [error] (OS 10061)No connection could be made
> because the target machine actively refused it.  : proxy: HTTP: attempt to
> connect to xxx.xxx.xxx.xxx:81 (www.mydomain.com) failed
> 
> What could I be doing wrong here?

What happens if you try to directly access
http://www.mydomain.com:81/database.nsf
What is in the RewriteLog for the request?

Joshua.

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