Files
provision_sccp/etc/apache2/conf.d/tftpboot.conf
Diederik de Groot ad70913459 Reorder directory structure
/tftpboot -> /data
/tftpboot/index.php -> /srv/web/index.php
/tftp_provisioner.php -> /srv/tftp/tftp_provisioner.php

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
2020-03-16 08:06:10 +01:00

22 lines
542 B
Plaintext

Listen 6970
<VirtualHost *:6970>
DocumentRoot "/srv/web"
ErrorLog /var/log/httpd/tftp.error.log
CustomLog /var/log/httpd/tftp.access.log combined
<Directory />
Options FollowSymlinks
AllowOverride none
Require all granted
RewriteEngine on
RewriteBase "/"
RewriteCond "/%{REQUEST_FILENAME}" !-f
RewriteCond "/%{REQUEST_FILENAME}" !-d
RewriteRule "(.*)" "index.php?filename=$1" [PT,QSA]
</Directory>
<Location />
Require all granted
</Location>
</VirtualHost>