Allow only HTTPS access

Started by Anderson P., October 26, 2015, 02:35:10 PM

Previous topic - Next topic

Anderson P.

Hello

I would like to configure GAS to only allow HTTPS access in our Genero websites.

For example, if the user type the address https://www.tramontina.net/gas/wa/r/comex he will enter the secure site, but if the user type only www.tramontina.net/gas/wa/r/comex he will enter the unsecured site.

I make some tests with Apache redirect, but the redirect command overwrite our alias and the URL stops working.

Alias /gas /opt/genero/gas_2.50.33/bin/wrapper.fcgi



Anderson P.

Our consultant Florencia Vitale solved the question!

GAS doesn't has an specific configuration to force HTTPS, and the RewriteRule on the .htaccess file has no effect on Genero sites.

So you have to place the RewriteRule bellow at the Apache's httpd.conf file:

Code (#) Select

<VirtualHost [SERVER IP]:80>
        RewriteEngine On
        # Rewrite all GAS applications to SSL
        RewriteCond %{REQUEST_URI} ^/gas
        RewriteRule (.*) https://[YOUR DOMAIN]/$1 [L,R,QSA]
</VirtualHost>