Nginx Configuration in Laragon to Support Subdomain

  • | 471 points


    I'm developing my Laravel in my localhost using Laragon, is there anyone who uses this one too for their localhost environment ?

    I was trying to build a subdomain in my Laravel Route, but subdomain.myapp.tld just doesn't work.

    Anyone knows how to configure it? Apache Conf or Nginx Conf is fine, I can use both Server in my Laragon.

    Thank You

  • administrators
    | 131219 points

    @pramanadiputra : Just add subdomain.myapp.tld to your hosts file and update your Virtual Host file.

  • | 471 points

    @leokhoa Hi Leokhoa thank you, can you be more spesific which one is hosts file and virtual host file?

Log in to reply

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