Last active
April 13, 2020 12:27
-
-
Save ryanwelcher/3b069e94e2d5bd81156b3c080973819e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen 443 ssl; | |
server_name {{DOMAINS_HERE}}; | |
root {vvv_path_to_site}/public_html; | |
error_log {vvv_path_to_site}/log/error.log; | |
access_log {vvv_path_to_site}/log/access.log; | |
set $upstream php56; | |
include /etc/nginx/nginx-wp-common.conf; | |
location ~ ^/wp-content/uploads/sites/9/(.*\.(js|css|png|jpg|jpeg|gif|ico|mp3|mov))$ { | |
expires 24h; | |
log_not_found off; | |
try_files $uri $uri/ @production_cm; | |
} | |
location ~ ^/wp-content/uploads/sites/10/(.*\.(js|css|png|jpg|jpeg|gif|ico|mp3|mov))$ { | |
expires 24h; | |
log_not_found off; | |
try_files $uri $uri/ @production_pph; | |
} | |
location @production_pph { | |
resolver 8.8.8.8; | |
proxy_pass http://files.pressherald.com/uploads/$1; | |
} | |
location @production_cm { | |
resolver 8.8.8.8; | |
proxy_pass http://files.centralmaine.com/uploads/$1; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location @production { | |
if ($host = "wmgk.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/2/(.*) http://wmgk.com/wp-content/uploads/sites/2/$1; | |
} | |
if ($host = "957benfm.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/11/(.*) http://957benfm.com/wp-content/uploads/sites/11/$1; | |
} | |
if ($host = "wmtram.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/12/(.*) http://wmtram.com/wp-content/uploads/sites/12/$1; | |
} | |
if ($host = "magic983.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/13/(.*) http://magic983.com/wp-content/uploads/sites/13/$1; | |
} | |
if ($host = "wcsx.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/14/(.*) http://wcsx.com/wp-content/uploads/sites/14/$1; | |
} | |
if ($host = "wmmr.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/15/(.*) http://wmmr.com/wp-content/uploads/sites/15/$1; | |
} | |
if ($host = "975thefanatic.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/16/(.*) http://975thefanatic.com/wp-content/uploads/sites/16/$1; | |
} | |
if ($host = "magic1067.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/17/(.*) http://magic1067.com/wp-content/uploads/sites/17/$1; | |
} | |
if ($host = "wror.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/18/(.*) http://wror.com/wp-content/uploads/sites/18/$1; | |
} | |
if ($host = "country1025.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/19/(.*) http://country1025.com/wp-content/uploads/sites/19/$1; | |
} | |
if ($host = "hot969boston.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/20/(.*) http://hot969boston.com/wp-content/uploads/sites/20/$1; | |
} | |
if ($host = "alt929boston.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/21/(.*) http://alt929boston.com/wp-content/uploads/sites/21/$1; | |
} | |
if ($host = "wbt.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/22/(.*) http://wbt.com/wp-content/uploads/sites/22/$1; | |
} | |
if ($host = "detroitsports1051.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/23/(.*) http://detroitsports1051.com/wp-content/uploads/sites/23/$1; | |
} | |
if ($host = "wrif.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/24/(.*) http://wrif.com/wp-content/uploads/sites/24/$1; | |
} | |
if ($host = "wctcam.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/25/(.*) http://wctcam.com/wp-content/uploads/sites/25/$1; | |
} | |
if ($host = "wdhafm.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/26/(.*) http://wdhafm.com/wp-content/uploads/sites/26/$1; | |
} | |
if ($host = "wrat.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/27/(.*) http://wrat.com/wp-content/uploads/sites/27/$1; | |
} | |
if ($host = "wjrz.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/28/(.*) http://wjrz.com/wp-content/uploads/sites/28/$1; | |
} | |
if ($host = "bobandsheri.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/29/(.*) http://bobandsheri.com/wp-content/uploads/sites/29/$1; | |
} | |
if ($host = "1079thelink.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/30/(.*) http://1079thelink.com/wp-content/uploads/sites/30/$1; | |
} | |
if ($host = "1051thebounce.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/31/(.*) http://1051thebounce.com/wp-content/uploads/sites/31/$1; | |
} | |
if ($host = "gmphilly.gmr.dev") { | |
rewrite ^/wp-content/uploads/sites/32/(.*) http://gmphilly.com/wp-content/uploads/sites/32/$1; | |
} | |
if ($host = "content.greatermedia.com") { | |
rewrite ^/wp-content/uploads/sites/32/(.*) http://gmphilly.com/wp-content/uploads/sites/32/$1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment