I'm working on ubuntu with apache2.
- The root directory should be served from a specific folder. When someone accesses http://mysite.com/foo1 he should reach
- Other directories as sub-sites: When someone accesses http://mysite.com/subsite/foo2 he should reach
- I would like to be able to configure specific shortcuts for some actions. E.g. by adding a custom rule, I would like http://mysite.com/foo3 to reach http://mysite.com/subsite/foo3 (unlike #1, this is not global, but just by adding specific routes).
What's the best way to achieve this? Should I have a different file under
apache/site-enabled per "subsite"? Or should I use
<Directory>? How do I configure
mod_rewrite to achieve this?