Current File : //etc/apache2/sites-available/vertex_power-le-ssl.conf |
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName 13.200.72.161
ServerAlias vertexpower.co.in
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
DirectoryIndex index.shtml index.html index.php
</Directory>
ErrorLog ${APACHE_LOG_DIR}/vertexpower.com_error.log
CustomLog ${APACHE_LOG_DIR}/vertexpower.com_access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
ServerAlias www.vertexpower.co.in
SSLCertificateFile /etc/letsencrypt/live/vertexpower.co.in/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/vertexpower.co.in/privkey.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName 13.200.72.161
ServerAlias www.vertexpower.co.in
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
DirectoryIndex index.shtml index.html index.php
</Directory>
ErrorLog ${APACHE_LOG_DIR}/vertexpower.com_error.log
CustomLog ${APACHE_LOG_DIR}/vertexpower.com_access.log combined
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} =vertexpower.co.in [OR]
# RewriteCond %{SERVER_NAME} =13.200.72.161
# RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
</IfModule>