atom feed16 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 
Subject:Re: Nginx for Symfony
From:John Huong (jahu@public.gmane.org)
Date:May 24, 2008 9:23:51 am
List:ru.sysoev.nginx

In my symfony project's web folder there is a .htaccess file.

For apache I would have a line in that file that is RewriteBase /myproject

What is equivalent in nginx?

Hi Aleks,

Thanks for the tip, However, what if I need to have my symfony project hosted at location /myproject/ ?

Aleksandar Lazic wrote:

Hi Denis,

On Sam 24.05.2008 21:43, Denis F. Latypoff wrote:

Saturday, May 24, 2008, 9:18:20 PM, you wrote:

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 ~ \.(js|htc|ico|gif|jpg|png|css|html?)$ { + root /home/httpd/virtserver/<DOMAIN>/html; + index index.html index.htm;

Thank you.

Cheers