I have an instance of apache web server and I need to map URL in this way:
-
Url from b2b.domain.eu have to be proxied to another server 10.1.0.100 [IT WORKS]
-
Url from b2b.domain.eu/api have to be proxied to a tomcat api application [IT WORKS]
-
Url from b2b.domain.eu/decoder have to be proxied to a tomcat decoder application [IT WORKS]
-
For Url /App1/Shop/home.aspx we need to execute an output filter [IT WORKS]
-
www.domain.eu and web.domain.eu have to serve wordpress website [IT DON’T WORK] -> Instead the application go to App1 that seems to be default
Below there is my actual configuration. I tried to change it in different ways, change order, etc without any success. Anyone can help me to understand how to reach the expected behaviour?
Thanks in advance
<VirtualHost *:80> ServerName 10.1.0.101 ServerAlias b2b.domain.eu ProxyRequests Off ProxyPreserveHost On ExtFilterDefine filter1 mode=output \ cmd="/var/www/cgi-bin/filter.pl /tmp/filter.out" #Root: forward to App1 [OK] <LocationMatch "^/"> ProxyPassMatch http://10.1.0.100/App1 ProxyPassReverse http://10.1.0.100/App1 </LocationMatch> #API: Forward to tomcat (api) [OK] <LocationMatch "^/api/(.*)"> ProxyPassMatch http://localhost:8080/api/$ 1 ProxyPassReverse http://localhost:8080/api/$ 1 </LocationMatch> #Decoder: Forward to tomcat (decoder) [OK] <LocationMatch "^/decoder(.*)"> ProxyPassMatch http://localhost:8080/decoder$ 1 ProxyPassReverse http://localhost:8080/decoder$ 1 </LocationMatch> #App1 with filter execution [OK] <LocationMatch "^/App1/Shop/home.aspx(.*)"> ProxyPassMatch http://10.1.0.100/App1/Shop/home.aspx$ 1 ProxyPassReverse http://10.1.0.100/App1/Shop/home.aspx$ 1 SetOutputFilter filter1 </LocationMatch> #App1 [OK] <LocationMatch "^/App1(.*)"> ProxyPassMatch http://10.1.0.100/App1$ 1 ProxyPassReverse http://10.1.0.100/App1$ 1 </LocationMatch> </VirtualHost> #[KO] <VirtualHost *:80> ServerName 10.1.0.101 ServerAlias www.domain.eu web.domain.eu DocumentRoot /var/www/html/wordpress </VirtualHost>