5:34 PM
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>
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ %{HTTP_HOST}/$1 [R=301,L]
« first day (3825 days earlier) ← previous day next day → last day (1165 days later) »