Pretty URLs
Make development easier with clean, memorable URLs
Auto Virtual Hosts
One of the useful features of Laragon is Auto Virtual Hosts.
Just put your project (e.g., myapp) in the Document Root (C:\laragon\www) and click the “Reload“ button. You’ll then have this pretty URL:
The {name}.test pattern is configurable
You can change the URL format to your preference in Menu > Preferences by updating the {name}.test pattern.
For example, with the myapp project:
{name}.local -> myapp.local
{name}.dev.com -> myapp.dev.com
Notes
Each project has its own generated Virtual Host file located in:
- For Apache:
{LARAGON_ROOT}\etc\apache2\sites-enabled\auto.{project}.test.conf - For Nginx:
{LARAGON_ROOT}\etc\nginx\sites-enabled\auto.{project}.test.conf
The content of a
.conffile is auto-generated. If you have a specific project with your own modified content, just remove theauto.prefix; Laragon will keep the content of the.conffile intact.
Virtual Host content is configurable. You can change it by modifying the template in:
{LARAGON_ROOT}\usr\tpl\VirtualHost.tpl
The usr folder is where you keep your own configurations. Laragon respects your changes to any files in this folder.