Created
August 11, 2024 13:09
-
-
Save ardzz/d4ca6df48598ae3f00376c674a51ec14 to your computer and use it in GitHub Desktop.
Laragon custom domain (not use .test)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# save this file at C:\laragon\etc\apache2\sites-enabled\domain.tld.conf | |
# don't use prefix "auto" while you naming the config name | |
<VirtualHost *:80> | |
ServerName domain.tld # change this | |
ProxyPass / http://localhost:5765/ # change the port | |
ProxyPassReverse / http://localhost:5765/ | |
# Optionally, you can set additional proxy settings like timeouts | |
# ProxyPass / http://localhost:5765/ timeout=600 | |
# ProxyPassReverse / http://localhost:5765/ timeout=600 | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define the domain and point it to localhost | |
# file hosts is located at C:\Windows\system32\drivers\etc\hosts | |
127.0.0.1 domain.tld |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add this to C:\laragon\bin\apache\httpd-2.4.58-240131-win64-VS17\conf\httpd.conf | |
# the path is depend what apache2 that you use | |
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so | |
LoadModule proxy_connect_module modules/mod_proxy_connect.so | |
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment