Skip to content

Instantly share code, notes, and snippets.

@kidino
Created February 26, 2024 08:03
Show Gist options
  • Save kidino/a5f014c1cca767355bc375db3d1b8a84 to your computer and use it in GitHub Desktop.
Save kidino/a5f014c1cca767355bc375db3d1b8a84 to your computer and use it in GitHub Desktop.
Laragon Apache Port Forwaring ProxyPass
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