• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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