Forum Moderators: phranque

Message Too Old, No Replies

Apache as my proxy server casuing illegal characters in URL

         

tale103108

2:33 pm on Mar 24, 2014 (gmt 0)

10+ Year Member



Oracle SE
APEX 4.2.1
RHEL 6.4
GlassFish 3.1.2
Apache 2..x
With Apache as my proxy server and Glassfish as my web server, the Oracle APEX listener rejects the ProxyPass URL from Apache,
http://myserver/apex/f?p=101
. From the APEX Listener I get the error

400 - Bad Request error - the request path contains illegal characters.


Prior to adding Apache as a Proxy server I had no issues.

Is there a way to change the f?p=101 to another string, like main_app.html. By the way, the page index.html comes up fine and brings me to the APEX main login page instead. I have to assume that the ? is causing an issue. I tried rewrite rules but I am not familiar with that facet of Apache to know if I am using it correctly.

Any suggestions?

lucy24

3:50 pm on Mar 24, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Boilerplate answer: Never mind what error message you receive. What error does the server send, and in response to what request?

tale103108

5:11 pm on Mar 24, 2014 (gmt 0)

10+ Year Member



Are you referring to the Apache server log, Glassfish server log or the APEX listener log... :-)

lucy24

4:11 am on Mar 25, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Let's do all three :) One can never have too much information.

tale103108

3:08 pm on Mar 25, 2014 (gmt 0)

10+ Year Member



Well, things have changed a bit so let's take one problem at a time. :-) First issue: Do I have my Apache proxy set up correctly?

I want
https://reveal.example.net
(Apache proxy) to redirect to
http://reveal.example.net:8080
(GlassFish web server). In other words, requests will be coming in on port 443 to Apache but my web app is on GlassFish on port 8080. Both servers are on the same box. If I go (via internal network) to
http://reveal.example.net:8080/myapp/mypage.html
I can bring up the web app main page.

Here is my httpd.conf file (relevant content):

<IfModule mod_proxy.c>
ProxyRequests On

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

NameVirtualHost *:443

<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/xyz.crt
SSLCertificateKeyFile /etc/pki/tls/private/xyz.key
<Directory /var/www/vhosts/reveal.example.net/httpsdocs>
AllowOverride All
</Directory>
DocumentRoot /var/www/vhosts/reveal.example.net/httpsdocs
ServerName reveal.example.net
ProxyPass /
http://reveal.example.net

ProxyPassReverse /
http://reveal.example.net

</VirtualHost>


NOTE: I do not have any /var/www/vhosts/reveal.example.net/httpsdocs directory...

Thx

[edited by: phranque at 3:23 pm (utc) on Mar 25, 2014]