12 messages in ru.sysoev.nginxRe: symfony php configuration
FromSent OnAttachments
shaktaleApr 29, 2009 8:21 am 
Joe BofhApr 30, 2009 3:58 pm 
shaktaleMay 5, 2009 1:28 am 
shaktaleMay 14, 2009 4:51 am 
Igor SysoevMay 14, 2009 5:02 am 
shaktaleMay 18, 2009 1:51 am 
Zheng, Wenxing (NSN - CN/Beijing)May 19, 2009 11:25 pm 
Delta YehMay 19, 2009 11:35 pm 
Mikel ArtetaMay 22, 2009 12:19 pm 
Igor SysoevMay 22, 2009 12:52 pm 
Mikel ArtetaMay 23, 2009 4:12 am 
Igor SysoevMay 23, 2009 8:20 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: symfony php configurationActions...
From:Mikel Arteta (lis@ruby-forum.com)
Date:May 22, 2009 12:19:16 pm
List:ru.sysoev.nginx

shaktale wrote:

location ~ ^(.+\.php)(.*)$ { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info;

Works like a charm, but I need to include:

fastcgi_param SCRIPT_NAME $fastcgi_script_name;

Thank you Igor.

Bonjour ^^

Can you give your configuration.

------------------------------------

server { listen 80; server_name dev.xxxx.com www.dev.xxxxx.com; access_log /var/log/nginx/dev.xxxxxx_access.log combined; root /data/www/dev/web; index index.html index.htm index.php;

location / { try_files $uri /index.php; expires max;}

location ~ \.php$ { fastcgi_pass unix:/dev/shm/php.socket;}

location ~ ^(.+\.php)(.*)$ { fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_pass unix:/dev/shm/php2.socket;}

location /sf/ { root /usr/share/php/data/symfony/web;}

location ~ /\.ht { deny all;}}

------------------------------------

It does not work with these parameters.

http://dev.xxxxxx.com/admin.php/matche => No input file specified.

Merci.