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