Skip to content

Configuring subdomain in Laragon #584

Answered by Pen-y-Fan
e-smily asked this question in Q&A
Discussion options

You must be logged in to vote

The explanation you have found is correct, I can give more information on how Laragon works and add more detail.

When a new project is created in c:\laragon\www Laragon will automatically detect the folder, it will:

  • add an entry in the host in C:\Windows\System32\drivers\etc\host
  • create an Apache conf file in C:\laragon\etc\apache2\sites-enabled

Each time a project is added to the www directory the auto file will be re-created, it is not advisable to edit them.

Example:

I assume each of the projects has its own entry point, therefore create the three projects in the www directory:

admin-project
app-project
main-project

Laragon will create three entries in the host file:

127.0.0.1      a…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by e-smily
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@RachidMA
Comment options

@gul-ahmad
Comment options

@RachidMA
Comment options

@gul-ahmad
Comment options

@RachidMA
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants