1. 程式人生 > 其它 >Apache Server side include,SSL 配置

Apache Server side include,SSL 配置

技術標籤:伺服器linuxapache運維伺服器ubuntu

Apache Server side include,SSL 配置

enable mod_include module

啟用SSL模組

// An highlighted block
a2enmod include

開啟SSL模組對html檔案的支援

// An highlighted block
vim /var/www/html/wordpress_old/fps/.htaccess

寫入以下命令

Options +Includes;
AddType text/html .html
AddOutputFilter INCLUDES .html

在apache配置檔案中關閉對.htaccess的禁用

<Directory  /var/www/html/wordpress_old/
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

重啟apache

sudo service apache2 restart