[心得分享] 304 FastCGI sent in stderr: “Primary script unknown”

本帖最後由 carlkyo 於 2015-10-14 09:46 編輯

個網裝左幾日
今朝個LOG無啦啦出現
請問CHING有冇試過??
  1. # HTTP
  2. server {
  3.     # Listen on ipv4
  4.     listen 80;
  5.     server_name sample.com;

  6.     root /var/www/portal;
  7.     index index.php index.html index.htm;

  8.     location / {
  9.         root /var/www/portal;
  10.         rewrite ^(.*)/archiver/((fid|tid)-[w-]+.html)$ $1/archiver/index.php?$2 last;
  11.         rewrite ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3 last;
  12.         rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3 last;
  13.         rewrite ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3 last;
  14.         rewrite ^(.*)/space-(username|uid)-(.+).html$ $1/space.php?$2=$3 last;
  15.         rewrite ^(.*)/tag-(.+).html$ $1/tag.php?name=$2 last;
  16.     }

  17.     # Normal PHP scripts
  18.     location ~ \.php$ {
  19.         include fastcgi_params;
  20.         fastcgi_pass php_workers;
  21.         fastcgi_param SCRIPT_FILENAME /var/www/portal$fastcgi_script_name;
  22.         #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23.     }

  24.     # Deny all attempts to access hidden files such as .htaccess.
  25.     location ~ /\. { deny all; }

  26.     # Handling noisy favicon.ico messages
  27.     location = ^/favicon.ico { access_log off; log_not_found off; }
  28. }
複製代碼

TOP

thx ching
mariaDB好奇怪
我加改一個ACC隔左幾日無啦啦變左密碼
我係用phpmyadmin加acc

TOP