# OpenGnsys Web Admin Console template configuration for Apache. Alias /opengnsys CONSOLEDIR # PHP-FPM configuration SetHandler "proxy:fcgi://127.0.0.1:9000" RewriteEngine On # Redirect HTTP to HTTPS and default configuration. RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] Require all granted Options -Indexes +FollowSymLinks DirectoryIndex index.php AddType octet/stream .pkg # Redirect HTTP to HTTPS and RESTful configuration. RewriteBase /opengnsys/rest/ RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]