Title: Nginx error with code given
Last modified: April 4, 2019

---

# Nginx error with code given

 *  [gaingroup](https://wordpress.org/support/users/gaingroup/)
 * (@gaingroup)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/nginx-error-with-code-given/)
 * I’ve given the code you provided to the host here’s the error it gave when attempting
   to add it:
 * FATAL CONFIGURATION ERROR:
    Nginx: nginx: [emerg] duplicate location “/” in /
   tmp/regen_coachwerks.jsNlkL/coachwerks.conf:428 nginx: configuration file /tmp/
   regen_coachwerks.jsNlkL/nginx.conf test failed
 * Perhaps you can reformat that rule so that its compatible with them?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnginx-error-with-code-given%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * (@nevma)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/nginx-error-with-code-given/#post-11393678)
 * Hello, my friend,
 * Thank you for reaching out to us!
 * From the error message, it seems that they have entered a duplicate “/” location
   in the NginX configuration file. This means that they need to adapt the code 
   given by the Adaptive Images plugin, so that it is correctly incorporated in 
   your current NginX configuration.
 * So, it is not a matter of compatibility but a matter of correct adaptation of
   the code. And, to be honest, only the admin fo the server should know how to 
   do it best in each setup. Unfortunately this is how NginX works.
 * If perhaps you could share with us your NginX configuration file we might be 
   able to provide some more advice. But, even then, it is your admin who should
   know best.
 * Let us know how it goes.
 * Cheers,
    Takis

Viewing 1 replies (of 1 total)

The topic ‘Nginx error with code given’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Takis Bouyouris](https://wordpress.org/support/users/nevma/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/nginx-error-with-code-given/#post-11393678)
 * Status: not resolved