lundi 28 novembre 2016

How to configure tomcat java application in apache web server?

I just configured the tomcat java application in apache like below.

<VirtualHost *:80>
    ServerName domain.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://localhost:8080/app_name
    ProxyPassReverse / http://localhost:8080/app_name
</VirtualHost>

Later I enabled site using a2ensite adavipalem.conf and restarted the server.

When I try to access from the browser by hitting like >> domain.com I got something like below at browser.

    Internal Server Error

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

    Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

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

Apache/2.4.7 (Ubuntu) Server at adavipalem.com Port 80

Can anyone help me where should I have to change this config?

Regards,




Aucun commentaire:

Enregistrer un commentaire