Smaller fixes

This commit is contained in:
Diederik de Groot
2019-04-15 14:59:59 +02:00
parent 1c6b4ae7eb
commit f2c3728935
5 changed files with 48 additions and 46 deletions

View File

@@ -0,0 +1,29 @@
Listen 6970
<VirtualHost *:6970>
DocumentRoot "/tftpboot"
ErrorLog /var/log/httpd/tftp.error.log
CustomLog /var/log/httpd/tftp.access.log combined
<Directory /tftpboot>
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
</Directory>
<Location />
Require all granted
</Location>
Alias / "/tftpboot/"
</VirtualHost>

View File

@@ -1,27 +0,0 @@
#
# ---------------- Apache 2 ( httpd ) Configuration to support the starting load of the cisco phones via HTTP.
Listen 6970
NameVirtualHost *:6970
<VirtualHost *:6970>
DocumentRoot "/tftpboot"
# DocumentRoot "/data/development/sccp/sources/tftp/tftpboot"
# server_name default
ErrorLog /var/log/httpd/tftp.error.log
CustomLog /var/log/httpd/tftp.access.log combined
# Other directives here
<Directory /tftpboot>
RewriteEngine on
RewriteBase "/"
RewriteCond "/tftpboot/%{REQUEST_FILENAME}" !-f
RewriteCond "/tftpboot/%{REQUEST_FILENAME}" !-d
RewriteRule "(.*)" "index.php?id=$1" [PT,QSA]
</Directory>
# <Directory /data/development/sccp/sources/tftp/tftpboot>
# RewriteEngine on
# RewriteBase "/"
# RewriteCond "/data/development/sccp/sources/tftp/tftpboot/%{REQUEST_FILENAME}" !-f
# RewriteCond "/data/development/sccp/sources/tftp/tftpboot/%{REQUEST_FILENAME}" !-d
# RewriteRule "(.*)" "index.php?id=$1" [PT,QSA]
# </Directory>
</VirtualHost>