Okay so I got Tomcat 8 running and I created a subdomain/website to serve it to the public. Everything works fine if I go to sub.domain/app Now I want to learn the Spring framework by building another application and running it on my tomcat server. I'd like to be able to add this and future Java apps using Webfaction's control panel, and I'd like to be able to connect them with any website I choose. (How) can I create a symbolic link application to a subfolder within my Tomcat8 application? asked 22 Jan '15, 20:16 datacat |
Symlink apps can only be used for static content and PHP/CGI apps. They are not what you need here. What you need to do is:
answered 23 Jan '15, 01:36 seanf Thanks for the answer. With this I feel like I'm on the right track Related question: I now have the problem of my virtual host giving a 404 error. I pointed the virtual host to a directory in the webapps folder where put a simple index.html file. I tried adding an alias but that didn't work. I've tried setting up the virtual host through the web interface and by modding server.xml All for naught. Do you have any insights into this problem? Thanks
(26 Jan '15, 02:09)
datacat
Can you paste the Virtual Host configuration here? If you do not want to do that you may send us a support ticket and we can look on the server directly.
(26 Jan '15, 04:26)
johns
Fixed, I think For anyone else with the same problem, Tomcat looks for a folder named ROOT. <host name="sub.domain.com" appbase="webapps/myApp"/> Place the web pages users will see when they go to sub.domain.com in webapps/myApp/ROOT Place the web pages users will see when they go to sub.domain.com/directory in webapps/myApp/directory Thanks for the help!
(27 Jan '15, 02:17)
datacat
|