<VirtualHost *:80>
ServerAdmin
ServerName barsavia.com
DirectoryIndex index.html index.php
DocumentRoot /home/barsavia/barsavia
<Directory "/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
RewriteEngine on
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error_barsavia.log
CustomLog ${APACHE_LOG_DIR}/access_barsavia.log combined
#RewriteCond %{SERVER_NAME} =barsavia.com
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Edit History
<VirtualHost *:80>
ServerAdmin
ServerName barsavia.com
DirectoryIndex index.html index.php
DocumentRoot /home/barsavia/barsavia
<Directory "/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
RewriteEngine on
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error_barsavia.log
CustomLog ${APACHE_LOG_DIR}/access_barsavia.log combined
#RewriteCond %{SERVER_NAME} =barsavia.com
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
[/code]
<VirtualHost *:80>
ServerAdmin
ServerName barsavia.com
DirectoryIndex index.html index.php
DocumentRoot /home/barsavia/barsavia
<Directory "/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
RewriteEngine on
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error_barsavia.log
CustomLog ${APACHE_LOG_DIR}/access_barsavia.log combined
#RewriteCond %{SERVER_NAME} =barsavia.com
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
[/code[