Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

<IfModule mod_ssl.

c>
<VirtualHost *:443>
ServerName erula.langkatkab.go.id
#Redirect permanent / https://erula.langkatkab.go.id/
DocumentRoot /var/www/html
<Directory /var/www/html>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php7.3-fpm.sock|fcgi://localhost"
#Redirect permanent / https://erula.langkatkab.go.id/
</FilesMatch>
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} =erula.langkatkab.go.id


# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

SSLCertificateFile /etc/letsencrypt/live/erula.langkatkab.go.id/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/erula.langkatkab.go.id/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

<VirtualHost *:80>
ServerName erula.langkatkab.go.id
#Redirect permanent / https://erula.langkatkab.go.id/
DocumentRoot /var/www/html
<Directory /var/www/html>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php7.3-fpm.sock|fcgi://localhost"
#Redirect permanent / https://erula.langkatkab.go.id/
</FilesMatch>
RewriteEngine on
RewriteCond %{SERVER_NAME} =erula.langkatkab.go.id
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

You might also like