Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Allow only HTTPS access  (Read 11189 times)
Anderson P.
Posts: 82


« 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


Anderson P.
Posts: 82


« Reply #1 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.  
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines