502 Proxy Error when redirecting URL

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

 



Hello Group,

I googled for this fairly long, and I did find a lot of help indeed, but I still can't get it.

I'm on a Ubuntu 14.04.2 LTS machine with Apache 2.4 and Red5 for Openmeetings to work.

What I'm trying to achieve is: I have mydomain.eu in a host service, where my website runs (this also with Ubuntu 14.04, by the way). Since I can't install Openmeetings on that server, because I have no root access to it, I thought I would install it in my server, reachable under myname.ddns.net. Openmeetings is now installed under directory "presentations-en" on port 5080 and works fine both local and from the net.

However, because I wouldn't like people to see myname.ddns.net as an address in their URL-bar in the browser, I tried redirecting "mydomain.eu/presentations-en" with an .htaccess file to "http://myname.ddns.net:5080/presentations-en" with this directive

RewriteRule ^(.*) http://myname.ddns.net:5080$1 [P] # I tried also with a / between 5080 and $1

This gives me a 502 Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /presentations-en/.

Reason: Error reading from remote server

I enabled mod_proxy, mod_proxy_http and mod_proxy_html in the myname.ddns.net server and wrote this in the "apache2.conf" file:

ProxyPass /presentations-en http://localhost:5080/presentations-en
ProxyPassReverse /presentations-en http://localhost:5080/presentations-en

I tried with a lot of other configurations of directory structure and substituting "localhost" with "myname.ddns.net" to no avail. I tried a lot of other directives that I found in forums and mailing lists, but none of them worked. On some occasions I even get a different error by not changing absolutely anything. Once with this same configuration I got the URL changed to

http://myname.ddns.net:5080/presentations-en/presentations-en # (it rewrote "presentations-en" twice for whatever reason)

and obviously the error 404 Resource not found.

I looked at the log files for apache2 and access, but didn't find anything helpful there. I'll be more than glad to attach whatever log file can be helpful to you.

Thank you very much,

Regards, Andrea.


[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