I have launched a new site www.example.com (real name hidden). i had upload basic web project which will have a index.html file, css, js, images and WEB-INF folder with web.xml file inside.
I named project as simpleProject, i placed the project folder in /opt/myapps/,
I did necessary configurations like
1. adding IP & domainname in /etc/hosts file
2. adding <HOST>...</HOST> in /etc/tomcat7/server.xml file and
3. placed ROOT.xml file with one line <context docBase="/opt/myapps/simpleProject" path="" ......... /> in /var/lib/tomcat7/conf/Catalina/www.example.com/.
when i hit www.example.com the index.html page is getting served but the css and images defined in the page is not coming, throwing 404 error for those. I used even the context path like "http://www.example.com/css/style.css".