1、帝國cms網站搬家到阿里雲下用的 nginx 怎麼配置偽靜態
1、先進入到nginx的配置文件目錄,輸入以下命令:
cd /alidata/server/nginx/conf/rewrite
2、再輸入:ll
3、輸入以下命令:
cd /alidata/server/nginx/conf/vhosts
4、進入到網站配置目錄,打開配置文件,修改好偽靜態調用文件;
5、測試配置的文件是否正確,輸入:
/alidata/server/nginx/sbin/nginx -t
nginx: the configuration file /alidata/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test is successful
如果出現以上兩句話就說明配置成功了。
6、下面重啟下nginx
/alidata/server/nginx/sbin/nginx -s reload
7、偽靜態配置完成
2、帝國CMS對nginx支持的怎麼樣
當然是非常好的 其實跟nginx關系不大 主要在於一個偽靜態而已 不影響兼容,有影響的是php版本和伺服器性能,nginx 要在linux跑
3、帝國cms7.2用apache好還是nginx
實際上效果是一樣的,小量級的網站還是差不多。
推薦用nginx吧,配置起來也容易點,將來流量大了也不怕,相對比apache輕量級。