1 |
On Monday 02 April 2012 04:26:47 siefke_listen@×××.de wrote: |
2 |
> Hello, |
3 |
> |
4 |
> I try my web hosting environment to mirror locally. On my Rootserver run |
5 |
> Nginx with PHP-FPM under FreeBSD. So i has installed Nginx, PHP and Mysql |
6 |
> here local on Gentoo. But something is not correct, it want not really run. |
7 |
> I has search in web and use the config for Nginx on Gentoo (is other as on |
8 |
> FreeBSD) but nothing happen. The website (info.php) is blank and in logs i |
9 |
> find not the way which is my mistake. |
10 |
> |
11 |
> nginx.conf > http://nopaste.info/72a40e9c5e.html |
12 |
> php-fpm.conf > http://nopaste.info/94a9de62d5.html |
13 |
> emerge --info php nginx > http://nopaste.info/225b12e106.html |
14 |
|
15 |
I'm not really an expert with ngingx and php-fpm, but afaict the error is in |
16 |
the location line in nginx.conf. |
17 |
You have: |
18 |
location ~ .php$ { |
19 |
... |
20 |
Afaik this only matches the exact file ".php" |
21 |
|
22 |
Try changing it to |
23 |
location ~ ^(.*)\.php$ { |
24 |
... |
25 |
This would match all files ending in ".php" |
26 |
|
27 |
> Regards |
28 |
> Silvio |
29 |
|
30 |
Hth, |
31 |
Michael |