
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Node.js &#8211; Conetix</title>
	<atom:link href="https://testing.conetix.com.au/support-categories/nodejs/feed/" rel="self" type="application/rss+xml" />
	<link>https://testing.conetix.com.au</link>
	<description>Premier Web Hosting Provider</description>
	<lastBuildDate>Mon, 29 Jul 2024 06:36:59 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://testing.conetix.com.au/wp-content/uploads/favicon.png</url>
	<title>Node.js &#8211; Conetix</title>
	<link>https://testing.conetix.com.au</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Plesk 12: Running mod_proxy to use node.js (or similar)</title>
		<link>https://testing.conetix.com.au/support/plesk-12-running-mod-proxy-to-use-nodejs/</link>
		
		<dc:creator><![CDATA[Tim Butler]]></dc:creator>
		<pubDate>Wed, 06 Aug 2014 23:00:00 +0000</pubDate>
				<guid isPermaLink="false">https://conetix.com.au/knowledge-base/plesk-12-running-mod_proxy-to-use-nodejs/</guid>

					<description><![CDATA[Overview Many of the latest web frameworks (such as Node.js) don&#8217;t directly integrate into Parallels Plesk or any of the other web control panel systems. However, if you&#8217;ve setup the framework and have it running on your VPS, you can still take advantage of Plesk to manage your system. This is also applicable if you have...  <a class="excerpt-read-more" href="https://testing.conetix.com.au/support/plesk-12-running-mod-proxy-to-use-nodejs/" title="Read Plesk 12: Running mod_proxy to use node.js (or similar)">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<h2>Overview</h2>
<p>Many of the latest web frameworks (such as Node.js) don&#8217;t directly integrate into Parallels Plesk or any of the other web control panel systems. However, if you&#8217;ve setup the framework and have it running on your VPS, you can still take advantage of Plesk to manage your system. This is also applicable if you have a standalone application which provides a native HTTP interface and need to run it through your standard server.</p>
<p>One way to achieve this is to take advantage of the Apache <a href="https://httpd.apache.org/docs/2.2/mod/mod_proxy.html" target="_blank" rel="noopener">mod_proxy</a> to present this by proxying it through your existing website. This way, it will run on the standard port 80 and you can run other websites along side it.</p>
<h2>Instructions</h2>
<ol>
<li>After logging into Plesk, select the domain you want to add the proxy to.</li>
<li>If it&#8217;s not already expanded, select the Show More link:<br />
<img decoding="async" alt="Plesk 12 - Domains - Show More" src="/wp-content/uploads/2014/08/07/proxy-select-domain_1.png" style="height: 399px; width: 650px;" /></li>
<li>Click on the Web Server Settings button in the expanded view:<br />
<img decoding="async" alt="Plesk 12 - Web Server Settings" src="/wp-content/uploads/2014/08/07/proxy-web-server-settings.png" style="height: 452px; width: 780px;" /></li>
<li>Under the Additional Apache directives, you can then add the following code:
<pre class="prettyprint lang-ruby " data-pbcklang="ruby" data-pbcktabsize="4">&lt;Location /&gt;
    ProxyPass https://localhost:4321/
    ProxyPassReverse https://localhost:4321/
&lt;/Location&gt;</pre>
<p>This assumes your Node.js (or similar backend system) is listening on port 4321 on the localhost. If you have specified a different port number in your application, you&#8217;ll need to ensure it matches here. The result should look like this:<br />
<img decoding="async" alt="Plesk Proxy - Apache Directives" src="/wp-content/uploads/2014/08/07/proxy-apache-directives.png" style="height: 212px; width: 631px;" /></p>
<p><span class="info message-box" style="display: block;">You can also just specify a certain directory to proxy, eg &#8220;&lt;Location /test1&gt;&#8221; and this will only proxy requests for /test1.</span></li>
<li>Click on the OK button to save the config and force Apache to reload it. You should then be able to view your application from a browser with it being proxied through Apache.</li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Running a Node.js application with Plesk</title>
		<link>https://testing.conetix.com.au/support/running-a-node-js-application-with-plesk/</link>
		
		<dc:creator><![CDATA[Tim Butler]]></dc:creator>
		<pubDate>Mon, 03 May 2021 04:40:39 +0000</pubDate>
				<guid isPermaLink="false">https://conetix.com.au/?post_type=ht_kb&#038;p=14326</guid>

					<description><![CDATA[Overview Now that Plesk Onyx and Obsidian natively support Node.js, you can run your applications without any manual changes or hacks to your existing systems. This includes services such as Express, Next.js, Meteor and derivatives which require some server side JavaScript rendering. Supported versions of node will vary based on the underlying operating system, please...  <a class="excerpt-read-more" href="https://testing.conetix.com.au/support/running-a-node-js-application-with-plesk/" title="Read Running a Node.js application with Plesk">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[


<h2 class="wp-block-heading">Overview</h2>



<p>Now that Plesk Onyx and Obsidian natively support Node.js, you can run your applications without any manual changes or hacks to your existing systems. This includes services such as <a aria-label=" (opens in a new tab)" href="https://expressjs.com/" target="_blank" rel="noreferrer noopener" class="rank-math-link">Express</a>, <a href="https://nextjs.org/" target="_blank" aria-label="Next.js (opens in a new tab)" rel="noreferrer noopener" class="rank-math-link">Next.js</a>, <a aria-label=" (opens in a new tab)" href="https://www.meteor.com/" target="_blank" rel="noreferrer noopener" class="rank-math-link">Meteor</a> and derivatives which require some server side JavaScript rendering.</p>



<p>Supported versions of node will vary based on the underlying operating system, please <a href="https://testing.conetix.com.au/contact/" class="rank-math-link">contact Conetix</a> to confirm the available versions for your system.</p>



<p>The instructions below will step you through the process of deploying and configuration the application.</p>



<p class="wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info">Conetix does not support Node.js on shared hosting plans. You will need a <a href="https://testing.conetix.com.au/virtual-private-servers/">Virtual Private Server</a> in order to achieve this.</p>



<h2 class="wp-block-heading">Prerequisites</h2>



<ol class="wp-block-list">
<li>Own VPS with Plesk installed</li>



<li>Plesk root or administrator Login</li>



<li>Node.js Plesk Extension installed</li>
</ol>



<h2 class="wp-block-heading">Instructions</h2>



<ol class="wp-block-list">
<li>Login to Plesk.</li>



<li>Select the domain you wish to run your Node.js, then select Node.js: <br><img decoding="async" width="263" height="161" class="wp-image-14327" style="width: px;" src="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs.png" alt="" srcset="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs.png 263w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-50x31.png 50w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-32x20.png 32w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-64x39.png 64w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-128x78.png 128w" sizes="(max-width: 263px) 100vw, 263px" /></li>



<li>Enter the details about the app:<br><img fetchpriority="high" decoding="async" width="389" height="294" class="wp-image-14329" style="width: px;" src="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings.png" alt="" srcset="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings.png 389w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings-300x227.png 300w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings-50x38.png 50w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings-32x24.png 32w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings-64x48.png 64w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-settings-128x97.png 128w" sizes="(max-width: 389px) 100vw, 389px" /><br>This needs to include:<br>1. <strong>Document Root </strong>(location of the static assets to be served by the app)<br>2. <strong>Application Root</strong> (the location of your app files, eg what contains the app.js and libraries)<br>3. The <strong>application startup file</strong> (typically app.js, server.js or similar)<br>4. Any <strong>Custom environment variables</strong> required to run the app (if any)</li>



<li>After you&#8217;ve received confirmation that the <em>Startup File</em> exists, you then need to enable Node.js:<br><img decoding="async" width="150" height="39" class="wp-image-14328" style="width: 150px;" src="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-enable.png" alt="" srcset="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-enable.png 169w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-enable-50x13.png 50w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-enable-32x8.png 32w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-enable-64x17.png 64w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-enable-128x33.png 128w" sizes="(max-width: 150px) 100vw, 150px" /> </li>
</ol>



<h2 class="wp-block-heading">Diagnosing issues</h2>



<p>If your application fails to start or it&#8217;s having an issue, you can enable the debug mode to get further details.</p>



<ol class="wp-block-list">
<li>Within the Node.js area, set the Application Mode to <strong>development</strong>:<br><img loading="lazy" decoding="async" width="608" height="130" class="wp-image-14331" style="width: px;" src="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode.png" alt="" srcset="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode.png 608w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode-300x64.png 300w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode-50x11.png 50w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode-32x7.png 32w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode-64x14.png 64w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-development-mode-128x27.png 128w" sizes="auto, (max-width: 608px) 100vw, 608px" /></li>



<li>If your application fails to start, you should now see a larger error message with further information:<br><img loading="lazy" decoding="async" width="981" height="585" class="wp-image-14332" style="width: px;" src="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error.png" alt="" srcset="https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error.png 981w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error-300x179.png 300w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error-768x458.png 768w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error-50x30.png 50w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error-32x19.png 32w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error-64x38.png 64w, https://testing.conetix.com.au/wp-content/uploads/2021/04/plesk-nodejs-fusion-error-128x76.png 128w" sizes="auto, (max-width: 981px) 100vw, 981px" /></li>



<li>If the brief message isn&#8217;t sufficient to diagnose, click on <strong>Detailed diagnostics</strong> to get a detailed view of what&#8217;s going on.</li>
</ol>



<h2 class="wp-block-heading">Startup Files</h2>



<p>Some Node.js will need a separate startup file. For example, if you run Frontity, you can create a startup file similar to: </p>



<pre class="wp-block-code"><code>var frontity = require("./server").default;
var http = require(‘http’);
var server = http.createServer(frontity);
server.listen(process.env.PORT);</code></pre>



<p>This will need to be saved to a file, eg <em>startapp.js </em>and set as the <strong>Application Startup File</strong> in the Plesk Node.js configuration.</p>



<p class="wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info">The files uploaded should generally be compiled or packaged files. Most frameworks provide you with a <strong>build</strong> command to produce these files. Uploading the entire app may result in errors for some frameworks.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
