Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 1 year ago.
0

Make sure you have the domain pointing to the correct web server (or if its local, you can use the hosts file).

Then make the web server work for that domain (i.e. if you have an existing laravel install working on www.x.com and you just want to enable another domain for it, if using apache use the "ServerAlias dev.x.com" under the "ServerName" directive).

Then that's it. The site will work for that domain. Laravel doesn't require specific domain setup to actually work.

Last updated 1 year ago.
0

This is on a actual server not local, as a subdomain for example myapp.domain.com

Last updated 1 year ago.
0

You should point a registered subdomain to your server location, and then configure the virtual host for that subdomian to point to the /public/ folder in your laravel install. You shouldn't be trying to change the URL/domain with htacess files really.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

lstables lstables Joined 5 Jan 2014

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.

© 2024 Laravel.io - All rights reserved.