16 messages in ru.sysoev.nginxRe: Nginx for Symfony
FromSent OnAttachments
John HuongMay 24, 2008 5:50 am 
Aleksandar LazicMay 24, 2008 7:17 am 
Denis F. LatypoffMay 24, 2008 7:43 am 
Aleksandar LazicMay 24, 2008 8:26 am 
John HuongMay 24, 2008 8:54 am 
Aleksandar LazicMay 24, 2008 9:14 am 
John HuongMay 24, 2008 9:23 am 
Aleksandar LazicMay 24, 2008 9:41 am 
John HuongMay 24, 2008 9:47 am 
Aleksandar LazicMay 24, 2008 2:41 pm 
John HuongMay 24, 2008 5:42 pm 
Aleksandar LazicMay 24, 2008 11:53 pm 
John HuongMay 25, 2008 7:13 am 
Kiril AngovMay 26, 2008 12:41 am 
John HuongMay 26, 2008 1:18 am 
Aleksandar LazicMay 26, 2008 11:58 pm 
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: Nginx for SymfonyActions...
From:Kiril Angov (kupo@public.gmane.org)
Date:May 26, 2008 12:41:58 am
List:ru.sysoev.nginx

John, I suggest you run sumfony under apache to begin with as it seems you are trying two big things at the same time and you will just go in circles.

http://myhostname/myproject/mymodule/index.php

The above is not how the routing in Symfony works. Try http://myhostname/myproject/mymodule or http://myhostname/myproject/mymodule/index

Kupo

On Sun, May 25, 2008 at 10:13 AM, John Huong
<jahuong-Sm1MONCdCdLQT0dZR+Al@public.gmane.org> wrote:

myproject is a folder under /var/www/nginx-default

server { listen 9891; server_name localhost myserver;

#charset koi8-r;

#access_log logs/host.access.log main;

location / { root /var/www/nginx-default; index index.html index.htm index.php; }

location /myproject/ { rewrite ^(.*) index.php last; }

location /myproject/sf/ { root /usr/share/php/data/symfony/web/sf/; } # location ~ \.php($|/) { # root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name; include fastcgi_params; }

# deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } Aleksandar Lazic wrote:

On Son 25.05.2008 08:43, John Huong wrote:

Ok here is one part:

2008/05/25 00:46:08 [error] 4421#0: *5 open() "/usr/share/php/data/symfony/web/sf/myproject/sf/sf_default/images/icons/ok48.png" failed (2: No such file or directory), client: 192.168.11.86, server: localhost, request: "GET /myproject/sf/sf_default/images/icons/ok48.png HTTP/1.1", host: "10.1.1.88:9891", referrer: "http://10.1.1.88:9891/myproject/index.php"

and now the conf.