Created
February 26, 2024 08:03
-
-
Save kidino/a5f014c1cca767355bc375db3d1b8a84 to your computer and use it in GitHub Desktop.
Laragon Apache Port Forwaring ProxyPass
This file contains 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 ROOT "C:/laragon/www/barberOS" | |
define SITE "barberOS.test" | |
<VirtualHost *:80> | |
DocumentRoot "${ROOT}" | |
ServerName ${SITE} | |
ServerAlias *.${SITE} | |
<Directory "${ROOT}"> | |
AllowOverride All | |
Require all granted | |
</Directory> | |
ProxyPass / http://localhost:8090/ | |
ProxyPassReverse / http://localhost:8090/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
DocumentRoot "${ROOT}" | |
ServerName ${SITE} | |
ServerAlias *.${SITE} | |
<Directory "${ROOT}"> | |
AllowOverride All | |
Require all granted | |
</Directory> | |
SSLEngine on | |
SSLCertificateFile C:/laragon/etc/ssl/laragon.crt | |
SSLCertificateKeyFile C:/laragon/etc/ssl/laragon.key | |
ProxyPass / http://localhost:8090/ | |
ProxyPassReverse / http://localhost:8090/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment