forked from Personal/ansible-deploy-ldap-fusiondirectory
Initial Commit
This commit is contained in:
commit
d8efe45362
14 changed files with 1366 additions and 0 deletions
41
templates/fd-vhost.conf.j2
Normal file
41
templates/fd-vhost.conf.j2
Normal file
|
@ -0,0 +1,41 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName auth.{{ domain }}
|
||||
ServerAdmin webmaster@{{ domain }}
|
||||
DocumentRoot /usr/share/fusiondirectory/html
|
||||
ErrorLog ${APACHE_LOG_DIR}/fd-error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/fd-access.log combined
|
||||
|
||||
<IfModule mod_php5.c>
|
||||
<Location />
|
||||
php_admin_flag engine on
|
||||
php_admin_flag register_globals off
|
||||
php_admin_flag allow_call_time_pass_reference off
|
||||
php_admin_flag expose_php off
|
||||
php_admin_flag zend.ze1_compatibility_mode off
|
||||
php_admin_flag register_long_arrays off
|
||||
php_admin_value upload_tmp_dir /var/spool/fusiondirectory/
|
||||
php_admin_value session.cookie_lifetime 0
|
||||
#Include /etc/fusiondirectory/fusiondirectory.secrets
|
||||
</Location>
|
||||
</IfModule>
|
||||
|
||||
<Directory /usr/share/fusiondirectory/html/>
|
||||
Order Allow,Deny
|
||||
# Insert your public IPs here
|
||||
{% for ip_address in allowed_ips %}
|
||||
Allow from {{ ip_address }}
|
||||
{% endfor %}
|
||||
|
||||
</Directory>
|
||||
|
||||
Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
|
||||
<Directory "/var/www/html/">
|
||||
AllowOverride None
|
||||
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
||||
Require method GET POST OPTIONS
|
||||
</Directory>
|
||||
|
||||
#RewriteEngine on
|
||||
#RewriteCond %{SERVER_NAME} =auth.{{ domain }}
|
||||
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
|
||||
</VirtualHost>
|
Loading…
Add table
Add a link
Reference in a new issue