Four Js Development Tools Forum

Discussions by product => GAS and GBC => Topic started by: Anderson P. on October 26, 2015, 02:35:10 pm



Title: Allow only HTTPS access
Post by: Anderson P. on October 26, 2015, 02:35:10 pm
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




Title: Re: Allow only HTTPS access
Post by: Anderson P. on October 26, 2015, 07:24:55 pm
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
  1. <VirtualHost [SERVER IP]:80>
  2.        RewriteEngine On
  3.        # Rewrite all GAS applications to SSL
  4.        RewriteCond %{REQUEST_URI} ^/gas
  5.        RewriteRule (.*) https://[YOUR DOMAIN]/$1 [L,R,QSA]
  6. </VirtualHost>
  7.