I'm trying to setup several webapps (nextcloud, roundcube) on one domain, let's say example.com
, without using cname subdomains. I installed webapps in default location /usr/share/webapps/
and I want this directory to be also my webroot server. How can I achieve effect like this:
example.com -> /usr/share/webapps/index.html
example.com/nextcloud -> /usr/share/webapps/nextcloud/
example.com/roundcube -> /usr/share/webapps/roundcube/
Using (if possible) several nginx configurations file? For example, nginx config for nextcloud contains few server
blocks while roundcube config from archwiki (server is running Arch Linux) is all written in one location
block. How should look nginx configuration to make all this working and with option to easily add new webapps?