I have just set up an Ubuntu server with Tomcat7 and Apache2.
Apache is running on port 80, Tomcat on port 8080. What I want to do now is to redirect certain subdomains to Tomcat.
mydomain.com => Apache root
www.mydomain.com => Apache root
wp.mydomain.com => Apache folder Wordpress
admin.mydomain.com => Tomcat project AdminTool
api.mydomain.com => Tomcat project WebService
The user should not have to enter / should not see any port numbers (just admin.mydomain.com
not admin.mydomain.com:8080
) when interacting with the websites.
I am aware that there are a couple of questions asking for similar things and I have also read some keywords which seam to be important for my problem (Virtual host, Proxy, ...) but this is the first time I am working with Linux and those other questions are just not detailed enough for me to understand how these things work.
Thank you!