By Lisa
We have a CentOS7 Apache 2.4 droplet. Our java-based application is running fine, and can be accessed via a url similar to :
http://my.subdomain.com/cgi-bin/WO/MyApp.woa
But I want anyone accessing the url * http://my.subdomain.com* to automatically go to my app running at http://my.subdomain.com/cgi-bin/WO/MyApp.woa.
I’m sure this should be very simple but I’m not a sysadmin and I can’t find the answer by googling or looking at the tutorials here.
Many thanks for advice.
Lisa
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!
Couple of different methods to get this done. It all depends on what you want the end result to look like. If you do not care if the URL is http://my.subdomain.com/cgi-bin/WO/MyApp.woa, then you can just use a simply 301 rewrite code to get the job done. If you want the URL to be http://my.subdomain.com (without the trailing filenames and suhc), you might want to use mod_proxy or something similar to proxy it.
Hope it helps, Jason Colyer DigitalOcean Platform Support Lead
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.