mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #3074 from holta/kiwix-show-dotfiles
kiwix-nginx.conf.j2: Avoid "403 Forbidden" for articles that begin with a dot
This commit is contained in:
		
						commit
						7a7d4c832f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
location {{ kiwix_url }} {
 | 
			
		||||
location ^~ {{ kiwix_url }} {    # ^~ allows articles like ".apple" to be shown: https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms#how-nginx-chooses-which-location-to-use-to-handle-requests
 | 
			
		||||
    proxy_set_header X-Real-IP $remote_addr;
 | 
			
		||||
    proxy_set_header Host      $http_host;
 | 
			
		||||
    proxy_http_version 1.1;
 | 
			
		||||
| 
						 | 
				
			
			@ -8,5 +8,4 @@ location {{ kiwix_url }} {
 | 
			
		|||
    proxy_read_timeout {{ kiwix_nginx_timeout }};
 | 
			
		||||
    send_timeout {{ kiwix_nginx_timeout }};
 | 
			
		||||
    proxy_pass http://127.0.0.1:3000;
 | 
			
		||||
    allow all;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue