An Ansible Playbook to deploy OpenLDAP and FusionDirectory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.4KB

  1. <VirtualHost *:80>
  2. ServerName auth.{{ domain }}
  3. ServerAdmin webmaster@{{ domain }}
  4. DocumentRoot /usr/share/fusiondirectory/html
  5. ErrorLog ${APACHE_LOG_DIR}/fd-error.log
  6. CustomLog ${APACHE_LOG_DIR}/fd-access.log combined
  7. <IfModule mod_php5.c>
  8. <Location />
  9. php_admin_flag engine on
  10. php_admin_flag register_globals off
  11. php_admin_flag allow_call_time_pass_reference off
  12. php_admin_flag expose_php off
  13. php_admin_flag zend.ze1_compatibility_mode off
  14. php_admin_flag register_long_arrays off
  15. php_admin_value upload_tmp_dir /var/spool/fusiondirectory/
  16. php_admin_value session.cookie_lifetime 0
  17. #Include /etc/fusiondirectory/fusiondirectory.secrets
  18. </Location>
  19. </IfModule>
  20. <Directory /usr/share/fusiondirectory/html/>
  21. Order Allow,Deny
  22. # Insert your public IPs here
  23. {% for ip_address in allowed_ips %}
  24. Allow from {{ ip_address }}
  25. {% endfor %}
  26. </Directory>
  27. Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
  28. <Directory "/var/www/html/">
  29. AllowOverride None
  30. Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  31. Require method GET POST OPTIONS
  32. </Directory>
  33. #RewriteEngine on
  34. #RewriteCond %{SERVER_NAME} =auth.{{ domain }}
  35. #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
  36. </VirtualHost>