From 0d7e5c4dd8bbe4c30947bd67b5176013d94b0808 Mon Sep 17 00:00:00 2001 From: Phantom Date: Thu, 15 Mar 2018 15:34:26 +0300 Subject: [PATCH] Add apache 2 Configuration --- .../sites-available/http-tftpboot.conf | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 etc/apache2/sites-available/http-tftpboot.conf diff --git a/etc/apache2/sites-available/http-tftpboot.conf b/etc/apache2/sites-available/http-tftpboot.conf new file mode 100644 index 0000000..1eb9d32 --- /dev/null +++ b/etc/apache2/sites-available/http-tftpboot.conf @@ -0,0 +1,27 @@ +# +# ---------------- Apache 2 ( httpd ) Configuration to support the starting load of the cisco phones via HTTP. +Listen 6970 +NameVirtualHost *: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 + + RewriteEngine on + RewriteBase "/" + RewriteCond "/tftpboot/%{REQUEST_FILENAME}" !-f + RewriteCond "/tftpboot/%{REQUEST_FILENAME}" !-d + RewriteRule "(.*)" "index.php?id=$1" [PT,QSA] + +# +# 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] +# + +