tip: Single symfony project serving multiple domains via separate apps


Problem: You have a symfony project with 2 applications ‘customers’ and ‘resellers’. You want www.myretail.com to use ‘customer’ application and www.myresellers.com to use ‘resellers’ application.

here customers app is your default ‘frontend’ app with index.php and resellers app has say ‘reseller.php’ and ‘reseller_dev.php’ controller files.

Separate the web folder for each domain you want handle.

so customers content is in /project/web folder and resellers content is in /project/web-reseller/ folder. Move your reseller.php to web-reseller folder and rename it to index.php

You will need to create two virtual host for each domain with document root pointing to their respective folders.

Another solution is to have different .htaccess files. In case you do not want to create separate web folder you can create another .htaccess_reseller file in the web/ folder and redirect all request to reseller.php instead of index.php

about the author


  1. Tucholski

    August 12, 2010

    I love what you men are always up too. Such clever work and reporting! Keep up the excellent works guys I’ve additional you guys to my blogroll, Cheers.

  2. Freon Coffjin

    February 22, 2012

    I’m really glad I have found this info. Today bloggers publish just about gossips and net and this is actually annoying. A good site with exciting content, that’s what I need. Thanks for keeping this web-site, I’ll be visiting it. Do you do newsletters? Can’t find it.

  3. Niesha Deserio

    March 19, 2012

    I like what you guys are up also. Such intelligent work and reporting! Carry on the superb works guys I’ve incorporated you guys to my blogroll. I think it’ll improve the value of my site :). “As is a tale, so is life not how long it is, but how good it is, is what matters.” by Lucius Annaeus Seneca.

  4. Classie Isassi

    March 22, 2012

    I drop a leave a response each time I appreciate a article on a website or I have something to add to the discussion. Usually it is a result of the sincerness communicated in the post I browsed. And on this article tip: Single symfony project serving multiple domains via separate apps | Start IT up. I was excited enough to drop a thought 😉 I actually do have 2 questions for you if it’s allright. Is it only me or do some of the remarks look like left by brain dead visitors? 😛 And, if you are writing on other sites, I’d like to follow you. Could you list every one of all your shared pages like your Facebook page, twitter feed, or linkedin profile?

  5. Simon Podeszwa

    April 10, 2012

    Can I simply say what a reduction to find someone who actually is aware of what theyre talking about on the internet. You definitely know how you can convey a problem to gentle and make it important. Extra individuals need to learn this and understand this facet of the story. I cant imagine youre no more in style since you definitely have the gift.

  6. Terrell Tamayo

    April 25, 2012

    sorry im not mitt romney

  7. pierścionki zaręczynowe

    May 2, 2012

    I precisely desired to thank you so much yet again. I am not sure the things I would have accomplished without the entire recommendations contributed by you concerning my area of interest. It has been an absolute daunting matter in my opinion, nevertheless seeing the very professional form you resolved it made me to leap for delight. I am thankful for your advice and then believe you know what a great job you are always putting in teaching many others through a blog. Most probably you have never come across all of us.

  8. carte bancaire

    August 22, 2012

    F*ckin’ amazing issues here. I am very satisfied to look your article. Thanks a lot and i am having a look forward to contact you. Will you please drop me a e-mail?

  9. Rachell Southward

    June 10, 2013

    Yes. It should operate. If it doesn’t send us an email.

  10. Verona

    June 13, 2013

    It’s a pity you don’t have a donate button! I’d definitely donate to this brilliant blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will share this blog with my Facebook group. Chat soon!

  11. Tamera

    June 14, 2013

    Thank you for this article. I’d personally also like to express that it can become hard when you find yourself in school and simply starting out to create a long history of credit. There are many pupils who are just simply trying to make it and have a long or positive credit history can often be a difficult issue to have.

  12. Jeremiah Astor

    June 14, 2013

    I keep trying to subscribe for the Letters thing, but there’s nowhere to do so! Once i sign in, under the MANAGE YOUR SUBSCRIPTION backlink, there’s only my Book Club subscription. How do I add the Letters thing for $5?

  13. Christian

    June 14, 2013

    Thank you for the auspicious writeup. It if truth be told used to be a entertainment account it. Glance advanced to far brought agreeable from you! However, how could we keep in touch?

  14. Edison

    June 15, 2013

    Thanks a bunch for sharing this with all of us you really understand what you’re speaking about! Bookmarked. Kindly additionally discuss with my web site =). We may have a hyperlink trade agreement between us!

  15. Alfonso

    June 15, 2013

    I have realized that over the course of building a relationship with real estate proprietors, you’ll be able to come to understand that, in most real estate contract, a percentage is paid. Eventually, FSBO sellers never “save” the payment. Rather, they struggle to earn the commission by doing an agent’s task. In completing this task, they shell out their money and time to accomplish, as best they will, the tasks of an realtor. Those responsibilities include getting known the home by way of marketing, showing the home to prospective buyers, building a sense of buyer urgency in order to make prompt an offer, scheduling home inspections, dealing with qualification checks with the loan company, supervising maintenance, and aiding the closing of the deal.

  16. Alfredo Slezak

    June 15, 2013

    I’m also commenting to let you be aware of of the awesome experience my friend’s girl went through visiting your webblog. She came to find a good number of details, including how it is like to have a marvelous coaching heart to make most people smoothly fully understand chosen very confusing topics. You truly did more than visitors’ expected results. I appreciate you for showing those beneficial, trustworthy, edifying and even unique tips on the topic to Kate.

  17. Otto Lindblad

    June 15, 2013

    I truly wanted to construct a small message so as to appreciate you for the nice suggestions you are showing here. My extended internet research has at the end been compensated with professional points to talk about with my friends and classmates. I ‘d claim that we visitors are truly lucky to exist in a fabulous site with so many marvellous people with great points. I feel pretty blessed to have used the webpages and look forward to really more exciting times reading here. Thank you once more for a lot of things.

  18. click to read more

    June 16, 2013

    Hi, I do believe this is a great blog. I stumbledupon it 😉 I will come back yet again since i have saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to help other people.

  19. Lashell Zarlenga

    June 16, 2013

    Love your post. Just subscribed.

  20. Cari Donigan

    June 17, 2013

    I simply wished to thank you so much once more. I’m not certain the things I could possibly have achieved in the absence of those creative ideas contributed by you about such field. It was before the troublesome crisis in my position, nevertheless discovering this specialized fashion you treated it made me to jump with gladness. Now i’m thankful for the guidance and in addition expect you recognize what a great job that you’re undertaking educating other individuals by way of your web site. I’m certain you haven’t got to know any of us.

  21. Emerson Bonenberger

    June 18, 2013

    I’ve learn a few just right stuff here. Certainly worth bookmarking for revisiting. I wonder how a lot effort you place to create any such excellent informative web site.

  22. Gale Melcher

    June 18, 2013

    I cling on to listening to the reports speak about receiving free online grant applications so I have been looking around for the best site to get one. Could you tell me please, where could i find some?

  23. Irma Beltz

    June 18, 2013

    I’d have to verify with you here. Which is not one thing I normally do! I enjoy studying a submit that can make people think. Also, thanks for permitting me to remark!

  24. Shavon Abalos

    June 18, 2013

    Another thing I’ve really noticed is that for many people, poor credit is the response to circumstances over and above their control. One example is they may are already saddled with illness so they really have excessive bills for collections. It may be due to a occupation loss or perhaps the inability to do the job. Sometimes divorce proceedings can really send the budget in a downward direction. Thank you for sharing your notions on this website.

  25. Martha Leimbach

    June 19, 2013

    Thanks for the guidelines you have contributed here. Something else I would like to say is that laptop or computer memory requirements generally go up along with other advancements in the technology. For instance, as soon as new generations of cpus are introduced to the market, there’s usually a similar increase in the scale demands of both the computer system memory in addition to hard drive room. This is because software program operated by simply these cpus will inevitably boost in power to benefit from the new technological know-how.

  26. Extra resources

    June 19, 2013

    Youre not the average web site writer, guy. You definitely have anything powerful to add on the web. Your design is so strong that you could virtually get away with being a bad writer, but youre even amazing at expressing what you have to express. Such a excellent weblog. Ill be back for a lot more.

  27. Ross Hurne

    June 20, 2013

    I am extremely inspired together with your writing abilities as smartly as with the structure in your weblog. Is this a paid subject matter or did you customize it your self? Anyway keep up the nice high quality writing, it is rare to see a great blog like this one nowadays..

  28. yahoo search

    June 22, 2013

    Can I simply just say what a comfort to uncover somebody that really knows what they’re talking about online. You certainly know how to bring a problem to light and make it important. More and more people should check this out and understand this side of the story. I was surprised you aren’t more popular since you definitely possess the gift.

  29. Isaac Bolles

    June 23, 2013

    My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the costs. But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about a year and am worried about switching to another platform. I have heard good things about blogengine.net. Is there a way I can import all my wordpress content into it? Any kind of help would be greatly appreciated!

  30. Miguel Anick

    June 23, 2013

    Thank you for sharing superb informations. Your site is very cool. I’m impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found just the information I already searched everywhere and just couldn’t come across. What a perfect site.

  31. Louetta Ressel

    June 25, 2013

    Hi would you mind letting me know which web host you’re working with? I’ve loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most. Can you suggest a good internet hosting provider at a fair price? Cheers, I appreciate it!|

  32. Keneth Snearly

    June 25, 2013

    Hey! This is my 1st comment here so I just wanted to give a quick shout out and tell you I really enjoy reading your articles. Can you suggest any other blogs/websites/forums that cover the same subjects? Thanks!

  33. website designers barrow

    June 25, 2013

    Hey dude, what type of wordpress theme are you currently using? i want it to use on my blog too “

  34. traktorpool

    June 25, 2013

    we would commonly buy our bedroom sets from the local retailer which also offers totally free delivery.

  35. Raisa Socia

    June 25, 2013

    I simply wished to thank you very much yet again. I’m not certain the things that I might have sorted out without the basics shown by you regarding such topic. Certainly was the frightening concern in my opinion, nevertheless understanding the expert approach you managed it forced me to weep with joy. Now i’m grateful for your guidance and thus trust you really know what a powerful job that you’re undertaking instructing many others thru your webpage. Most probably you’ve never come across any of us.

  36. Holli Koestner

    June 25, 2013

    Hi there, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam remarks? If so how do you prevent it, any plugin or anything you can advise? I get so much lately it’s driving me insane so any assistance is very much appreciated.

  37. palkkapalvelu

    June 28, 2013

    Wonderful idea. Thx for sharing!

  38. Lyda Standish

    June 28, 2013

    Today, taking into consideration the fast chosen lifestyle that everyone leads, credit cards have a huge demand throughout the market. Persons coming from every discipline are using the credit card and people who aren’t using the credit card have prepared to apply for even one. Thanks for revealing your ideas in credit cards.

  39. dianabol

    July 3, 2013

    Perfect info, 2 thumbs up to the educated author. This page goes into some details, but really what is missed is the quality factor. To be honest, it is not really a must, are we going to take this path in every article/s? we must be a lot more positive in regards to this. This isn’t a joke but in a sense it comes out to be. Let us keep this a lot more serious and to the point in the future.

  40. Shanti Scarpitta

    July 4, 2013

    Subsequently, following spending several hours on the internet at last We’ve uncovered an individual that undoubtedly does know what they are discussing several thanks a great deal great post

  41. Click HERE For INFO

    July 5, 2013

    Helpful information. Fortunate me I discovered your web site accidentally, and I am stunned why this accident did not took place in advance! I bookmarked it.

  42. Otis Chainey

    July 6, 2013

    One thing I would really like to say is that car insurance cancellation is a hated experience and if you are doing the appropriate things as being a driver you won’t get one. Many people do receive the notice that they are officially dropped by their own insurance company they then have to struggle to get supplemental insurance following a cancellation. Cheap auto insurance rates are often hard to get after having a cancellation. Understanding the main reasons for auto insurance cancellations can help car owners prevent losing one of the most significant privileges out there. Thanks for the thoughts shared by means of your blog.

  43. Gustavo Feisthamel

    July 6, 2013

    Great post. I used to be checking constantly this blog and I’m impressed! Very helpful information specially the ultimate part 🙂 I care for such info a lot. I used to be looking for this certain information for a long time. Thanks and best of luck.

  44. Freida Toler

    July 7, 2013

    magnificent points altogether, you simply received a new reader. What would you recommend in regards to your publish that you just made a few days ago? Any sure?

  45. dianabol

    July 12, 2013

    Good information, two thumbs up for the educated author. This one article goes into some details, however really what is not said is the quality factor. To be fair, it is not a must, are we going to go with this path in all article/s? we must be a lot more positive in regards to this. This is not a joke but in a sense it comes out to be. Let us keep this a lot more serious and to the point in the future time.

  46. led lights

    July 22, 2013

    Effective writing! A good deal additional webmasters had the key perusing. I hope to share a terrific deal much more of the stuff. In my opinion , you may superb awareness collectively with thought. My business enterprise is seriously galvanized this unique sources.

  47. her latest blog

    July 26, 2013

    Aw, this was a really good post. Finding the time and actual effort to create a really good article… but what can I say… I hesitate a whole lot and don’t seem to get anything done.

  48. Kiana Scerra

    July 28, 2013

    i enjoy everything you write about trend issue. I’m going to comeback for the up-dates.. Regards

  49. make your own wedding stationery

    July 31, 2013

    When I originally commented I clicked the -Notify me when new surveys are added- checkbox and currently whenever a comment is added I am four emails with similar comment. Could there be however you possibly can eliminate me from that service? Thanks!

  50. Queens Acupuncturist

    August 4, 2013

    some jewelry stores offer you a good deal of bargain for their new jewelry styles-

  51. presentation folders

    August 7, 2013

    leather jackets can seriously make you appear great, additionally they make you feel warm and comfy,,

  52. puppy training videos

    August 12, 2013

    I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an edginess over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

  53. Rufus Cloutman

    August 23, 2013

    Thanks for giving your ideas on this blog. Likewise, a myth regarding the lenders intentions any time talking about foreclosures is that the financial institution will not have my payments. There is a specific amount of time that the bank requires payments from time to time. If you are very deep within the hole, they should commonly desire that you pay that payment in whole. However, that doesn’t mean that they will have any sort of payments at all. In case you and the lender can be capable to work some thing out, the actual foreclosure practice may end. However, in the event you continue to pass up payments beneath new strategy, the foreclosures process can pick up exactly where it left off.

  54. Jessie Clos

    August 31, 2013

    Thanks for your write-up. I also believe laptop computers have grown to be more and more popular today, and now are usually the only type of computer found in a household. This is due to the fact that at the same time that they are becoming more and more economical, their processing power keeps growing to the point where they’re as effective as desktop coming from just a few in years past.

  55. Lyndon Viramontes

    August 31, 2013

    Another thing I’ve really noticed is that often for many people, poor credit is the reaction to circumstances past their control. Such as they may have been saddled through an illness so they really have high bills going to collections. It can be due to a job loss or perhaps the inability to work. Sometimes divorce or separation can send the financial circumstances in an opposite direction. Thank you for sharing your thinking on this blog site.

  56. Yuri Johnikins

    September 3, 2013

    I believe that avoiding highly processed foods will be the first step for you to lose weight. They could taste excellent, but processed foods have very little nutritional value, making you feed on more in order to have enough vigor to get with the day. For anyone who is constantly eating these foods, changing to cereals and other complex carbohydrates will help you have more vigor while feeding on less. Interesting blog post.

  57. Miss Herridge

    September 7, 2013

    I love what you guys tend to be up too. This type of clever work and reporting! Keep up the awesome works guys I’ve you guys to my personal blogroll.

  58. Almeda Languirand

    September 9, 2013

    I have to voice my affection for your generosity supporting those individuals that absolutely need guidance on this concern. Your special commitment to passing the message throughout appeared to be extraordinarily advantageous and have in most cases permitted guys just like me to reach their endeavors. Your personal interesting useful information denotes a whole lot a person like me and further more to my colleagues. Regards; from each one of us.

  59. Antony Ausman

    September 10, 2013

    One more thing I would like to convey is that instead of trying to suit all your online degree training on days and nights that you conclude work (as most people are tired when they return), try to have most of your sessions on the weekends and only 1 or 2 courses for weekdays, even if it means taking some time off your saturday and sunday. This pays off because on the saturdays and sundays, you will be more rested in addition to concentrated for school work. Thanks a bunch for the different guidelines I have discovered from your weblog.

  60. Mariano Furstenberg

    September 28, 2013

    I appreciate, cause I discovered just what I used to be looking for. You’ve ended my four day lengthy hunt! God Bless you man. Have a nice day. Bye

  61. Wade Sciuto

    September 29, 2013

    Thanks for the strategies presented. One thing I also believe is credit cards providing a 0% rate of interest often appeal to consumers with zero interest, instant authorization and easy on the net balance transfers, however beware of the real factor that is going to void your 0% easy street annual percentage rate and also throw one out into the bad house quickly.

  62. Merlene Rothmann

    September 30, 2013

    I have realized that over the course of building a relationship with real estate homeowners, you’ll be able to come to understand that, in most real estate contract, a fee is paid. All things considered, FSBO sellers never “save” the commission rate. Rather, they try to win the commission by simply doing a agent’s task. In the process, they devote their money and time to perform, as best they will, the obligations of an realtor. Those duties include displaying the home by way of marketing, presenting the home to buyers, creating a sense of buyer emergency in order to prompt an offer, organizing home inspections, handling qualification checks with the financial institution, supervising repairs, and assisting the closing.

  63. Raleigh Vanderweerd

    October 3, 2013

    Thanks for the tips you have provided here. Moreover, I believe there are many factors which keep your motor insurance premium all the way down. One is, to contemplate buying cars that are inside the good directory of car insurance corporations. Cars that are expensive tend to be at risk of being lost. Aside from that insurance coverage is also based on the value of your truck, so the more costly it is, then higher the premium you spend.

  64. premium themes

    October 25, 2013

    I could not vanish entirely your internet site previous to suggesting i actually relished the usual info somebody present for your attendees? Will be backside nonstop to look into cross-check new blogposts

  65. Miguel Preisser

    November 8, 2013

    My dream retirement would be living in Udaipur, India! I have been towards the city and like the men and women and Indian culture. I’d be thrilled to be able to see this film which takes place in the best place in the world! 🙂