Possible to reverse proxy WP multisite to a separate server with NGINX?

I’m not sure if it works first time, but lets try. server { server_name mydomain.com www.mydomain.com; root /var/www/html/wordpress/mydomain.com/wordpress/; # The “^~” modifier makes this location to take priority over regex-matched locations location ^~ /oldsite { proxy_pass http://my.old.ip; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } index index.php index.html; location /wp-content … Read more

Redirect Function Prevents Images from Showing in Front-end Media Uploader

For anyone who this might help, I found a working solution. Redirecting is working and users can see their images at the front-end WP Media Uploader. function my_noAdminAccess(){ if ( is_admin() && ! current_user_can( ‘delete_others_posts’ ) && ! ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ){ if( wp_get_referer() ){ wp_safe_redirect( wp_get_referer() ); } else{ wp_safe_redirect( … Read more