|
|
@ -99,3 +99,76 @@ |
|
|
|
# Uncomment this if site if you use SSL only |
|
|
|
# Uncomment this if site if you use SSL only |
|
|
|
#Header set Strict-Transport-Security "max-age=15768000" |
|
|
|
#Header set Strict-Transport-Security "max-age=15768000" |
|
|
|
</VirtualHost> |
|
|
|
</VirtualHost> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# API virtual host (manager.__DNSDOMAIN__) |
|
|
|
|
|
|
|
<VirtualHost __VHOSTLISTEN__> |
|
|
|
|
|
|
|
ServerName api.__DNSDOMAIN__ |
|
|
|
|
|
|
|
LogLevel notice |
|
|
|
|
|
|
|
# See above to set LLNG user id in Apache logs |
|
|
|
|
|
|
|
#CustomLog __APACHELOGDIR__/manager.log llng |
|
|
|
|
|
|
|
#ErrorLog __APACHELOGDIR__/lm_err.log |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Uncomment this if you are running behind a reverse proxy and want |
|
|
|
|
|
|
|
# LemonLDAP::NG to see the real IP address of the end user |
|
|
|
|
|
|
|
# Adjust the settings to match the IP address of your reverse proxy |
|
|
|
|
|
|
|
# and the header containing the original IP address |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
#RemoteIPHeader X-Forwarded-For |
|
|
|
|
|
|
|
#RemoteIPInternalProxy 127.0.0.1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# FASTCGI CONFIGURATION |
|
|
|
|
|
|
|
# --------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 1) URI management |
|
|
|
|
|
|
|
RewriteEngine on |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For performances, you can delete the previous RewriteRule line after |
|
|
|
|
|
|
|
# puttings html files: simply put the HTML results of differents modules |
|
|
|
|
|
|
|
# (configuration, sessions, notifications) as manager.html, sessions.html, |
|
|
|
|
|
|
|
# notifications.html and uncomment the 2 following lines: |
|
|
|
|
|
|
|
# DirectoryIndex manager.html |
|
|
|
|
|
|
|
# RewriteCond "%{REQUEST_URI}" "!\.html(?:/.*)?$" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# REST URLs |
|
|
|
|
|
|
|
RewriteCond "%{REQUEST_URI}" "!^/(?:static|doc|lib|javascript|favicon).*" |
|
|
|
|
|
|
|
RewriteRule "^/(.+)$" "/api.fcgi/$1" [PT] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 2) FastCGI engine |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# You can choose any FastCGI system. Here is an example using mod_fcgid |
|
|
|
|
|
|
|
# mod_fcgid configuration |
|
|
|
|
|
|
|
FcgidMaxRequestLen 2000000 |
|
|
|
|
|
|
|
<Files *.fcgi> |
|
|
|
|
|
|
|
SetHandler fcgid-script |
|
|
|
|
|
|
|
Options +ExecCGI |
|
|
|
|
|
|
|
header unset Lm-Remote-User |
|
|
|
|
|
|
|
</Files> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If you want to use mod_fastcgi, replace lines below by: |
|
|
|
|
|
|
|
#FastCgiServer __MANAGERSITEDIR__/manager.fcgi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# GLOBAL CONFIGURATION |
|
|
|
|
|
|
|
# -------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DocumentRoot __MANAGERSITEDIR__ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Location /> |
|
|
|
|
|
|
|
Require all granted |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<IfModule mod_deflate.c> |
|
|
|
|
|
|
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css |
|
|
|
|
|
|
|
SetOutputFilter DEFLATE |
|
|
|
|
|
|
|
BrowserMatch ^Mozilla/4 gzip-only-text/html |
|
|
|
|
|
|
|
BrowserMatch ^Mozilla/4\.0[678] no-gzip |
|
|
|
|
|
|
|
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html |
|
|
|
|
|
|
|
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary |
|
|
|
|
|
|
|
</IfModule> |
|
|
|
|
|
|
|
<IfModule mod_headers.c> |
|
|
|
|
|
|
|
Header append Vary User-Agent env=!dont-vary |
|
|
|
|
|
|
|
</IfModule> |
|
|
|
|
|
|
|
</Location> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Uncomment this if site if you use SSL only |
|
|
|
|
|
|
|
#Header set Strict-Transport-Security "max-age=15768000" |
|
|
|
|
|
|
|
</VirtualHost> |
|
|
|