fixes to support composer / packagist
This commit is contained in:
@ -9,20 +9,28 @@ server {
|
||||
sendfile off;
|
||||
client_max_body_size 100m;
|
||||
|
||||
location /images/ {
|
||||
if (!-e $request_filename){
|
||||
rewrite ^/images/(.*)$ /index.php?error=image404&url=$1 last;
|
||||
}
|
||||
location /js/ {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
try_files $uri /index.php?error=js404&file=$uri;
|
||||
}
|
||||
|
||||
location /css/ {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
try_files $uri /index.php?error=css404&file=$uri;
|
||||
}
|
||||
|
||||
location /images/ {
|
||||
try_files $uri /index.php?error=image404&url=$uri;
|
||||
}
|
||||
|
||||
location /uploads/ {
|
||||
if (!-e $request_filename){
|
||||
rewrite ^/uploads/(.*)$ /index.php?error=upload404&url=$1 last;
|
||||
}
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
try_files $uri /index.php?error=upload404&url=$uri;
|
||||
}
|
||||
|
||||
location /errors/ {
|
||||
try_files $uri /index.php?error=$uri;
|
||||
}
|
||||
|
||||
location ~* \.(?:js|css|png|jpg|gif|ico)$ {
|
||||
@ -60,7 +68,6 @@ server {
|
||||
}
|
||||
|
||||
location / {
|
||||
rewrite ^/errors/(.*)$ /index.php?error=$1 last;
|
||||
rewrite ^(.+)$ /index.php?url=$1 last;
|
||||
rewrite ^/(.+)$ /index.php?url=$1&$args last;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user