-
-
Save 4nh51rk/46174e6e66491d609145c18de0929f83 to your computer and use it in GitHub Desktop.
Revisions
-
vbalexr revised this gist
Nov 6, 2019 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,8 +6,10 @@ ProxyPreserveHost On #Redireccion de wss a ws RewriteEngine on RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule .* "ws://localhost:9201%{REQUEST_URI}" [P] #Redireccion de https(443) a 8080 mostrar maintenace.html en caso de error ProxyPass /maintenance.html ! -
vbalexr created this gist
Jan 22, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ <VirtualHost *:443> ServerAdmin "EMAIL ADMIN" DocumentRoot /var/www/html ServerName "SERVERNAME" ProxyRequests off ProxyPreserveHost On #Redireccion de wss a ws ProxyPass /api/ws ws://localhost:8080/api/ws ProxyPassReverse /api/ws ws://localhost:8080/api/ws/ #Redireccion de https(443) a 8080 mostrar maintenace.html en caso de error ProxyPass /maintenance.html ! ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ #Archivos de bitacora ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined #Configuracion de SSL SSLEngine on SSLCertificateFile "CERTFILE" SSLCertificateKeyFile "KEYFILE" </VirtualHost>