-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dimitrios,
On 6/26/2009 9:59 AM, Dimitrios Christodoulakis wrote: > I followed some steps they initially suggested which > involved creating a symbolic link between the default public directory > /home/myadmin/public_html/ and the application directory > usr/java/tomcat-5.5/webapps/mydomain/ by using the command: > > ln -s /usr/java/tomcat-5.5/webapps/mydomain/index.html > /home/myadmin/public_html This command created a symlink to index.html, not to the entire directory. You should instead do this: $ cd /home/myadmin $ mv public_html public_html.old $ ln -s /usr/java/tomcat-5.5/webapps/mydomain public_html This will give you the proper symlink. > With this I hoped all requests from www.mydomain.com going to > /home/myadmin/public_html would be automatically redirected to the > actual tomcat content starting with the deployed application's > index.html page. But unfortunately this does not work. I am always > returned the 404 error message. Apache httpd is still serving all your files. You need to convince Apache httpd to forward all your requests to Tomcat. No amount of symlinking will accomplish this. > Is there a known or recommended way to resolve this issue? After some > searching I believe there are workarounds involving editing the > /usr/java/tomcat-5.5/conf/server.xml and the etc/httpd/conf/http.conf > files. Would it be possible someone to provide some general steps how > to do this? You'll need to edit httpd.conf after making a decision: Use HTTP or HTTPS or AJP for proxying? If you want Tomcat to serve everything, why not dump httpd altogether? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpE/ggACgkQ9CaO5/Lv0PA0YwCgwIsEuIffpYrRmYhV1pjTVLo1 84kAn3JJCTjTY6A4HKsPpvhaKY5PxiCb =l/+T -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org