goodmm 发表于 2018-11-12 12:17:55

nginx给http加验证

  server {
  listen       80;
  server_namelocalhost;
  #charset koi8-r;
  #access_loglogs/host.access.logmain;
  location / {
  root   html;
  indexindex.html index.htm;
  location ~ .*\.(php|php5)?$ {
  fastcgi_pass unix:/tmp/php-cgi.sock;
  fastcgi_index index.php;
  include fastcgi.conf;
  }
  auth_basic "Authorized users only";
  auth_basic_user_file /usr/local/nginx/conf/auth.conf;
  }
  /sbin/nginx -t查看配置文件对不对

  /sbin/nginx -s>
页: [1]
查看完整版本: nginx给http加验证