mastus: website: fix 404 cgi
This commit is contained in:
		
							parent
							
								
									71a3e19c65
								
							
						
					
					
						commit
						925e4e0b50
					
				@ -40,15 +40,17 @@
 | 
				
			|||||||
      ssl_stapling_verify on;
 | 
					      ssl_stapling_verify on;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      root /srv/www.gebner.org;
 | 
					      root /srv/www.gebner.org;
 | 
				
			||||||
      error_page 404 403 /404.cgi;
 | 
					      error_page 404 403 /404.html;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      access_log logs/website_access.log;
 | 
					      access_log logs/website_access.log;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      location ~ [^/]\.cgi(/|$) {
 | 
					      location / {
 | 
				
			||||||
        fastcgi_split_path_info ^(.+?\.cgi)(/.*)$;
 | 
					        try_files $uri $uri/ @not_found;
 | 
				
			||||||
        if (!-f $document_root$fastcgi_script_name) {
 | 
					      }
 | 
				
			||||||
          return 404;
 | 
					
 | 
				
			||||||
        }
 | 
					      location @not_found {
 | 
				
			||||||
 | 
					        try_files /404.cgi =404;
 | 
				
			||||||
 | 
					        fastcgi_intercept_errors on;
 | 
				
			||||||
        fastcgi_pass unix:${config.services.fcgiwrap.socketAddress};
 | 
					        fastcgi_pass unix:${config.services.fcgiwrap.socketAddress};
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user