lnmp1.6切换php版本
搭建的时候用的php5.6版本,想切换到php版本5.2。vhost下的配置也改了
include enable-php5.2.conf;
server
{
listen 80;
#listen [::]:80;
server_name www.php52.com ;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/www.php52.com;
include rewrite/none.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php5.2.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
访问网页还是5.6的
不好意思可以删帖吗,突然发现是改nginx.conf 已解决
页:
[1]