Dear Apache Friends,
Currently I need to perform these request on Apache server that used as a proxyreverse. My scenario as follow:
I have AWS connect to Middle server that run Jboss then this server connect to Linux Ubuntu which work as WAF!
I have three URLS that need to be resolved on three ports 8080, 8085, 8083 per below:
http://192.168.12.110:8080/eventplusmanagement
http://api-eventStatus.mycompany.net/eventplusmanagement
http://192.168.12.110:8085/eventnotificationmanagement
http://api-eventStatus.mycompany.net/eventnotificationmanagement
http://192.168.12.110:8083/eventincidentmanagement/
http://api-eventStatus.mycompany.net/eventincidentmanagement
The above will work fine using the IPs but not the friendly name.
My Config looks like this:
<VirtualHost *:443>
ServerName api-eventStatus.mycompany.net
ServerAdmin itsupport@mycompany.net
#DocumentRoot /var/www/api-eventStatus.mycompany.net
ErrorLog ${APACHE_LOG_DIR}/api-eventStatus.mycompany.net/error.log
CustomLog ${APACHE_LOG_DIR}/api-eventStatus.mycompany.net/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/mycompany.net.crt
SSLCertificateKeyFile /etc/apache2/ssl/private/mycompany.net.key
SSLCertificateChainFile /etc/apache2/ssl/jd_bundle-h8-s9.crt
# <LocationMatch "/main">
# SecRuleRemoveById 200004
# </LocationMatch>
#Don't pass errors folder to backend serve from this server
#Without ProxyErrorOverride On the page will just reload in the case of a 403 error, setting to another path will cause a 404 not found within JBOSS
ProxyPass /errorpages/ !
ProxyErrorOverride On
ErrorDocument 400 /errorpages/invalid.html
ErrorDocument 401 /errorpages/invalid.html
ErrorDocument 403 /errorpages/invalid.html
ErrorDocument 404 /errorpages/404.html
ErrorDocument 500 /errorpages/serviceunavailable.html
ErrorDocument 502 /errorpages/serviceunavailable.html
ErrorDocument 503 /errorpages/serviceunavailable.html
ErrorDocument 504 /errorpages/serviceunavailable.html
#Don't proxy favicon, serve locally so error messages outside app server website have correct ico as well
ProxyPass /favicon.ico !
#everything under the root / will be mapped at the given address
ProxyPass /eventincidentmanagement/ http://192.168.12.110:8083/
#modify the response headers from backend server
ProxyPassReverse /eventincidentmanagement/ http://192.168.12.110:8083/
#everything under the root / will be mapped at the given address
ProxyPass /eventnotificationmanagement/ http://192.168.12.110:8085/
#modify the response headers from backend server
ProxyPassReverse /eventnotificationmanagement/ http://192.168.12.110:8085/
#everything under the root / will be mapped at the given address
ProxyPass /eventplusmanagement/ http://192.168.12.110:8080
#modify the response headers from backend server
ProxyPassReverse /eventplusmanagement/ http://192.168.12.110:8080/
</VirtualHost>
Any idea why the friendly URL not working but IP works fine? DNS but where?
System Specs:
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
Thanks,