title: Problem with redirecting to main page with apache and nestjs
body: <p>I'm looking for solution for my issue, because I've tried everything that comes to my head and I'm still not able to solve it.</p>
  
  <p>So, I have backend written with nestjs and on my local machine everything works as expected.</p>
  
  <p>But when I run it on server and type just host name ex. <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a> it shows empty page.
  It is confusing because every other route works well except main one.</p>
  
  <p>So I'm assuming there's something wrong on my apache virtual host configuration but I'm quite new to it and I don't know where the problem is.</p>
  
  <p>My apache2 conf looks like this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName example.com
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
  &lt;/VirtualHost&gt;
  
  &lt;IfModule mod_ssl.c&gt;
      &lt;VirtualHost _default_:443&gt;
          SSLEngine on
  
          SSLCertificateFile  /etc/ssl/example.com.crt
          SSLCertificateKeyFile /etc/ssl/example.com.key
          SSLCertificateChainFile /etc/ssl/example.com.ca-bundle.crt
  
          ServerAdmin admin@example.com
  
          ServerName example.com
  
          DocumentRoot /var/www/example.com/public_html/
  
          ProxyRequests Off
          ProxyPreserveHost On
          ProxyVia full
          &lt;Proxy *&gt;
              Require all granted
          &lt;/Proxy&gt;
  
          &lt;Location "/"&gt;
              ProxyPass http://127.0.0.1:50000/
              ProxyPassReverse http://127.0.0.1:50000/
          &lt;/Location&gt;
  
          &lt;Directory /var/www/example.com/public_html/&gt;
              Allowoverride all 
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
      &lt;/VirtualHost&gt;
  &lt;IfModule mod_ssl.c&gt; 
  </code></pre>
  
  <p>My nestjs app starts on port 50000.</p>
  
  <p>Thanks for any ideas.</p>