Hi, i’m trying to deploy both my backend (Strapi) and frontend (Nuxt) on a single subdomain (Infomaniak managed cloud server) .
So far Strapi is running well but I don’t know to set the .htaccess to manage the frontend traffic:
# Strapi
RewriteEngine On
RewriteRule ^$ http://localhost:1337/ [P]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://localhost:1337/$1 [P]
# Nuxt
DirectoryIndex
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)?$ http://localhost:7000/$1 [P,L]
Is it possible to have both apps running on the same subdomain, or should I use one subdomain for each application? Also, does anyone know to remove the Strapi production page from the root?
Thanks in advance!