Nginx for Symfony

John Huong jahuong at acme2u.com
Sat May 24 19:54:26 MSD 2008


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
>
> Aleks
>
>






More information about the nginx mailing list