Re: Having multiple Symfony2 apps on same domain

2014-12-29 Thread B.R.
Glad I helped ! :o) --- *B. R.* On Mon, Dec 29, 2014 at 3:52 PM, Naji Astier wrote: > Thanks you for your answer, you helped me to make it working. ;) > This is my final configuration : > > server { listen 80; > server_name mydomain; > root /server/www; location @rewrit

Re: Having multiple Symfony2 apps on same domain

2014-12-29 Thread Naji Astier
Thanks you for your answer, you helped me to make it working. ;) This is my final configuration : server { listen 80; server_name mydomain; root /server/www; location @rewriteMainApp { rewrite ^(.*)$ /app.php/$1 last; } location @rewri

Re: Having multiple Symfony2 apps on same domain

2014-12-28 Thread B.R.
You are using the same named location as the fallback of the try_files directive, although you are dealing with three different paths. Why do not you use one fallback named location per app location, each rewriting to the correct path? --- *B. R.* On Sun, Dec 28, 2014 at 10:16 PM, Naji Astier wr

Re: Having multiple Symfony2 apps on same domain

2014-12-28 Thread Naji Astier
Le 28/12/2014 20:30, Steve Holdoway a écrit : On Sat, 2014-12-27 at 05:52 -0500, Claros wrote: Hello everybody ! I just switched from Apache2 to Nginx and I met some issues having the same configuration. What I want to do is having multiple Symfony2 apps on the same domain name. Each app will h

Re: Having multiple Symfony2 apps on same domain

2014-12-28 Thread Steve Holdoway
On Sat, 2014-12-27 at 05:52 -0500, Claros wrote: > Hello everybody ! > > I just switched from Apache2 to Nginx and I met some issues having the same > configuration. What I want to do is having multiple Symfony2 apps on the > same domain name. Each app will have a subdirectory and a main app will

Having multiple Symfony2 apps on same domain

2014-12-27 Thread Claros
Hello everybody ! I just switched from Apache2 to Nginx and I met some issues having the same configuration. What I want to do is having multiple Symfony2 apps on the same domain name. Each app will have a subdirectory and a main app will be on the domain name itself. For instance : http://mydomai