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 +0,0 @@
|
||||
server {
|
||||
listen 6971;
|
||||
server_name tftp.servername.org;
|
||||
root /data/development/sccp/sources/tftp/tftpboot;
|
||||
|
||||
# Normal Logging
|
||||
access_log /var/log/nginx/tftp1.access.log;
|
||||
error_log /var/log/nginx/tftp1.error.log;
|
||||
|
||||
index index.php;
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
rewrite ^/(.*)$ /index.php?filename=$1 last;
|
||||
}
|
||||
|
||||
error_page 404 /;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
@@ -1,51 +0,0 @@
|
||||
#
|
||||
# Nginx Configuration to support the starting load of the Cisco phones via HTTP
|
||||
#
|
||||
# "Php-fpm" installation and configuration is required.
|
||||
#
|
||||
#
|
||||
#
|
||||
server {
|
||||
listen 6970;
|
||||
server_name tftp.servername.org;
|
||||
#root /tftpboot;
|
||||
root /tftpboot;
|
||||
|
||||
# Normal Logging
|
||||
#access_log /var/log/nginx/tftp.access.log;
|
||||
#error_log /var/log/nginx/tftp.error.log;
|
||||
|
||||
# Debug Rewrite Rules
|
||||
rewrite_log on;
|
||||
access_log /var/log/nginx/tftp.access.log;
|
||||
error_log /var/log/nginx/tftp.error.log notice;
|
||||
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
#rewrite ^([^.]*[^/])$ $1/ permanent;
|
||||
#try_files $uri $uri/ /index.php?id=$query_string;
|
||||
rewrite ^/(.*)$ /index.php?id=$1 last;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
proxy_read_timeout 61;
|
||||
fastcgi_read_timeout 61;
|
||||
try_files $uri $uri/ =404;
|
||||
fastcgi_pass unix:/var/run/php-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
# Deny access to .htaccess
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
error_page 404 /;
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
@@ -1,7 +1,7 @@
|
||||
server {
|
||||
listen 6970;
|
||||
server_name tftp.servername.org;
|
||||
root /data/development/sccp/sources/tftp/tftpboot;
|
||||
root /data/development/sccp/sources/tftp/srv/web;
|
||||
|
||||
# Normal Logging
|
||||
access_log /var/log/nginx/tftp1.access.log;
|
||||
|
Reference in New Issue
Block a user