Hello,
i have many projects in tomcat webapps folder. say my webapps has project1.war and proejct1 folder, project2.war and project2 folder i have also created subdomain proejct1.mydomain.com and project2.mydomain.com and redirected to respective folder so when i type project1.mydomain.com in url, browser automatically goes to project1 but the url now shows my droplet/project1 my requirement is that the url should show project1.mydomain.com
my apache conf file is
<VirtualHost *:80>
ProxyPreserveHost On
# this will pass all the requests from httpd to tomcat7
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
</VirtualHost>
my tomcat server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
</Host>
how can i achieve this
Thanks and Regards, Pranav C Lunavat
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!
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.