symfony php configuration
Mikel Arteta
lists at ruby-forum.com
Fri May 22 23:19:39 MSD 2009
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.
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list