Skip to content
Snippets Groups Projects
Commit 192f21f7 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixes in the proxy default behaviour for both standard and SSL connections.

parent 9bdc1ffb
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#ServerName www.example.com #ServerName www.example.com
ServerAdmin webmaster@backfrontend ServerAdmin webmaster@backfrontend
ProxyPass / http://cloud:8080/ ProxyPass / http://webapp:8080/
ProxyPassReverse / http://cloud:8080/ ProxyPassReverse / http://webapp:8080/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg. # error, crit, alert, emerg.
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
# modules, e.g. # modules, e.g.
#LogLevel info ssl:warn #LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log #ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined #CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are # For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to # enabled or disabled at a global level, it is possible to
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
#RewriteCond %{HTTP_HOST} !=localhost #RewriteCond %{HTTP_HOST} !=localhost
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
ProxyPass / http://cloud:8080/ ProxyPass / http://webapp:8080/
ProxyPassReverse / http://cloud:8080/ ProxyPassReverse / http://webapp:8080/
</VirtualHost> </VirtualHost>
......
...@@ -24,71 +24,5 @@ ...@@ -24,71 +24,5 @@
</VirtualHost> </VirtualHost>
#---------------------------
# Localhost
#---------------------------
# Non-SSL
<VirtualHost *:80>
ServerName localhost
ProxyPass / http://webapp:8080/
ProxyPassReverse / http://webapp:8080/
</VirtualHost>
# SSL
<VirtualHost *:443>
ServerName localhost
SSLEngine on
SSLCertificateFile /root/certificates/rosetta_platform/rosetta_platform.crt
SSLCertificateKeyFile /root/certificates/rosetta_platform/rosetta_platform.key
SSLCACertificateFile /root/certificates/rosetta_platform/rosetta_platform.ca-bundle
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
#SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt
ProxyPass / http://webapp:8080/
ProxyPassReverse / http://webapp:8080/
</VirtualHost>
#---------------------------
# Anything
#---------------------------
# Non-SSL
<VirtualHost *:80>
ProxyPass / http://webapp:8080/
ProxyPassReverse / http://webapp:8080/
</VirtualHost>
# SSL
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /root/certificates/rosetta_platform/rosetta_platform.crt
SSLCertificateKeyFile /root/certificates/rosetta_platform/rosetta_platform.key
SSLCACertificateFile /root/certificates/rosetta_platform/rosetta_platform.ca-bundle
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
#SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt
ProxyPass / http://webapp:8080/
ProxyPassReverse / http://webapp:8080/
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<VirtualHost _default_:443> <VirtualHost _default_:443>
ServerAdmin webmaster@localhost ServerAdmin webmaster@localhost
ProxyPass / http://cloud:8080/ ProxyPass / http://webapp:8080/
ProxyPassReverse / http://cloud:8080/ ProxyPassReverse / http://webapp:8080/
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg. # error, crit, alert, emerg.
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
# modules, e.g. # modules, e.g.
#LogLevel info ssl:warn #LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log #ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined #CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are # For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to # enabled or disabled at a global level, it is possible to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment