[nginx] Readd option to statically server pictures.
This commit is contained in:
		
					parent
					
						
							
								92f47f8eca
							
						
					
				
			
			
				commit
				
					
						cb600b5a5f
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -105,6 +105,14 @@ server { | |||
|     deny all; | ||||
|   } | ||||
| 
 | ||||
|   # statically serve these file types when possible otherwise fall back to | ||||
|   # front controller allow browser to cache them added .htm for advanced source | ||||
|   # code editor library | ||||
|   #location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ { | ||||
|   #  expires 30d; | ||||
|   #  try_files $uri /index.php?pagename=$uri&$args; | ||||
|   #} | ||||
| 
 | ||||
|   # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | ||||
|   # or a unix socket | ||||
|   location ~* \.php$ { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue