wzh789 发表于 2018-11-14 09:21:33

nginx配置指定访问路径访问

server {  listen       8992;
  server_name localhost;
  location / {#此处填根目录
  index index.php index.html index.htm;
  root /usr/local/nginx/html/zabbix;#配置访问的路径
  }
  location ~ \.php$ {
  root /usr/local/nginx/html/zabbix;#配置访问的路径
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_indexindex.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include      fastcgi_params;
  }

页: [1]
查看完整版本: nginx配置指定访问路径访问