nginx虚拟主机配置

nginx虚拟主机配置

首页角色扮演苍穹之巅更新时间:2024-06-18

添加虚拟主机

vim /etc/nginx/conf.d/wordpress.conf

server {

listen 80;

listen [::]:80;

server_name wlwolf.noip.cn;

location / {

root /data/web/wordpress;

index index.html index.htm index.php;

try_files $uri $uri/ /index.php?$args;

}

location ~ \.php$ {

root /data/web/wordpress/;

fastcgi_pass 127.0.0.1:9000;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME /$document_root$fastcgi_script_name;

include fastcgi_params;

}

}

查看全文
大家还看了
也许喜欢
更多游戏

Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved