• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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