0

I use php5 fpm using nginx. but i have a problem.

# debug alias
location /bb/ {
    alias /usr/share/blahblah/;
}

file on http://mysite.localhost/bb/index.php was not found. but it's still on /usr/share/blahblah/index.php

and this is an error:

*1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

1 Answers1

1

You probably don't want to load that file directly from disk, and instead proxy through fastcgi. In that case, a rewrite of the url is probably more what you're looking for.

JesseP
  • 196
  • 1
  • 1
  • 6