How to make a subdomain with laragon


  • | 51 points

    hello, i was wondering if you could teach me on how to create a subdomain on laragon. because on my main root folder, i install a cms, and on my subdomain, i want to install another cms, such as a forum cms


  • | 1967 points

    It's been 3 days since I started with Laragon, but with what experience I got with it I can say that:

    1. Ensure that Auto virtual hosts is on.

    2. Say you have your main domain as domain.dev, then you should create a folder named domain in the root {LaragonRoot}/www directory.

    3. Let's say that you want your subdomain as sub.domain.dev, you should create a folder named sub.domain in the root {LaragonRoot}/www directory.

    4. Now, reload Apache/Nginx or stop & restart the Laragon services.

    I have not tested this but it may work for you.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.