File: //proc/thread-self/root/etc/apache2/sites-available/wpbariumselat.conf
<VirtualHost *:80>
ServerName bariumselat.com
ServerAlias www.bariumselat.com
ServerAdmin webmaster@bariumselat
DocumentRoot /var/www/html/wpbariumselat
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/wpbariumselat>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/wpbariumselat-error.log
CustomLog ${APACHE_LOG_DIR}/wpbariumselat-access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>