[MontelLUG] Tomcat e reverse proxy

Samuele samuele.zanin a tiscali.it
Dom 20 Gen 2013 16:22:57 CET


On 20/01/2013 16:14, Luca 'remix_tj' Lorenzetto wrote:
> 2013/1/20 Samuele <samuele.zanin a tiscali.it>:
> [cut]
>> Però così mi va in cerca di un var/www che non so da dove peschi.
> 
> Facciamo un resume della conf. Puoi postarla ora come ce l'hai?

<VirtualHost *:443>
       ProxyRequests Off
       ProxyPreserveHost On
#       ProxyPass / http://192.168.0.5:8080/App/
#       ProxyPassReverse / http://192.168.0.5:8080/App/

       ServerName sarcasso.example.org
       ServerAlias sarcasso.example.org
       CustomLog /var/log/apache2/access_domain.log combined
       ErrorLog /var/log/apache2/error_domain.log

       SSLProxyEngine On
       SSLEngine on
       SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
       SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
       BrowserMatch "MSIE [2-6]" \
               nokeepalive ssl-unclean-shutdown \
               downgrade-1.0 force-response-1.0
       # MSIE 7 and newer should be able to use keepalive
       BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
#<IfModule mod_rewrite.c>
<Directory http://192.168.0.5:8080/App/>
   RewriteEngine On
   RewriteBase /
   RewriteRule sarcasso.example.org http://192.168.0.5:8080/App/App.htm [P]
   RewriteRule ^(.*) http://192.168.0.5:8080/App/$1 [P]
</Directory>
#</IfModule>

</VirtualHost>






More information about the montellug mailing list