eole-syspass/tmpl/syspass-apache.conf

9 lines
307 B
Plaintext

%set %%allowed_networks = ' '.join(['/'.join([%%str(ip), ip.syspass_allowed_netmask]) for ip in %%getVar('syspass_allowed_ip', [])])
Alias /syspass /var/www/syspass
<Directory "/var/www/syspass">
DirectoryIndex index.php
Order Deny,Allow
Deny from All
Allow from %%allowed_networks
</Directory>