http site redirect to https

0

I'm trying to publish a site that is on an internal network host. The goal is that when we access from the local network http: // ipinterno, the site opens normally. I also need to publish this site for external access, so that it can be accessed via https. We only have one IP Fixed. I made a NAT, for everything arriving on IPWAN on port XXXXX, redirect to port 443 of IPinterno. However, the redirect within apache is not correct. I installed and configured the ssl mod to run https.

Follow the contents of my ssl file:

/etc/httpd/conf.d/site-ssl.conf

LoadModule ssl_module modules/mod_ssl.so
Alias /owncloud "/var/www/html/owncloud/"
Listen 443
<VirtualHost *:80>
ServerName 172.16.16.6
#Redirect / https://IPWAN:60004/owncloud
</VirtualHost>
<VirtualHost *:443>
ServerName IPWAN
Redirect / https://IPWAN:60004/owncloud
SSLEngine on
SSLCertificateFile /etc/ssl/apache/owncloud.crt
SSLCertificateKeyFile /etc/ssl/apache/owncloud.key
DocumentRoot /var/www/html/owncloud
</VirtualHost>

When I try to access, I get this error in Chrome: ERR_TOO_MANY_REDIRECTS Could someone give me a tip?

    
asked by anonymous 25.12.2016 / 12:57

0 answers