| Current Path : /etc/apache2.bak/sites.bak/ |
| Current File : //etc/apache2.bak/sites.bak/csm-le-ssl.conf |
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName csm.dynaweb4.work
DocumentRoot /var/www/html/csm/www
ErrorLog /var/log/apache2/csm.error.log
CustomLog /var/log/apache2/csm.access.log combined
<Directory /var/www/>
#Require all denied
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Require ip 175.140.201.153
</Directory>
<Directory "/var/www/html/csm/www/uploads">
<FilesMatch "\.php$">
SetHandler none
SetHandler default-handler
Options -ExecCGI
RemoveHandler .php
php_flag engine off
</FilesMatch>
</Directory>
RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.
# RewriteCond %{SERVER_NAME} =www.dynaweb4.work [OR]
# RewriteCond %{SERVER_NAME} =portal.dynaweb4.work
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mycoast.dynaweb4.work/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mycoast.dynaweb4.work/privkey.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerName csm.dynaweb4.work
DocumentRoot /var/www/html/csm/www
ErrorLog /var/log/apache2/csm.error.log
CustomLog /var/log/apache2/csm.access.log combined
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
</IfModule>