I am running a Java webservice (JAX-WS) on Tomcat 8 from my AWS EC2 Linux instance, and I have a subdomain pointing to the service, so that I can call the service with URL
http://services.example.com/api/myService1. This is the VirtualHost config:
<VirtualHost *:80> ServerName services.example.com ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8080/Services/ ProxyPassReverse / http://localhost:8080/Services/ </VirtualHost>
Now I would like to access some static files (images) stored in the server. Where should I store them and how should I access them?
I tried storing them on
/opt/tomcat/webapps/ROOT/example.jpg and calling them as
http://services.example.com/example.jpg but it doesn't work.