Nginx配置域名泛解析

通过清心醉

Nginx配置域名泛解析

其实很简单,针对server_name进行标注下:

详细的NGINX泛解析请参考下述代码:

server {
listen 80;
server_name qingxinzui.com *.qingxinzui.com;
root /home/qingxinzui_blog;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 405 /errpage/405.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}

关于作者

清心醉 administrator

发表评论

如果喜欢作者的文章,您可以打赏给作者:

TRC20(虚拟货币):


ERC20(虚拟货币):


Bitcoin(BTC):