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>
This commit is contained in:
@@ -1,29 +1,21 @@
|
||||
Listen 6970
|
||||
<VirtualHost *:6970>
|
||||
DocumentRoot "/tftpboot"
|
||||
DocumentRoot "/srv/web"
|
||||
ErrorLog /var/log/httpd/tftp.error.log
|
||||
CustomLog /var/log/httpd/tftp.access.log combined
|
||||
|
||||
<Directory /tftpboot>
|
||||
<Directory />
|
||||
Options FollowSymlinks
|
||||
AllowOverride none
|
||||
Require all granted
|
||||
RewriteEngine on
|
||||
RewriteBase "/"
|
||||
RewriteCond "/tftpboot/%{REQUEST_FILENAME}" !-f
|
||||
RewriteCond "/tftpboot/%{REQUEST_FILENAME}" !-d
|
||||
RewriteRule "(.*)" "index.php?id=$1" [PT,QSA]
|
||||
</Directory>
|
||||
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
RewriteCond "/%{REQUEST_FILENAME}" !-f
|
||||
RewriteCond "/%{REQUEST_FILENAME}" !-d
|
||||
RewriteRule "(.*)" "index.php?filename=$1" [PT,QSA]
|
||||
</Directory>
|
||||
|
||||
<Location />
|
||||
Require all granted
|
||||
</Location>
|
||||
|
||||
Alias / "/tftpboot/"
|
||||
</VirtualHost>
|
||||
|
Reference in New Issue
Block a user