# Image lightbox not working in subfolder install

**URL:** https://meta.discourse.org/t/image-lightbox-not-working-in-subfolder-install/102930
**Category:** Self-hosting
**Tags:** subfolder
**Created:** [November 28, 2018, 1:14am UTC](https://meta.discourse.org/t/image-lightbox-not-working-in-subfolder-install/102930 "2018-11-28T01:14:09Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![vincentp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vincentp/32/110063_2.png) [@vincentp](https://meta.discourse.org/u/vincentp)
#### Post date: [December 5, 2018, 6:39am UTC](https://meta.discourse.org/t/image-lightbox-not-working-in-subfolder-install/102930/17 "2018-12-05T06:39:25Z")

</div>

Ok, got past the Sidekiq issue, I found this in the unicorn.stderr.log

```
WARN -- : attack prevented by Rack::Protection::IPSpoofing

```

which lead me to look at the IPSpoofing source code and figured out the problem was the HTTP\_X\_REAL\_IP header I was forwarding… removed it and now I an access sidekiq.

Sidekiq appears to be running normally, but lightbox is still not working. Any other suggestions on where to look?

Edit (since I can’t post more than 3 consecutive replies!) :

**Problem solved**. I found the same error as this case

> [@Lightbox not showing up on uploaded images after update](https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009/12):
>
> I’ve just moved my docker image from a dedicated server to the outer proxy. The outer nginx is now connecting through sockets instead of forwarding https. Problem still persists. I’m still receiving errors like this (which seem to be issue): Can't reach '/uploads/default/original/1X/988629194890bf9b48b914c8fe910e15c4ac1d27.jpg' to get its dimension. The images are valid and accessible, so whats creating the issue here? EDIT: I’ve dug a little deeper and added some debugging to get\_size within…

in our production logs, and he mentioned dns. DNS appeared to be working, however I had it as 1.1.1.1, 8.8.8.8 on the host, I changed that around to 8.8.8.8, 8.8.4.4, 1.1.1.1 and rebooted the host (restarting the container didn’t seem to help).

I have no idea why this change worked, as I could curl the image url in the container just fine, and dns appeared to be working.

---

_[View the full topic](https://meta.discourse.org/t/image-lightbox-not-working-in-subfolder-install/102930)._
