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