By kavisha
Hello,
I have a droplet up and running in Digital Ocean. I am using tomcat7, postgres, nginx and Java.
I created a safari extension for my website and now want to move it to the server, so that i can give a link to the location and people can download and install the extension.
This link - http://stackoverflow.com/questions/10956587/how-to-create-a-downloadable-public-link-for-files-on-server, provided some answers. I moved the extension to location /var/www/ as mentioned in the link.But,I have not installed Apache2.(I wanted to know if we can do it by the stuff that i already have on the server). If i try to access the files using - http://sitename/extensionname.safariextz, i get a 404 error.
My questions are
Appreciate any help, Thanks, Kavisha
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!
Hi,
For Tomcat, you’ll need to create link to the static content by modifying Tomcat’s server.xml configuration file to add this to the <Host> section:
<Context docBase="/home/stuff" path="/static" />
Replacing /home/stuff with the path to your static files, and path=“/static” with the path you want to use on your site for the files.
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.