Skip to content

Commit

Permalink
clean configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugothms committed Jan 28, 2022
1 parent 17b08cc commit 8fb9977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config/cgis.conf
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down
3 changes: 0 additions & 3 deletions config/servers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ server {
server_name foo;
root www/first;
index page.html;
cgi .php ./cgis/php-cgi;
location / {
allow GET;
}
Expand All @@ -14,7 +13,6 @@ server {
server_name foo;
root www/site1;
index index.html;
cgi .php ./cgis/php-cgi;
location / {
allow GET;
}
Expand All @@ -25,7 +23,6 @@ server {
server_name bar;
root www/site2;
index hello.html;
cgi .php ./cgis/php-cgi;
location / {
allow GET;
}
Expand Down

0 comments on commit 8fb9977

Please sign in to comment.