I'm using an ubuntu web server with plesk 11.5.* - I want to forward a subdomain to a nodejs application with the port 2368. On my old debian systems i would create a vhost for ip:2368 and set the wanted subdomain as servername, correct?

But how would i do this with plesk. As far as i know i have to edit the config files manually. I've created the /var/www/vhosts/system/domain.net/conf/vhost.conf file and tried to insert my tag there but that does not work, it is already wrapped by a virtualhost tag.

<VirtualHost> cannot occur within <VirtualHost> section

I cannot find any good way to change the configuration. Even http://download1.parallels.com/Plesk/PP11/11.5/Doc/de-DE/online/plesk-linux-advanced-administration-guide/index.htm?fileName=72064.htm did not help.

So all at all i need a domain like app.domain.tld that refers to app.domain.tld:2368


The solution is to edit the nginx template file for the host as explained here: Nginx to address Nodejs app


You can just create a new domain app.domain.tld with standard forwarding to "http://app.domain.tld:2368"

enter image description here

  • ty, that works but i would like to hide the port for my nodejs app, if possible Sep 23 '13 at 19:00
  • 2
    In this case you have to setup nginx virtual host to serve your nodejs as upstream in separate server-wide config(its out of plesk). I suggest you to create another question(or google) with this detail and tag "nginx" just to warn nginx-experienced guys. The question wording should be in terms of upstream not forwarding, because forwarding will always expose port number. Sep 24 '13 at 7:21
  • thank you! my search for a solution continues with the new terms :) Sep 24 '13 at 10:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.