How to run site with "http://localhost/example' instead of "http://example.test" while using Laravel Herd #438
-
I have a project that needs to be run as "http://localhost/example" and not "http://example.test" in my local, am using Herd and I like it, is there any way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
The easiest way to achieve this is by isolating the site - you can do this by running "herd isolate 8.3" (or whatever version you need) in your terminal in the project root. This gives you a custom nginx config file, which you can adjust to your specific needs. The config file can be found in ~/Library/Application Support/Herd/config/valet/Nginx |
Beta Was this translation helpful? Give feedback.
-
<title>Check-in/Check-out</title>
Check-in/Check-outName:
|
Beta Was this translation helpful? Give feedback.
-
<title>Check-in/Check-out</title>
Check-in/Check-outName:
|
Beta Was this translation helpful? Give feedback.
The easiest way to achieve this is by isolating the site - you can do this by running "herd isolate 8.3" (or whatever version you need) in your terminal in the project root.
This gives you a custom nginx config file, which you can adjust to your specific needs. The config file can be found in ~/Library/Application Support/Herd/config/valet/Nginx