diff --git a/gliders.nginx.conf b/gliders.nginx.conf index 63d097ddb4e4c05322b348ea50dfdd70b038e49b..48367b8966eaf05512141ea2dc229b0e4dbc5f83 100644 --- a/gliders.nginx.conf +++ b/gliders.nginx.conf @@ -43,10 +43,20 @@ server { add_header Cache-Control "public"; } + location ~ ^/images/vehicles/(?P<vehicle_type>[a-zA-Z0-9]+)_(?P<vehicle_name>[a-zA-Z0-9]+)\.(png|jpg)$ { + access_log off; + error_log off; + try_files $uri images/vehicles/$vehicle_name.png =404; + } + location /static/logs { alias /var/gliders/logs; } + location /var/gliders/logs { + alias /var/gliders/logs; + } + location @rewriteapp { rewrite ^(.*)$ /app.php/$1 last; } @@ -91,10 +101,20 @@ server { add_header Cache-Control "public"; } + location ~ ^/images/vehicles/(?<vehicle_type>[a-zA-Z0-9]+)_(?<vehicle_name>[a-zA-Z0-9]+)\.(png|jpg)$ { + access_log off; + error_log off; + try_files $uri images/vehicles/$vehicle_type.png =404; + } + location /static/logs { alias /var/gliders/logs; } + location /var/gliders/logs { + alias /var/gliders/logs; + } + location @rewriteapp { rewrite ^(.*)$ /app_dev.php/$1 last; }