Created
March 24, 2022 02:17
-
-
Save Francisco-Castillo/bc865da06562e9a4ed9c06498763487a to your computer and use it in GitHub Desktop.
Archivo conf para hacer forwarding-requests entre Apache y Payara Server
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName nombre_dominio | |
ServerAlias nombre_dominio | |
DocumentRoot /var/www/nombre_dominio | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
RewriteEngine on | |
RewriteCond %{SERVER_NAME} = nombre_dominio | |
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] | |
</VirtualHost> | |
<VirtualHost nombre_dominio:443> | |
ServerName nombre_dominio | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/nombre_dominio | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
ProxyPass /extension http://0.0.0.0:8080/extension/ | |
ProxyPassReverse /extension http://0.0.0.0:8080/extension/ | |
ProxyPass / http://0.0.0.0:8080/extension/ | |
ProxyPassReverse / http://0.0.0.0:8080/extension/ | |
SSLEngine on | |
SSLProxyEngine on | |
SSLCertificateFile /etc/letsencrypt/live/nombre_dominio/cert.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/nombre_dominio/privkey.pem | |
SSLCertificateChainFile /etc/letsencrypt/live/nombre_dominio/fullchain.pem | |
<FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
<Directory /usr/lib/cgi-bin> | |
SSLOptions +StdEnvVars | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment