Hello,
I usually installs websites in the webroot (document root) directory public_html, most of them CMS’s like WordPress, Drupal, Spip, etc … I’m working on a new one based on Symfony which I also installed in public_html, but it is required that only the “public_html/web” subdirectory has to be reachable from the web (or accessible by Apache).
I more or less know how to achieve this when declaring a webhost “by hand” in the appropiate files, but I was wondering what was the best way to do this with Virtualmin ?
- something like creating an alias from / to /web ? (I’m afraid this will prevent Apache from writing in top level cache dir …)
- or maybe use the “Website documents sub-directory” that says “public_html” and replace it by “public_html/web” ?
It seems that the CMS still need to write into some first level directories (cache, tmp, …), so I am not so sure about what needs to be done …
Thks.
Pierre.