Environment
NetIQ Access Manager 4.X
Situation
Trying to upload a file return a status code 404 if backend webserver is apache and is using the directives proxypass and/or proxypassreverse to proxy
Resolution
Change the Reverse Proxy configuration from "Forward Received Host Name" to "Web Server Host Name."
- Edit the Reverse Proxy, go to the "Web Servers" tab
- On "Host Header" change it from "Forward Received Host Name" to "Web Server Host Name."
- On the field right below, enter the value present in the backend webserver's "ServerName" directive.
Cause
It seems that if the webserver hostname send to the backend webserver is not the same as the one configured in the backend webserver httpd.conf, apache will not proxy the AGs request to the backend webserver thus returning a status code 404.
ServerName server1.mycompany.co.nz
SSLEngine on
SSLProxyEngine on
ProxyPass /placements/document http://webservices-dev.apac.mycompany.bz/data/document
See below a snippet of an httpd.conf from a apache backend webserver using proxypass and proxypassreverse directive.
SSLEngine on
SSLProxyEngine on
ProxyPass /placements/document http://webservices-dev.apac.mycompany.bz/data/document
ProxyPassReverse /placements/document http://webservices-dev.apac.mycompany.bz/data/document