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 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 Order Allow,Deny # Insert your public IPs here {% for ip_address in allowed_ips %} Allow from {{ ip_address }} {% endfor %} Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/" AllowOverride None Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS #RewriteEngine on #RewriteCond %{SERVER_NAME} =auth.{{ domain }} #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]