參考導遊Using iRedMail with NginX和Setting up iRedMail with NginX,我想問的是,在服務器塊iRedMail nginx的配置文件更新
服務器{
聽80; server_name mail.mydomain.com;
location/{
rewrite^https://$server_name$1 permanent;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/apache2$fastcgi_script_name;
}
}
我只想刪除使用
$ sudo apt-get remove apache2
或
$ sudo rm -rf /usr/share/apache2
在/ usr /共享/ Apache2的目錄,可我替換以下行
fastcgi_param SCRIPT_FILENAME /usr/share/apache2$fastcgi_script_name;
與
或
fastcgi_param SCRIPT_FILENAME /etc/nginx$fastcgi_script_name; #I can see a file named fastcgi_params at /etc/nginx/
其次,我很想知道如何不變量$ fastcgi_script_name得到解決?