I'm trying to configure a reverse proxy to access from internet to my Axes server.
I configured Apache 2.4.6 on CentOS 7 in this way:
Code: Select all
ProxyRequests off
<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
ProxyTimeout 300
<VirtualHost externalexes.mysite.com:80>
ServerName externalaxes.mysite.com
ProxyPreserveHost On
ProxyPass / http://internalaxes.mysite.com.:5563/
ProxyPassReverse / http://internalaxes.mysite.com:5563/
</VirtualHost>
And it works if I set in ProxyPass and ProxyPassReverse / (after return my url change from http://externalexes.mysite.com to http://externalexes.mysite.com/wba/home.html)
I'll like to set my proxypass using path, for example I try to set in ProxyPass and ProxyPassReverse /internal/
Code: Select all
<VirtualHost externalexes.mysite.com:80>
ServerName externalaxes.mysite.com
ProxyPreserveHost On
ProxyPass /internal/ http://internalaxes.mysite.com.:5563/
ProxyPassReverse /internal http://internalaxes.mysite.com:5563/
</VirtualHost>
Not Found
The requested URL /mtest/ was not found on this server.
These are the Apache access logs:
http://externalexes.mysite.com/
Code: Select all
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET / HTTP/1.1" 200 2571 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/axbuildinfo.js HTTP/1.1" 200 5502 "http://externalexes.mysite.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/skins/images/axes-logo-white.png HTTP/1.1" 200 1740 "http://externalexes.mysite.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/axtext.js HTTP/1.1" 200 28155 "http://externalexes.mysite.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/lang/Texts_Core_en.txt?axbuild=4200000000007 HTTP/1.1" 200 50374 "http://externalexes.mysite.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/lang/Texts_Cust_en.txt?axbuild=4200000000007 HTTP/1.1" 200 4437 "http://externalexes.mysite.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /wba/home.html HTTP/1.1" 200 7335 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /favicon.ico HTTP/1.1" 200 3262 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/skins/images/axes-logo-white.png HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/axbuildinfo.js HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /wba/wba.css?axbuild=4200000000007 HTTP/1.1" 200 9365 "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/jquery-3.1.1.min.js?axbuild=4200000000007 HTTP/1.1" 200 86709 "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/js/axtext2.js?axbuild=4200000000007 HTTP/1.1" 200 8715 "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /wba/home_body.html HTTP/1.1" 200 6332 "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/axbuildinfo.js HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/jquery-3.1.1.min.js?axbuild=4200000000007 HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /ts/js/axtext2.js?axbuild=4200000000007 HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /wba/jsmlink.js?axbuild=4200000000007 HTTP/1.1" 200 6115 "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /wba/images/square.gif HTTP/1.1" 200 824 "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /wba/home_body.html?axbuild=4.2.0.000.000000&lang=en HTTP/1.1" 200 6332 "http://externalexes.mysite.com/wba/home.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:29 +0000] "GET /jsm/axinfo.json HTTP/1.1" 404 532 "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /ts/axbuildinfo.js HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html?axbuild=4.2.0.000.000000&lang=en" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /ping.jsp HTTP/1.1" 200 51 "http://externalexes.mysite.com/wba/home_body.html" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /ts/jquery-3.1.1.min.js?axbuild=4200000000007 HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html?axbuild=4.2.0.000.000000&lang=en" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /ts/js/axtext2.js?axbuild=4200000000007 HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html?axbuild=4.2.0.000.000000&lang=en" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /wba/jsmlink.js?axbuild=4200000000007 HTTP/1.1" 304 - "http://externalexes.mysite.com/wba/home_body.html?axbuild=4.2.0.000.000000&lang=en" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /jsm/axinfo.json HTTP/1.1" 404 532 "http://externalexes.mysite.com/wba/home_body.html?axbuild=4.2.0.000.000000&lang=en" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:12:30 +0000] "GET /ping.jsp HTTP/1.1" 200 51 "http://externalexes.mysite.com/wba/home_body.html?axbuild=4.2.0.000.000000&lang=en" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
::1 - - [09/Mar/2020:16:12:37 +0000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) (internal dummy connection)"
::1 - - [09/Mar/2020:16:12:38 +0000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.4.6 (CentOS) (internal dummy connection)"
Code: Select all
192.168.1.5 - - [09/Mar/2020:16:10:45 +0000] "GET /internal/ HTTP/1.1" 200 2571 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:10:45 +0000] "GET /ts/axbuildinfo.js HTTP/1.1" 404 215 "http://externalexes.mysite.com/internal/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:10:45 +0000] "GET /ts/axtext.js HTTP/1.1" 404 210 "http://externalexes.mysite.com/internal/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:10:45 +0000] "GET /ts/skins/images/axes-logo-white.png HTTP/1.1" 404 233 "http://externalexes.mysite.com/internal/" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:10:46 +0000] "GET /wba/home.html HTTP/1.1" 404 211 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
192.168.1.5 - - [09/Mar/2020:16:10:46 +0000] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; Trident/7.0; rv:11.0) like Gecko"