Multiple symfony projects on same domain but different folders
Hi am building a several symfony pages on the same domain. Note that they must be on the same domain as different folders: www.domain.com/[project开发者_开发百科1]/ www.domain.com/[project2]/ www.domain.com/[project3]/ www.domain.com/[project4]/
i would like the same symfony installation for these sites . Is this done easily? do i need symlinks to symfony in lib/vendor or use .htacess for each project?
i see an issue with the virtual host that must show the alias and directory for each project?
Sounds like you're on the right track:
- Replace lib/vendor/symfony with symlinks, if you really want to share the library
- For each project, in httpd.conf
Alias projectN /path/to/projectN/web
And you ought to be good to go. No need for virtualhosts, since they're all running under the same domain.
精彩评论