• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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