• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Run Node.js Application from a Subdirectory

smbfission

New Pleskian
Hello, I hope someone can help me run a node.js app exclusively from a sub-directory on Plesk.
I am trying to run Ghost CMS (uses node.js) when accessed in a subdirectory only. I got Ghost CMS to work on Plesk (see the journey I went through here if interested: Cannot Install Ghost on Plesk Obsidian with Nods.js ) and was able to install it in a subdirectory.

Everything worked, except when configuring node.js on plesk, it seems that the Root domain (domainexample.com/) is configured to be the "application url"

so if you access domain.com, it will show "CANNOT GET /" if node.js is turned on.

1645559798432.png

and I don't know how to make it so that my node.js app only loads from the subdirectory address, from the example above, domain.com/learn/

When I go to my root domain
I see this:
1645559966554.png
Which makes sense because node.js is saying my app url is the root domain, but the files are hosted in a different subdirectory.

I want so that if you go to the root domain (domain.com) that it shows the index.html file shown there.
If I turn off node.js, it will show the index.html file there after apache cache clears.


Thanks so much!
 
Back
Top