Replies: 4 comments 3 replies
-
Laragon automatically creates a host entry for the folder name in the www directory. e.g. if you add rabit to E:\laragon\www and restart Laragon, it will detect the folder and create a host entry in C:\Windows\System32\drivers\etc\host: 127.0.0.1 rabit.test #laragon magic! It will automatically create the vhost file too in E:\laragon\etc\apache2\sites-enabled (Laragon menu > Apache > dir:conf and select sites-enabled) You may need to give elevated privileges (permission) to allow Lagaon to add the host entry. You can access your site using the pretty URL: http://rabit.test The documentation is under Pretty URLs in the Laragon docs. If you prefer to use localhost as your domain change the auto create host name to {name}.localhost in Laragon menu > Preferences Never edit an autogenerated conf file (e.g. auto.rabit.test.conf, if you want a custom conf file, copy the auto version and rename it manual.rabit.test.conf, and adjust as required, you may want to create your own site name or domain and add a host entry too. |
Beta Was this translation helpful? Give feedback.
-
@Pen-y-Fan STEP1. copy rabit floder into laragon/wwwSTEP2. laragon create a .conf (laragon\etc\apache2\sites-enabled)
STEP3. open rabut.localhost, but it go into localhost.STEP4. I speculate that Laragon ignores htaccess?
|
Beta Was this translation helpful? Give feedback.
-
@Pen-y-Fan I can't change root pw by laragon |
Beta Was this translation helpful? Give feedback.
-
@Pen-y-Fan |
Beta Was this translation helpful? Give feedback.
-
For example, I want to create a virtual host and create an httpd-vhosts.conf.
I can't find any documentation on how to set it up. Can you teach me how to set it up?
Beta Was this translation helpful? Give feedback.
All reactions