Title: Nginx code
Last modified: October 16, 2017

---

# Nginx code

 *  [MarkDenis](https://wordpress.org/support/users/markdenis/)
 * (@markdenis)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/nginx-code/)
 * Hi, I am using Nginx, I have installed and activated your plugin, all seems to
   be configured correctly but I see this.
 * If you are using NginX, you probably need such a bit of code in your configuration
   file:
    location / { rewrite \.(?:jpe?g|gif|png)$ /wp-content/plugins/adaptive-
   images/adaptive-images-script.php; }
 * Do you mean add this code to the wp-config file? Anywhere specifically in the
   file or does it matter? Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * (@nevma)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/nginx-code/#post-9590983)
 * Hello, there,
 * You need to add such a code in your NginX configuration file, not your WordPress
   configuration file. If you do not know what these then you will probably need
   the help of your server admin to do it. You must also, bear in mind that this
   code part might vary a bit, depending on the rest of your server configuration.
   Unfortunately, NginX does not allow us to automate this process, so it has to
   be done manually!
 * Let me know if there is anything else I can do for you.
 * Cheers,
    Takis
 *  Thread Starter [MarkDenis](https://wordpress.org/support/users/markdenis/)
 * (@markdenis)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/nginx-code/#post-9591840)
 * Thank you for the response, I am on a shared server with Siteground so not sure
   if this will be possible, knew it was too good to be true!
 *  Plugin Author [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * (@nevma)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/nginx-code/#post-9592128)
 * Sorry to hear this, but I guess you could give it a shot and let me know if I
   can help any further!
 * Cheers,
    Takis

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Nginx code’ is closed to new replies.

 * ![](https://ps.w.org/adaptive-images/assets/icon-256x256.png?rev=1138642)
 * [Adaptive Images for WordPress](https://wordpress.org/plugins/adaptive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adaptive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adaptive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/adaptive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adaptive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adaptive-images/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)

 * 3 replies
 * 2 participants
 * Last reply from: [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/nginx-code/#post-9592128)
 * Status: not resolved