How to configure Reverse Proxy to Axes using path

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
m.ferrara
Posts: 1
Joined: 10 Mar 2020, 19:38

How to configure Reverse Proxy to Axes using path

Post by m.ferrara » 10 Mar 2020, 19:50

Hi,
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>
I received this error on my browser:
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)"
http://externalexes.mysite.com/internal/

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"

User avatar
jeanmichel
Posts: 105
Joined: 23 May 2014, 11:37
Location: Sydney

Re: How to configure Reverse Proxy to Axes using path

Post by jeanmichel » 19 Mar 2020, 09:53

Hi

What are you trying to achieve with this reverse proxy?

Strictly speaking this is not an aXes question, rather a general reverse proxy on Apache setting.

from what I can see from your config files http://externalexes.mysite.com/internal/wba/home.html --> http://internalaxes.mysite.com:5563/wba/home.html

But your logs show you are getting "GET /ts/axbuildinfo.js HTTP/1.1" not /internel/ts/axbuildinfo.js so that's not found.

also not sure about ProxyPass /internal/ http://internalaxes.mysite.com.:5563/
isn't it ProxyPass /internal http://internalaxes.mysite.com:5563/

There is a / after the path which shouldn't be there and a . after the fqn dns name which should not be there.
Regards,

Jean-Michel Rapin

LANSA Pty Ltd
email: JeanMichel.Rapin@lansa.com.au
Address: 122 Arthur Street, North Sydney, NSW 2060, Australia
Tel: +61 289 070 262 http://www.lansa.com | http://blog.lansa.com |

Post Reply