Support the ongoing development of Laravel.io →
Installation Configuration Security

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.

Lakmal

Last updated 3 years ago.
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

lakmalp lakmalp Joined 14 Feb 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.