Nginx 常用的匹配
node项目配置成nginx启动 1、新建ant.conf 2、修改hosts 3、重启nginx
``` location ^~ /admin.php { allow xxx.xxx.xxx.xxx; // 允许的ip deny all; // 禁止其他 fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; include pathinfo.conf; } ```
lnmp 单独查看状态,单独启动,单独停止。 进入 处理php 处理nginx 处理mysql 处理Redis Tips:如果某个服务需要单独处理,可以这样操作!
http server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name smart.sqwisdom.net; index index.html index.htm admin.php; root /home/
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号