Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed this mofo thing!

  • Loading branch information...
commit 51112befba5332af6bd4b68a105b08f36ca08edb 1 parent 75c92dd
@pgib pgib authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 virtualhosts/adam.localhost.coverallcrew.com.conf
View
15 virtualhosts/adam.localhost.coverallcrew.com.conf
@@ -5,9 +5,17 @@ server
root /usr/local/sites/ayv/adam/public;
index index.html;
+
+ log_subrequest on;
+ log_not_found on;
+ #location ^~ /upload/medias/
location ~* /medias/.*?/upload
+ #location ~ upload$
{
+ log_subrequest on;
+ log_not_found on;
+
# pass request body to here
upload_pass @fast_upload_endpoint;
@@ -22,8 +30,8 @@ server
# Set specified fields in request body
# this puts the original filename, new path+filename and content type in the requests params
upload_set_form_field upload[fast_asset][original_name] "$upload_file_name";
- upload_set_form_field upload[fast_asset][content_type] "$upload_content_type";
- upload_set_form_field upload[fast_asset][filepath] "$upload_tmp_path";
+ upload_set_form_field upload[fast_asset][content_type] "$upload_content_type";
+ upload_set_form_field upload[fast_asset][filepath] "$upload_tmp_path";
upload_pass_form_field "^theme_id$|^blog_id$|^authenticity_token$|^format$";
upload_cleanup 400 404 499 500-505;
@@ -36,7 +44,7 @@ server
proxy_pass http://adam;
}
- location ^~ /
+ location ~* /.+
{
proxy_pass_request_headers on;
proxy_ignore_headers Expires Cache-Control;
@@ -57,6 +65,7 @@ server
}
}
+
gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
Please sign in to comment.
Something went wrong with that request. Please try again.