| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Issues with Apache Reverse proxy config -Substitues |  |  
| Author |  |  
| Santhosh_Saraswathula 
 
 
 Joined: 16 Oct 2017
 Posts: 2
 Location: India
 
 | 
|  Posted: Thu 12 Jul '18 23:36    Post subject: Issues with Apache Reverse proxy config -Substitues |   |  
| 
 |  
| I have a requirement to configure the application in Apache, 
 Here is the conf file
 
 <Location "/123s/">
 AddOutputFilterByType INFLATE;SUBSTITUTE application/xml text/xml
 RequestHeader unset Accept-Encoding
 RequestHeader set Host preprod.int.ca
 
 Header edit WWW-Authenticate ^Negotiate Negotiate123
 Header edit WWW-Authenticate ^NTLM NTLM123
 ProxyPass  https://17.2.10.27:8443/
 ProxyPassReverse  https://preprod.int.ca:8443/
 ProxyPassReverse /
 ProxyPassReverseCookieDomain "preprod.int.ca:8443/" "int.ca"
 ProxyPassReverseCookiePath  "/" "/123s/"
 Substitute s|"/admin/|"/123s/admin/|
 
 <If "%{HTTP_HOST} == 'preprod.int.ca'">
 Substitute s|'https\:\/\/17\.2\.10.27\:8443\/|'https://preprod.qc.ca/123s/|
 </If>
 
 <If "%{HTTP_HOST} == 'nexuspreprod.int.bell.ca'">
 Substitute s|'https\:\/\/17\.2\.10.27:8443\/|'https://preprod.int.ca/123s/|
 </If>
 
 <If "%{HTTP_HOST} == 'preprod.on.ca'">
 Substitute s|'https\:\/\/17\.2\.10.27:8443\/|'https://preprod.on.ca/123s/|
 </If>
 </Location>
 
 
 After saving the above config and restarting, the application is not working and gettig 404 error  and after verifying in fiddler traces i can get to know junction(/123s)is appending for the below urls.
 
 
 https://preprod.qc.ca/abcs/UserActivity?wsdl
 
 https://preprod.qc.ca/abcs/SubscriberMgmt?wsdl
 
 https://preprod.qc.ca/abcs/NetworkMgmt?wsdl
 
 https://preprod.qc.ca/abcs/AlarmMgmt?wsdl
 
 
 
 Can anyone helpme with the suggestion to fix these ...
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Mon 16 Jul '18 15:40    Post subject: |   |  
| 
 |  
| You can not have two ProxyPassReverse. Only one. 
 Since you have your setup in Location, you should remive ProxyPassReverse /
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |