Myvideo

Guest

Login

Run Laravel in a subdirectory with Nginx (full, working config)

Uploaded By: Myvideo
2 views
0
0 votes
0

We get Laravel working in a subdirectory, using Nginx configuration. This is great for multiple Laravel installations, or when you just have a second Laravel running inside of any subdirectory. The Laravel code base is not literally in a subdirectory of a parent code base, instead we just use Nginx routing to make the URL routes behave as if it is. ▶ The original content for this article is here: ▶ The docs for Nginx’s use of alias is here: #alias ▶ Info on using $request_filename with alias here: #use-request-filename-for-script-filename ⚠️ Don’t forget that if you have 2 Laravel apps under the same domain, you’ll need to give each their own unique session name (usually by editing the APP_NAME env var, but you can check your config/ file to see your options). ⌚️ Timestamps 00:00 Intro 00:12 What we’ll build up to 01:00 Nginx Configuration 03:53 Fixing SCRIPT_FILENAME 06:37 Using rewrites 08:21 Two notes

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later