Hi,
I have a tomcat web application which is running under http://localhost:8080/app_name.
Now i would like to configure that application under apache, for that i created one config file under sites-available/ and i enabled that site.config using a2ensite. Now i have config shortcut under sites-enable/.
configured host:
<VirtualHost *:80> ServerName domain.com ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/realmilk/app_name ProxyPassReverse / http://localhost:8080/app_name </VirtualHost>
When i run that configured domain i got
<^>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<^>
Thanks & Regards
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Did you enabled ProxyPass module?
If not:
- sudo a2enmod proxy
This requires you to restart Apache:
- sudo systemctl restart apache2
When integrating with Tomcat, this guide recommends using JKMount /* ajp13_worker which allows Tomcat to integrate more closely with apache.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.