Seite wählen

Today i tried to create a node.js server on a vServer where i had plesk installed. Problem was that i didn’t liked the integration from plesk to make that possible. No logs directly available, didnt worked for me.

So the next solution i came up with was just to do the nginx and add my own server block into the config, just manually start my server and just let it be. But the original idea was to administrate at least the certificate and the domain inside my plesk.

So the approach was now: Start the Server and implement it into plesk. Here is how i did it.

I’m keeping it short. If any questions occur, just write me a comment.

 

1) On Plesk install nginx

2) Clone your project onto the server via ssh

3) Start the node.js server (i use pm2)

4) add the domain you want

5) go to dns settings > apache and nginx settings

6) insert the code below into the lowest textbox for nginx configuration and replace your port for the node.js with the one you are using (its bold) 

 

this.metaTagService.addTag({ name: 'robots', content: 'index, follow' });
this.metaTagService.addTag({ name: 'description', content: metaDescription });