subdomain folder structure

I am planning to install my laravel app in a subdomain.

I can create a folder (for subdomain) outside public_html and install the app there. I just installed like this and it works. But my question is how it would be in terms of security.

If anyone can suggest a better way to install laravel app on a subdomain, I would be much thankful to you.


  • 3 months ago

it doesn't matter, as long as you're pointing the sub domain to a folder somewhere safe. the files in sub domains does not have to reside in the main domain's folder.