File: //etc/apache2/sites-enabled/dashboard.orbiwheels.com.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName dashboard.orbiwheels.com
#ServerAlias www.orbiwheels.com
# Document root for the website
DocumentRoot /var/www/html/dashboard.orbiwheels.com/public
# Directory settings
<Directory /var/www/html/orbiwheels.com>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Log files
ErrorLog ${APACHE_LOG_DIR}/orbiwheels.com_error.log
CustomLog ${APACHE_LOG_DIR}/orbiwheels.com_access.log combined
# Optional: Redirect from www to non-www or vice versa
# Uncomment one of the following lines if desired:
# Redirect www to non-www:
# RewriteEngine On
# RewriteCond %{HTTP_HOST} ^www\.orbiwheels\.com$ [NC]
# RewriteRule ^(.*)$ http://orbiwheels.com/$1 [L,R=301]
# Redirect non-www to www:
# RewriteEngine On
# RewriteCond %{HTTP_HOST} ^orbiwheels\.com$ [NC]
# RewriteRule ^(.*)$ http://www.orbiwheels.com/$1 [L,R=301]
</VirtualHost>