文件操作 - app.ltlcompare.com-le-ssl.conf
返回文件管理
返回主菜单
删除本文件
文件: /etc/apache2/sites-available/app.ltlcompare.com-le-ssl.conf
编辑文件内容
<IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin webmaster@localhost ServerName app.ltlcompare.com ServerAlias www.app.ltlcompare.com DocumentRoot /var/www/app.ltlcompare.com/.output/public <Directory /var/www/app.ltlcompare.com/.output/public> Options FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/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} =app.ltlcompare.com [OR] # RewriteCond %{SERVER_NAME} =www.app.ltlcompare.com # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/app.ltlcompare.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/app.ltlcompare.com/privkey.pem </VirtualHost> </IfModule>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件