Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/trac/templates/fcgi.conf.erb

Issue 29726560: #9223 - Deny access to Trac /subjects witohut parameters (Closed)
Patch Set: Created March 18, 2018, 4:31 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 location <%= @location_base %>/ 1 location <%= @location_base %>/
2 { 2 {
3
4 location <%= @location_base %>/subjects
5 {
6 if ($arg_q = "")
7 {
8 return 403;
9 }
10
11 if ($arg_limit = "")
12 {
13 return 403;
14 }
15 }
16
3 fastcgi_pass unix:/tmp/<%= @name %>-fastcgi.sock; 17 fastcgi_pass unix:/tmp/<%= @name %>-fastcgi.sock;
4 fastcgi_split_path_info ^(<%= @location_base %>)(.*)$; 18 fastcgi_split_path_info ^(<%= @location_base %>)(.*)$;
5 include /etc/nginx/fastcgi_params; 19 include /etc/nginx/fastcgi_params;
6 fastcgi_param SCRIPT_NAME $fastcgi_script_name; 20 fastcgi_param SCRIPT_NAME $fastcgi_script_name;
7 fastcgi_param PATH_INFO $fastcgi_path_info; 21 fastcgi_param PATH_INFO $fastcgi_path_info;
8 client_max_body_size 20m; 22 client_max_body_size 20m;
9 } 23 }
10 24
11 location <%= @location_base %>/chrome/ 25 location <%= @location_base %>/chrome/
12 { 26 {
13 alias /home/trac/htdocs-<%= @name %>/htdocs/; 27 alias /home/trac/htdocs-<%= @name %>/htdocs/;
14 } 28 }
15 29
16 location <%= @location_base %>/robots.txt 30 location <%= @location_base %>/robots.txt
17 { 31 {
18 alias /home/trac/robots.txt; 32 alias /home/trac/robots.txt;
19 } 33 }
20 34
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld