initial import of changes from 9front bikeshedding; bundle rc-httpd
This commit is contained in:
		
							parent
							
								
									6d3bcc867c
								
							
						
					
					
						commit
						a99fa8b44f
					
				
					 46 changed files with 1061 additions and 572 deletions
				
			
		
							
								
								
									
										14
									
								
								bin/contrib/rc-httpd/handlers/static-or-cgi
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								bin/contrib/rc-httpd/handlers/static-or-cgi
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| #!/bin/rc | ||||
| cgiargs=$* | ||||
| 
 | ||||
| fn error{ | ||||
| 	if(~ $1 404) | ||||
| 		exec cgi $cgiargs | ||||
| 	if not | ||||
| 		$rc_httpd_dir/handlers/error $1 | ||||
| } | ||||
| 
 | ||||
| if(~ $location */) | ||||
| 	exec cgi $cgiargs | ||||
| if not | ||||
| 	exec serve-static | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stanley Lieber
						Stanley Lieber