Link to home
Start Free TrialLog in
Avatar of sysautomation
sysautomation

asked on

ProxyPass - Problem

Hi

I am creating a simple proxy pass in Apache 2.2 on CentOS 6 but that's not working and throwing error. I would be thankful if someone can please help:

SSLProxyEngine On
ProxyPass  /  https://ecuo-test.fin.us2.oraclecloud.com/
ProxyPassReverse  /  https://ecuo-test.fin.us2.oraclecloud.com/

Open in new window


Now when I call it as http://<MyHostName>/finApInvQuickInvoicesModel/InvoiceInterfaceService?wsdl it throws following error:

Invalid URL

The requested URL "http://%5bNo%20Host%5d/finApInvQuickInvoicesModel/InvoiceInterfaceService?", is invalid.
Reference #9.76fd241.1465372087.68aff0d

Whereas https://ecuo-test.fin.us2.oraclecloud.com/finApInvQuickInvoicesModel/InvoiceInterfaceService?wsdl works very fine.

Can you please help me fixing this?
Avatar of arnold
arnold
Flag of United States of America image

Proxypass and proxyreversepass have to be exactly opposite.

You have in slid characters in the request which got translated to their urlencodin.
HTTPS://<my hostname>/. Is not a valid URL. Or <No Host>
Check the entry to make sure it is correct.

You have to properly define the acceptable hostnames that match .....to be handled by the proxy/reverse proxy.
Avatar of sysautomation
sysautomation

ASKER

HTTPS://<my hostname>/. Is not a valid URL. Or <No Host>

It was just to explain. Of course I am putting my actual hostname without less than and greater than signs.  I don't want to disclose my hostname in a public forum that's why I used that.

Proxypass and proxyreversepass have to be exactly opposite.

Open in new window


I have made it following but still very same issue.

SSLProxyEngine On
ProxyPass  /  https://ecuo-test.fin.us2.oraclecloud.com/
ProxyPassReverse  https://ecuo-test.fin.us2.oraclecloud.com/ /

Open in new window

You have posted two separate items one indicating an error where the encoded URL seemed to be https://<no host>/...,

It is not clear to me what the issue is you are trying to address.  The access to the URL you have displayed in the Proxypass according to you works.

Please clarify what URL is being used and what the configuration and the issue is.
ASKER CERTIFIED SOLUTION
Avatar of sysautomation
sysautomation

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ProxyPreserveHost On was the problem