File: //proc/thread-self/root/etc/apache2/sites-enabled/orbidirectory.com.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName orbidirectory.com
ServerAlias www.orbidirectory.com
# Document root for the website
DocumentRoot /var/www/html/orbidirectory.com/public
# Directory settings
<Directory /var/www/html/orbidirectory.com>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Log files
ErrorLog ${APACHE_LOG_DIR}/orbidirectory.com_error.log
CustomLog ${APACHE_LOG_DIR}/orbidirectory.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\.orbidirectory\.com$ [NC]
# RewriteRule ^(.*)$ http://orbidirectory.com/$1 [L,R=301]
# Redirect non-www to www:
# RewriteEngine On
# RewriteCond %{HTTP_HOST} ^orbidirectory\.com$ [NC]
# RewriteRule ^(.*)$ http://www.orbidirectory.com/$1 [L,R=301]
</VirtualHost>