« first day (3825 days earlier)      last day (45 days later) » 

5:34 PM
Hi all
I hope someone can help me with the problem I will explain below :)
I ported a Nuxt.js app to a subdomain on Apache in Ubuntu with following lines in a file with a name such as example.com.conf in /etc/apache2/sites-available/ path:
<VirtualHost example.com:80>
    ServerName example.com
    ServerAdmin webmaster@example.com

    ProxyPreserveHost On
    ProxyRequests Off
    ProxyPass / localhost:3000
</VirtualHost>
And now I want the address (example.com) to be redirected to www.example.com address
I've looked at many solutions on the Internet, but they all cause problems
For example:
Redirect permanent / example.com
OR
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ %{HTTP_HOST}/$1 [R=301,L]
But always face with ERRORS such as this:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Thanks in advance to those who will help me
 

« first day (3825 days earlier)      last day (45 days later) »