配置Web服务器
需要在Web服务器配置文件中添加对久久午夜综合网站的配置。打开Apache的主配置文件(通常是/etc/apache2/sites-available/000-default.conf),添加以下内容:
ServerAdminwebmaster@localhostDocumentRoot/var/www/html/jjwzOptionsIndexesFollowSymLinksAllowOverrideAllRequireallgrantedErrorLog${APACHE_LOG_DIR}/error.logCustomLog${APACHE_LOG_DIR}/access.logcombined
pache配置
ServerAdminadmin@example.comDocumentRoot/path/to/webroot/ServerNameyourdomain.comErrorLog${APACHE_LOG_DIR}/error.logCustomLog${APACHE_LOG_DIR}/access.logcombinedOptionsIndexesFollowSymLinksAllowOverrideAllRequireallgranted
使用Let’sEncrypt免费SSL证书
sudoapt-getinstallcertbotpython3-certbot-apachesudocertbot--apache-dyourdomain.com
安装完成后,系统将自动配置SSL证书并设置自动续费提醒。
ginx配置
gzipon;gzip_typestext/plaintext/cssapplication/jsonapplication/javascripttext/xmlapplication/xmlapplication/xml+rsstext/javascript;
校对:王志郁(f3J1ePQDlzHhwh44q38w4Ima2E3XrDq)


