Re: [users@httpd] 502 Bad Gateway

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Accessing http://www.mydomain.com:81/database.nsf directly only loads the 
text for the website.  It isn't able to find the css file, images, etc.  The 
database's base URL is "http://www.mydomain.com/database.nsf";.  I believe 
that's why it's unable to find those items.

As for the RewriteLog, it's empty.  Nothing seems to be written to it, but 
the file has been created.  Not sure why this is happening.

- Sean

----- Original Message ----- 
From: "Joshua Slive" <jslive@xxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>; "Sean McKendall" <seanmckendall@xxxxxxxxx>
Sent: Tuesday, September 20, 2005 8:26 AM
Subject: Re: [users@httpd] 502 Bad Gateway


On 9/20/05, Sean McKendall <seanmckendall@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux