| 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: | 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?
John Huong wrote:
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





