nginx简单配置动静分离
程序员文章站
2024-04-04 16:10:59
...
server {
listen 80;
server_name www.linux.com;
index index.html index.htm;
root /data0/htdocs/www;
location ~ (\.php)$ {
listen 80;
server_name www.linux.com;
index index.html index.htm;
root /data0/htdocs/www;
location ~ (\.php)$ {
proxy_pass http://192.168.1.188:80;
}
以上就介绍了nginx简单配置动静分离,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。