Issue Problem with SPA AND NGINX Additional directive

wabou

New Pleskian
my signle page angular app is in MyDomain.com/Admin
the navigation is not working when refresh page

i tried to add this as Additional directive in Websites & Domains > <domain_name> > Apache & nginx Settings > Additional directives
location Admin/ {
try_files $uri $uri/ /index.html?$query_string;
}

but i get this error :

Invalid nginx configuration: nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/plesk.conf.d/vhosts/MyDomain.com.conf:52 nginx: configuration file /etc/nginx/nginx.conf test failedUnable to use the current nginx configuration file and to rollback to the previous version of the file because they both contain invalid configuration.
 
Do you have the passenger_enabled directive set in additional directive? if so, remove it temporary then you can add it back in later.
 
Back
Top