I can host a website using Alias.
Than the URI look like: www.myside.com/alias
I achive this using this in /etc/apache2/sites-available/www.myside.com.conf
Alias /alias"/usr/local/tomcat/alias"
<Directory "/usr/local/tomcat/alias">
Options -Indexes -FollowSymLinks
AllowOverride AuthConfig
Require all granted
</Directory>
What I need is that I'm able to host the main context with this:
www.myside.com and an image context with the alias, looking like this: www.myside.com/userimg. So I only need the main <Directory></Directory>
block without the alias.
By the way, I'm using JKmount.
The image context:
Alias /userimg "/usr/local/tomcat/userimg"
<Directory "/usr/local/tomcat/userimg">
Options -Indexes -FollowSymLinks
AllowOverride AuthConfig
Require all granted
</Directory>