Title: Nginx Reverse Proxy Causing &#8220;a critial error&#8221;
Last modified: October 19, 2020

---

# Nginx Reverse Proxy Causing “a critial error”

 *  [derian00](https://wordpress.org/support/users/derian00/)
 * (@derian00)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/nginx-reverse-proxy-causing-a-critial-error/)
 * The site is running apache locally, with an nginx reverse proxy between it and
   the client, configuration in the wp-config.php is as follows:
 *     ```
       if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
               $_SERVER['HTTPS'] = 'on';
       }
       ```
   
 * my Nginx reverse proxy config (omitting the SSL config but here the location 
   block), is as follows:
 *     ```
       location / {
           proxy_pass http://10.8.40.57;
           proxy_set_header X-Forwarded-Proto https;
           proxy_set_header X-Forwarded-Port 443;
         }
       ```
   
 * I’m running into the site serving “There has been a critical error on your website.”
   which leads me to beleive that I did something wrong in the wp-config.php part,
   as this error appears regardless if I try and access the site through either 
   direct IP or via reverse proxy. I’ve been unable to find better documentation
   on configuring the reverse proxy in wordpress properly, guidance and support 
   much appreciated!

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/nginx-reverse-proxy-causing-a-critial-error/#post-13599433)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel, navigate to `/wp-content/
   themes/` and rename the directory of your currently active theme. This will force
   the default theme to activate and hopefully rule-out a theme-specific issue (
   theme functions can interfere like plugins).

Viewing 1 replies (of 1 total)

The topic ‘Nginx Reverse Proxy Causing “a critial error”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/nginx-reverse-proxy-causing-a-critial-error/#post-13599433)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
