File element-web-nginx.conf of Package element-web
rewrite ^/riot-web$ /riot-web/ redirect; location /riot-web/ { root /var/www/; index index.html; location / { try_files $uri $uri/ =404.html; } }
rewrite ^/riot-web$ /riot-web/ redirect; location /riot-web/ { root /var/www/; index index.html; location / { try_files $uri $uri/ =404.html; } }