logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Configuring Reverse Proxy in Jboss EAS Connect to TOMCAT7
Author
Saaim



Joined: 07 Sep 2016
Posts: 9
Location: Saudi Arabia, Jubail

PostPosted: Mon 19 Sep '16 9:31    Post subject: Configuring Reverse Proxy in Jboss EAS Connect to TOMCAT7 Reply with quote

We have the following Architecture in Place
1. DMZ External Node (SSL Enabled) with Jboss EAS on RHEL 6.5 (Public IP)
2. TOMCAT7 internal Node (Private IP) with Application Tier

We want to connect the internet users to the Application node via reverse Proxy (DMZ Jboss EWS).
Below is the error message that appears when we try to access the Application via external DMZ Tier.
Also find below the configuration on External DMZ to forward the Request to the internal Application Node using Tomcat7 WebServer.

[root@rcjvctsrp ~]# /u01/jboss/jboss-ews-2.1/httpd/sbin/apachectl status
Not Found

The requested URL /server-status was not found on this server.

--------------------------------------------------------------------------

Apache/2.2.26 (Red Hat Enterprise Web Server) Server at localhost Port 80



#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *:80>
# Your domain name
#ServerName Domain_NAME_HERE

ProxyPreserveHost On

# The IP and port of the JBoss Enterprise Application Platform
# These represent the default values, if your HTTPD is on the same host
# as your JBoss Enterprise Application Platform managed domain or server

# The location of the HTML files, and access control information
#DocumentRoot /var/www
#<Directory /var/www>
#Options -Indexes
#Order allow,deny
#Allow from all
#</Directory>

</VirtualHost>
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_http_module modules/mod_proxy_http.so

# Uncomment these to proxy FTP or HTTPS
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

<VirtualHost publicip:443>
DocumentRoot /var/www/html
ServerName cts.rcjubail.gov.sa
SSLEngine on
SSLCertificateFile /u01/certificates/certs/cts_rcjubail_gov_sa.crt
SSLCertificateKeyFile /u01/certificates/cts_rcjubail_gov_sa.key
SSLCertificateChainFile /u01/certificates/certs/DigiCertCA.crt
#ProxyPassReverse /edms http://10.10.40.154:8888/edms
#ProxyPass /edms http://10.10.40.154:8888/edms
ProxyPass /edms http://10.10.40.154:8888/edms
ProxyPassReverse /edms http://10.10.40.154:8888/edms
</VirtualHost>

Above outs from DMZ External Server (JBOSS Enterprise WebServer).
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 19 Sep '16 14:04    Post subject: Reply with quote

Enable mod_status and configure the access to it.
See https://httpd.apache.org/docs/current/mod/mod_status.html

if you still have a question please ask again.
Back to top
Saaim



Joined: 07 Sep 2016
Posts: 9
Location: Saudi Arabia, Jubail

PostPosted: Mon 19 Sep '16 14:56    Post subject: error message. Reply with quote

#<VirtualHost 194.36.164.161:8443>
<VirtualHost 10.10.40.154:8888>
DocumentRoot /var/www/html
ServerName cts.rcjubail.gov.sa
SSLEngine on
SSLCertificateFile /u01/certificates/certs/cts_rcjubail_gov_sa.crt
SSLCertificateKeyFile /u01/certificates/cts_rcjubail_gov_sa.key
SSLCertificateChainFile /u01/certificates/certs/DigiCertCA.crt
#ProxyPassReverse /edms http://10.10.40.154:8888/edms
#ProxyPass /edms http://10.10.40.154:8888/edms
ProxyPass /edms ajp://10.10.40.154:8888/edms
ProxyPassReverse /edms ajp://10.10.40.154:8888/edms
</VirtualHost>
<Location "/server-status">
SetHandler server-status
Require host rcjvctsrp.jubail.gov.sa
</Location>



http://rcjvctsrp.jubail.rc.gov/server-status

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, abrars@rcjubail.gov.sa and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.2.26 (Red Hat Enterprise Web Server) Server at rcjvctsrp.jubail.rc.gov Port 80
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 19 Sep '16 15:02    Post subject: Reply with quote

Use the following to see what causes the error.

Code:

/usr/sbin/httpd -S
Back to top
Saaim



Joined: 07 Sep 2016
Posts: 9
Location: Saudi Arabia, Jubail

PostPosted: Tue 20 Sep '16 6:20    Post subject: /u01/jboss/jboss-ews-2.1/httpd/sbin/apachectl -S Reply with quote

VirtualHost configuration:
10.10.40.154:8888 cts.rcjubail.gov.sa (/u01/jboss/jboss-ews-2.1/httpd/conf/httpd.conf:1029)
wildcard NameVirtualHosts and _default_ servers:
_default_:443 rcjvctsrp.jubail.rc.gov (/u01/jboss/jboss-ews-2.1/httpd/conf.d/ssl.conf:81)
*:80 rcjvctsrp.jubail.rc.gov (/u01/jboss/jboss-ews-2.1/httpd/conf/httpd.conf:1001)
You have new mail in /var/spool/mail/root
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Tue 20 Sep '16 16:40    Post subject: Reply with quote

So only the the server-status page doesn't work yet?
Back to top
Saaim



Joined: 07 Sep 2016
Posts: 9
Location: Saudi Arabia, Jubail

PostPosted: Sun 25 Sep '16 9:28    Post subject: Server Status Reply with quote

Server Status Does not work also the request is not forwarded to the internal node as it should be. The DMZ Server should route the incoming external (HTTPS:8443)traffic RCJVCTSRP(Host) Server to internal Server(HTTP:8888)RCJVCTS(Host).
Back to top


Reply to topic   Topic: Configuring Reverse Proxy in Jboss EAS Connect to TOMCAT7 View previous topic :: View next topic
Post new topic   Forum Index -> Apache