在nginx的配置文件中配置
文件的路径:/usr/local/webserver/nginx/conf/nginx.conf
server {
listen 80;
server_name localhost;
index index.html index.htm;
root /data0/htdocs/www;
location ~ (\.php)$ {
proxy_pass http://192.168.1.26;
}
}
原文地址:http://10182603.blog.51cto.com/10172603/1650299