• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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.
 
Back
Top