source: server/etc/apache.conf.tmpl

qndtest
Last change on this file was 37481d8, checked in by Ramón M. Gómez <ramongomez@…>, 6 years ago

#784: Apache configuration now supports connection with PHP-FPM via socket and port.

  • Property mode set to 100644
File size: 896 bytes
RevLine 
[6b22f15]1# OpenGnsys Web Admin Console template configuration for Apache.
[30837bb]2
3Alias /opengnsys CONSOLEDIR
4
[9215580]5# PHP-FPM configuration
6<IfModule proxy_fcgi_module>
7        <FilesMatch ".+\.ph(p[3457]?|t|tml)$">
[37481d8]8                SetHandler "proxy:fcgi://127.0.0.1:9000"
[9215580]9        </FilesMatch>
10</IfModule>
11
[53419be]12RewriteEngine On
13
14# Redirect HTTP to HTTPS and default configuration.
[30837bb]15<Directory CONSOLEDIR>
[53419be]16        RewriteCond %{HTTPS} !=on
17        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
[f9e3393]18        Require all granted
19        Options -Indexes +FollowSymLinks
20        DirectoryIndex index.php
[53419be]21        AddType octet/stream .pkg
[30837bb]22</Directory>
[6b22f15]23
[53419be]24# Redirect HTTP to HTTPS and RESTful configuration.
[7829e4e]25<Directory CONSOLEDIR/rest>
[6b22f15]26        RewriteBase /opengnsys/rest/
[21e2ab8]27        RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
[53419be]28        RewriteCond %{HTTPS} !=on
29        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
[6b22f15]30        RewriteCond %{REQUEST_FILENAME} !-f
31        RewriteRule ^ index.php [QSA,L]
[7829e4e]32</Directory>
Note: See TracBrowser for help on using the repository browser.