Send http request to tomcat server
Hi
I am new with cpanel. I recently bought a new VPS hosting. I have 2 domains which are using the same VPS hosting. I want to send one domain request apache server and send other domain request to tomcat. By default 80 port is used by apache server and 8080 is used by tomcat server. So far I came to know that I need to edit the httpd.config file. I added this code in post_virtualhost_global.config
username and domain name is xyz. Its not working. Could you help me with it. Thanks
ServerName xyz.com
ServerAlias mail.xyz.com www.xyz.com
DocumentRoot /home/xyz/public_html
ServerAdmin webmaster@xyz.com
UseCanonicalName Off
## User xyz # Needed for Cpanel::ApacheConf
UserDir enabled
suPHP_UserGroup xyz xyz
SuexecUserGroup xyz xyz
RMode config
RUidGid xyz xyz
# For more information on MPM ITK, please read:
# apache2-mpm-itk
AssignUserID xyz xyz
ProxyRequests Off
Order deny,allow
Allow from all
ProxyPass / http://www.xyz.com:8080/
ProxyPassReverse / http://www.xyz.com:8080/
Order allow,deny
Allow from all
ScriptAlias /cgi-bin/ /home/xyz/public_html/cgi-bin/
# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2_2/xyz/xyz.com/*.conf"
username and domain name is xyz. Its not working. Could you help me with it. Thanks
-
Hello, Could you verify the steps you used to install Tomcat on the cPanel server? You may find the following third-party URL helpful: Remove tomcat port number in the http URL Thank you. 0 -
Hi @cPanelMichael, Sorry for late reply. I installed tomcat using yum command. The stackoverflow article you suggested is only showing in windows environment could you please help with so same in linux Thanks, Mohit 0 -
Hello, Tomcat is not currently supported. You may want to consult with a system administrator to see if custom work could be completed to get the behavior you are seeking properly configured. You can find a list of system admin services on the following URL: System Administration Services | cPanel Forums I also encourage you to vote for the following feature request: Tomcat Support in EasyApache 4 Thank you. 0
Please sign in to leave a comment.
Comments
3 comments