From 8fb9977cdc692f37961b3351f920197dcda3ece1 Mon Sep 17 00:00:00 2001 From: Hugothms Date: Fri, 28 Jan 2022 10:10:46 +0100 Subject: [PATCH] clean configs --- config/cgis.conf | 8 ++++---- config/servers.conf | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/config/cgis.conf b/config/cgis.conf index 5363852..89d7671 100644 --- a/config/cgis.conf +++ b/config/cgis.conf @@ -1,22 +1,22 @@ server { listen 6969; - cgi .php /usr/bin/php-cgi; + cgi .php ./www/cgi-bin/php-cgi; cgi .py /usr/bin/python; root www; index index.html; max_client_body_size -1; location / { - allow GET; + allow GET; autoindex 0; index trick.html; } location /php { - allow GET POST; + allow GET POST; autoindex 1; root /site1; } location /py { - allow GET POST; + allow GET POST; autoindex 1; root /site2; } diff --git a/config/servers.conf b/config/servers.conf index 7be05ed..96dfeee 100755 --- a/config/servers.conf +++ b/config/servers.conf @@ -3,7 +3,6 @@ server { server_name foo; root www/first; index page.html; - cgi .php ./cgis/php-cgi; location / { allow GET; } @@ -14,7 +13,6 @@ server { server_name foo; root www/site1; index index.html; - cgi .php ./cgis/php-cgi; location / { allow GET; } @@ -25,7 +23,6 @@ server { server_name bar; root www/site2; index hello.html; - cgi .php ./cgis/php-cgi; location / { allow GET; }