Skip to content

Instantly share code, notes, and snippets.

@joehoyle
Created May 20, 2013 20:37
Show Gist options
  • Save joehoyle/5615320 to your computer and use it in GitHub Desktop.
Save joehoyle/5615320 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name clickbankpowered.dev *.clickbankpowered.dev;
root /Users/joe/Sites/bailey-bridge;
index index.php;
rewrite ^(/wp-(admin|includes)/(.*))$ /wordpress$1 last;
rewrite ^(/wp-[^/]*\.php)$ /wordpress$1 last;
location /dashboard/api/upload-video {
client_max_body_size 800M;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location / {
client_max_body_size 40M;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ~ \.php$ {
include conf/php-2.conf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment