| From | Sent On | Attachments |
|---|---|---|
| John Huong | May 24, 2008 5:50 am | |
| Aleksandar Lazic | May 24, 2008 7:17 am | |
| Denis F. Latypoff | May 24, 2008 7:43 am | |
| Aleksandar Lazic | May 24, 2008 8:26 am | |
| John Huong | May 24, 2008 8:54 am | |
| Aleksandar Lazic | May 24, 2008 9:14 am | |
| John Huong | May 24, 2008 9:23 am | |
| Aleksandar Lazic | May 24, 2008 9:41 am | |
| John Huong | May 24, 2008 9:47 am | |
| Aleksandar Lazic | May 24, 2008 2:41 pm | |
| John Huong | May 24, 2008 5:42 pm | |
| Aleksandar Lazic | May 24, 2008 11:53 pm | |
| John Huong | May 25, 2008 7:13 am | |
| Kiril Angov | May 26, 2008 12:41 am | |
| John Huong | May 26, 2008 1:18 am | |
| Aleksandar Lazic | May 26, 2008 11:58 pm |
| Subject: | Re: Nginx for Symfony | |
|---|---|---|
| From: | Aleksandar Lazic (al-n...@public.gmane.org) | |
| Date: | May 24, 2008 7:17:57 am | |
| List: | ru.sysoev.nginx | |
Hi,
On Sam 24.05.2008 20:51, John Huong wrote:
I would like to seek assistance with configuring nginx for a symfony project.
[snipp]
Also how do I tell nginx to always load all references to the sf folder (e.g. /var/www/myproject/web/sf) to the symfony data folder?
I have this working setup:
### server { . . . location / { root /home/httpd/virtserver/<DOMAIN>/html;
if ($request_filename !~ "\.(js|htc|ico|gif|jpg|png|css|htm)$") { rewrite ^(.*) /index.php last; } index index.html index.htm; }
location /sf/ { root /home/php/lib/php/data/symfony/web; }
location ~ \.php($|/) {
set $script $uri; set $path_info "";
if ($uri ~ "^(.+\.php)(/.+)") { set $script $1; set $path_info $2; }
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/home/php/projects/symfony/web$script;
fastcgi_param PATH_INFO $path_info;
fastcgi_pass 127.0.0.1:8085; } } ###
Hth
Aleks





