• 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.

Question multiple subdomain .conf

ink169

New Pleskian
Server operating system version
Ubuntu 24.04.3
Plesk version and microupdate number
18.0.74 Update #3
Hello!

our situation is we have 2 subdomains under the primary domain.

The 1st one i set the location in the Additional nginx directives to point to port 3000 which has been working great.

Now i have added another subdomain and created an application at port 3001, when i try and add the same location directive on this subdomain it gives an error that this is a duplicate of the "\" parameter for the location which i guess must be at the global level ?

Anyway what it seems i need is to configure multiple 'server' definitions pointing at the different applications / folders - the examples i see are in the .conf files but i dont want to start hacking these manually when there is probably a way to configure this setup in the Plesk interface

Thanks again, all comments welcome !

 
Try adding your proxy pass without the location block and see what happens, or remove the directive, save, then readd the directive. I've ran into that a few times and usually doing it without the location block and/or deleting it saving then readding it always does the trick for me.
 
In addition to the suggestion by @scsa20, it might be that "Proxy mode" is enabled on your subdomain. Which will prevent you from adding a root location block in your nginx directives. If "Proxy mode" is enabled, disabled it, save the changes first and then try adding your nginx directives.
 
Last edited:
Back
Top