<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Guides on Documentation</title>
    <link>/docs/virtuozzo-paas/guides/</link>
    <description>Recent content in Guides on Documentation</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/docs/virtuozzo-paas/guides/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Catch-all VirtualHost with 301 redirect on Apache</title>
      <link>/docs/virtuozzo-paas/guides/apache-301-virtualhost/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/apache-301-virtualhost/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;If you want to make sure all traffic only uses your preferred domain name you can create a catch-all VirtualHost in Apache and redirect to the VirtualHost with the preferred domain name.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;&#xA;&lt;p&gt;On your apache node select config and edit the &lt;code&gt;httpd.conf&lt;/code&gt; file.&#xA;Replace the current &lt;code&gt;&amp;lt;VirtualHost ...&amp;gt;&lt;/code&gt; section with the following and replace &lt;code&gt;mydomain.com&lt;/code&gt; with your domain name.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: Before you make any changes, it is always recommended to create a backup copy of the old configuration file.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Change public IP without downtime</title>
      <link>/docs/virtuozzo-paas/guides/change_public_ip/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/change_public_ip/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;In Jelastic PaaS you can easily switch IP-addresses by yourself without any downtime.&lt;/p&gt;&#xA;&lt;h2 id=&#34;attach-new-ip-address&#34;&gt;Attach new IP-address&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Expand your environment. If you hover over your Public IPv4-address, an icon for attaching or detaching IP-addresses will appear.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_change-public-ip-1.png&#34; alt=&#34;Open-in-browser&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Attach a new IP by raising the number of IP-addresses to 2.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_change-public-ip-2.png&#34; alt=&#34;Change-number-of-ips&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Verify that your node has been assigned two IP-addresses.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_change-public-ip-3.png&#34; alt=&#34;Verify-two-ips&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;update-dns-records&#34;&gt;Update DNS-records&lt;/h2&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Update relevant DNS records at your DNS provider to point to the new IP address.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;em&gt;Please keep in mind that your DNS change can take up to 24 hours before it’s completely propagated worldwide. You can verify your DNS propagation&#xA;here: &lt;a href=&#34;https://dnschecker.org/&#34;&gt;DNS Checker&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Copy a SQL database</title>
      <link>/docs/virtuozzo-paas/guides/copy_sql_database/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/copy_sql_database/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This guide will walk you through the procedure of copying a SQL database between environments using the Jelastic GUI.&lt;/p&gt;&#xA;&lt;h2 id=&#34;export-the-database&#34;&gt;Export the database&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Open up phpMyAdmin on the source environment by clicking the icon as shown below&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_copy-sql-1.png&#34; alt=&#34;Open-in-browser&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Export the database by first choosing the database to the left, in our case example, and then click on Export on the top navigation bar. Make sure to check the box where it says &amp;ldquo;Save on server in the directory /var/lib/jelastic/phpMyAdmin/save&amp;rdquo; and then click &amp;ldquo;Go&amp;rdquo;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_copy-sql-2.png&#34; alt=&#34;phpMyAdmin-export&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Copy files between environments</title>
      <link>/docs/virtuozzo-paas/guides/copy_between_environments/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/copy_between_environments/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This guide will help you getting started with moving files between environments using the Jelastic GUI.&lt;/p&gt;&#xA;&lt;h2 id=&#34;export-directory&#34;&gt;Export directory&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Find the configuration wrench on the Application Servers source node.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_copy-files-1.png&#34; alt=&#34;Find-configuration-wrench&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Go to folder &lt;code&gt;/var/www/webroot&lt;/code&gt; (via favorites to the left). Click the cogwheel on the ROOT folder as shown on the image below and choose Export&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_copy-files-2.png&#34; alt=&#34;Go-to-folder&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Make sure to choose the correct target container where your target Application Server is at.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_copy-files-3.png&#34; alt=&#34;Choose-correct-target&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Enable IPv6</title>
      <link>/docs/virtuozzo-paas/guides/enable_ipv6/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/enable_ipv6/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This guide will help you enable IPv6. Remember that you might need to configure your application to listen on IPv6.&lt;/p&gt;&#xA;&lt;h2 id=&#34;enabling-ipv6&#34;&gt;Enabling IPv6&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Expand your environment. If you hover over &amp;ldquo;Public IP&amp;rdquo;, an icon for attaching or detaching IP-addresses will appear.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_enable-ipv6-1.png&#34; alt=&#34;Hover-icon&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Here we can choose to attach IPv4-addresses or enable Public IPv6 by switching the toggle to &amp;ldquo;ON&amp;rdquo;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_enable-ipv6-2.png&#34; alt=&#34;Enable-ipv6&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Verify that your environment have been assigned a new IPv6-address.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;/img/jelastic-paas/guides/jel_enable-ipv6-3.png&#34; alt=&#34;Verify-ipv6&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Enable X11-Forwarding on VPS</title>
      <link>/docs/virtuozzo-paas/guides/vps-x11-forwarding/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/vps-x11-forwarding/</guid>
      <description>&lt;h2 id=&#34;centos&#34;&gt;CentOS&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: This was tested on CentOS 7.9 but should apply to all available versions. Some minor differences may be present.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Xauth with &lt;code&gt;yum install xorg-x11-xauth&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Make sure X11Forwarding is enabled by running &lt;code&gt;grep X11Forwarding /etc/ssh/sshd_config&lt;/code&gt;, the output should look like: &lt;code&gt;X11Forwarding yes&lt;/code&gt;&#xA;If the output is &lt;code&gt;X11Forwarding no&lt;/code&gt;, edit the value in the sshd config with &lt;code&gt;vim /etc/ssh/sshd_config&lt;/code&gt; and restart sshd &lt;code&gt;service sshds restart&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Connect to the VPS &lt;code&gt;ssh -X user@ip&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Install an X application to verify that it works (for example: &lt;code&gt;yum install xclock&lt;/code&gt; and then run it with &lt;code&gt;xclock&lt;/code&gt;)&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;ubuntu&#34;&gt;Ubuntu&lt;/h2&gt;&#xA;&lt;p&gt;&lt;em&gt;Note: This was tested on Ubuntu 20.04 but should apply to all available versions. Some minor differences may be present.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>FAQ</title>
      <link>/docs/virtuozzo-paas/guides/eol_faq/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/eol_faq/</guid>
      <description>&lt;h2 id=&#34;q-we-would-like-to-explore-migration-options-already-now-how-should-we-think&#34;&gt;Q: We would like to explore migration options already now. How should we think?&lt;/h2&gt;&#xA;&lt;p&gt;A: Elastx provides a range of compute, database and other infrastructure products that can cover your needs.&#xA;There is specific packaging in Virtuozzo PaaS which we - at this point in time - cannot substitute directly.&#xA;However, we will present options later this year.&lt;/p&gt;&#xA;&lt;h2 id=&#34;q-we-run-one-or-a-few-vps-in-virtuozzo-paas-can-we-simply-migrate-to-openstack-iaas&#34;&gt;Q: We run one or a few VPS in Virtuozzo PaaS. Can we simply migrate to OpenStack IaaS?&lt;/h2&gt;&#xA;&lt;p&gt;A: Yes, however we strongly recommend that you migrate with the approach of rebuilding your workloads in OpenStack IaaS and migrate data there prior to shifting over your customer traffic. This way you may ensure that things are patched to the latest versions and tests are successful.&#xA;Contact us at &lt;a href=&#34;mailto:support@elastx.se&#34;&gt;support@elastx.se&lt;/a&gt; and we will set up an OpenStack IaaS project for you.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Force HTTPS on Apache behind Nginx load balancer</title>
      <link>/docs/virtuozzo-paas/guides/force_https_on_apache_behind_nginx/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/force_https_on_apache_behind_nginx/</guid>
      <description>&lt;h2 id=&#34;edit-httdconf&#34;&gt;Edit httd.conf&lt;/h2&gt;&#xA;&lt;p&gt;Add the following configuration in the Apache configuration file &lt;code&gt;httd.conf&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;VirtualHost *:80&amp;gt;&#xA;...&#xA;RewriteEngine on&#xA;RewriteCond %{HTTP:X-Forwarded-Proto} !https&#xA;RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Force HTTPS with Tomcat</title>
      <link>/docs/virtuozzo-paas/guides/jls-tomcat-https/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/jls-tomcat-https/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This guide describes how to make Tomcat force all traffic over HTTPS.&lt;/p&gt;&#xA;&lt;h2 id=&#34;tomcat-configuration&#34;&gt;Tomcat Configuration&lt;/h2&gt;&#xA;&lt;p&gt;On the Tomcat node, edit the web.xml file and add the following in the &lt;code&gt;&amp;lt;web-app *&amp;gt;&lt;/code&gt; section.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;    &amp;lt;security-constraint&amp;gt;&#xA;        &amp;lt;web-resource-collection&amp;gt;&#xA;            &amp;lt;web-resource-name&amp;gt;Protected Context&amp;lt;/web-resource-name&amp;gt;&#xA;            &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&#xA;        &amp;lt;/web-resource-collection&amp;gt;&#xA;        &amp;lt;!-- auth-constraint goes here if you require authentication --&amp;gt;&#xA;        &amp;lt;user-data-constraint&amp;gt;&#xA;            &amp;lt;transport-guarantee&amp;gt;CONFIDENTIAL&amp;lt;/transport-guarantee&amp;gt;&#xA;        &amp;lt;/user-data-constraint&amp;gt;&#xA;    &amp;lt;/security-constraint&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;With this, Tomcat will attempt to redirect any HTTP request to the specified context and instead use the HTTPS Connector, and as such never serve it under HTTP.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Log real client IP behind a proxy</title>
      <link>/docs/virtuozzo-paas/guides/access_log_real_ip/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/access_log_real_ip/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This guide will demonstrate how to make your web server log your client&amp;rsquo;s real IP instead of the proxy&amp;rsquo;s.&#xA;This is applicable both if your web server is behind your own proxy or our Jelastic resolver.&lt;/p&gt;&#xA;&lt;h2 id=&#34;nginx-configuration&#34;&gt;Nginx Configuration&lt;/h2&gt;&#xA;&lt;p&gt;Replace &lt;code&gt;$remote_addr&lt;/code&gt; with &lt;code&gt;$http_x_real_ip&lt;/code&gt; in your nginx.conf where the log format is defined.&lt;/p&gt;&#xA;&lt;p&gt;This is what is should look like:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;    log_format  main  &amp;#39;$http_x_real_ip:$http_x_remote_port - $remote_user [$time_local] &amp;#34;$request&amp;#34; &amp;#39;&#xA;                      &amp;#39;$status $body_bytes_sent &amp;#34;$http_referer&amp;#34; &amp;#39;&#xA;                      &amp;#39;&amp;#34;$http_user_agent&amp;#34; &amp;#34;$http_x_forwarded_for&amp;#34; &amp;#39;&#xA;                      &amp;#39;&amp;#34;$host&amp;#34; sn=&amp;#34;$server_name&amp;#34; &amp;#39;&#xA;                      &amp;#39;rt=$request_time &amp;#39;&#xA;                      &amp;#39;ua=&amp;#34;$upstream_addr&amp;#34; us=&amp;#34;$upstream_status&amp;#34; &amp;#39;&#xA;                      &amp;#39;ut=&amp;#34;$upstream_response_time&amp;#34; ul=&amp;#34;$upstream_response_length&amp;#34; &amp;#39;&#xA;                      &amp;#39;cs=$upstream_cache_status&amp;#39; ; &#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And this is the default value, note that the only change is on the first row.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nginx LB HTTP to HTTPS redirect</title>
      <link>/docs/virtuozzo-paas/guides/nginx_load_balancer_redirect/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/nginx_load_balancer_redirect/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;If you have an nginx load balancer in you environment and want to redirect all requests to https then you can add the following configuration.&lt;/p&gt;&#xA;&lt;h2 id=&#34;nginx-configuration&#34;&gt;nginx configuration&lt;/h2&gt;&#xA;&lt;p&gt;On the nginx load balancer node select config and create a new file under conf.d named redirect.conf.&#xA;Add the following configuration to the file, save it and restart nginx.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;server &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       listen *:80 default_server&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       access_log /var/log/nginx/redirect.access_log main&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       error_log /var/log/nginx/redirect.error_log info&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       location / &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;         rewrite ^ https://&lt;span class=&#34;nv&#34;&gt;$host$request_uri&lt;/span&gt;? permanent&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       &lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Nginx redirect to HTTPS</title>
      <link>/docs/virtuozzo-paas/guides/nginx_redirect_to_https/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/nginx_redirect_to_https/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;If you have enabled https, have a public IP and want to redirect all traffic from http to https you can change the &amp;ldquo;/ location {}&amp;rdquo; section in nginx.conf to the following.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;location / &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  rewrite ^ https://&lt;span class=&#34;nv&#34;&gt;$host$request_uri&lt;/span&gt;? permanent&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If your webserver is located behind a proxy, loadbalancer or WAF (that sends x-forwarded headers) you can simply use the below snippet instead.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$http_x_forwarded_proto&lt;/span&gt; !&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https&amp;#34;&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  rewrite ^ https://&lt;span class=&#34;nv&#34;&gt;$host$request_uri&lt;/span&gt;? permanent&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Node.JS NPM Module Problems</title>
      <link>/docs/virtuozzo-paas/guides/npm_modules/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/npm_modules/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;If you have problems with installing node modules via npm and get &amp;ldquo;unmet dependency&amp;rdquo; errors then this guide might help.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;&#xA;&lt;p&gt;Try to remove all installed modules, clear the npm cache and reinstall. Log in to the node with ssh and run the following commands:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; /home/jelastic/ROOT&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm cache clean --force&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;rm -r node_modules&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm install&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>PHP max upload file size</title>
      <link>/docs/virtuozzo-paas/guides/php-upload-maxsize/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/php-upload-maxsize/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This guide demonstrates how to increase (or decrease) the PHP max upload file size. We&amp;rsquo;ll need to both configure PHP and then the web server if you&amp;rsquo;re running nginx.&lt;/p&gt;&#xA;&lt;h2 id=&#34;php-configuration&#34;&gt;PHP Configuration&lt;/h2&gt;&#xA;&lt;p&gt;In php.ini, find the rows containing &lt;code&gt;upload_max_filesize&lt;/code&gt; and &lt;code&gt;post_max_size&lt;/code&gt; and change their values to the desired amount.&lt;/p&gt;&#xA;&lt;p&gt;By default they will look something like this, depending on what type of node you&amp;rsquo;re running their values might differ:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-php&#34; data-lang=&#34;php&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;upload_max_filesize&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;100&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;M&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;post_max_size&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;100&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;M&lt;/span&gt;          &lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;Maximum&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;size&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;of&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;POST&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;data&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;that&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;PHP&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;will&lt;/span&gt; &lt;span class=&#34;nx&#34;&gt;accept&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Continue with the web server configuration below.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Redirect nginx</title>
      <link>/docs/virtuozzo-paas/guides/nginx_redirect/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/nginx_redirect/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;If you want to make sure all traffic only uses your preferred domain name you can create a new server {} block that redirects to the preferred domain name.&lt;/p&gt;&#xA;&lt;h2 id=&#34;edit-nginxconf&#34;&gt;Edit nginx.conf&lt;/h2&gt;&#xA;&lt;p&gt;On your nginx node select config and edit the nginx.conf file.&#xA;In this example we&amp;rsquo;ll redirect my-site.jelastic.elastx.net to &lt;a href=&#34;https://my-domain.tld&#34;&gt;https://my-domain.tld&lt;/a&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;server &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    server_name my-site.jelastic.elastx.net&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    listen &lt;span class=&#34;m&#34;&gt;80&lt;/span&gt; default_server&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;return&lt;/span&gt; &lt;span class=&#34;m&#34;&gt;301&lt;/span&gt; https://my-domain.tld/&lt;span class=&#34;nv&#34;&gt;$request_uri&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Restrict phpMyAdmin access</title>
      <link>/docs/virtuozzo-paas/guides/phpmyadmin-restrict/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/phpmyadmin-restrict/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;If you want to limit access to the database phpMyAdmin you can use a Apache access rule.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;In the Virtuozzo PaaS GUI, select &amp;ldquo;Config&amp;rdquo; on the database node.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Edit the file /conf.d/phpMyAdmin-jel.conf and make sure your &lt;code&gt;&amp;lt;Directory /usr/share/phpMyAdmin/&amp;gt;&lt;/code&gt; looks like this. Edit the IP to the IP that should be granted access.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;Directory /usr/share/phpMyAdmin/&amp;gt;&#xA;     SetEnvIf X-Forwarded-For ^xxx\.xxx\.xxx\.xxx env_allow_1&#xA;     Require env env_allow_1&#xA;     Require ip xxx.xxx.xxx.xxx&#xA;     Require all denied&#xA;&amp;lt;/Directory&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;Note: Make sure to edit the IP in the example to your desired value&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>SMTP on port 25 not working</title>
      <link>/docs/virtuozzo-paas/guides/smtp_on_port_25/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/virtuozzo-paas/guides/smtp_on_port_25/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;By default we block traffic to internet on tcp port 25. We do this to prevent abuse, mail abuse is very common and we do our best to prevent this from happening.&lt;/p&gt;&#xA;&lt;h2 id=&#34;alternatives&#34;&gt;Alternatives&lt;/h2&gt;&#xA;&lt;p&gt;If you want to send e-mail from our platform we recommend using our Mail Relay service. All major SMTP services offer their service on other ports than port 25.&lt;/p&gt;&#xA;&lt;p&gt;This way you can get an automated reliable SMTP service that is very cost effective.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
