# Hosting behind reverse proxy - Image and Social share links v\>1.0

**URL:** <https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790>\
**Category:** Installation\
**Created:** [April 6, 2018, 11:42pm UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790 "2018-04-06T23:42:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_Sherwood](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/darren_sherwood/32/10015_2.png) [@Darren\_Sherwood](https://forum.ghost.org/u/Darren_Sherwood)\
**Post date:** [April 6, 2018, 11:42pm UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790/1 "2018-04-06T23:42:18Z")

</div>

I have migrated my blog to latest ghost version on DO ghost image, I serve from /blog under my main site, with my main site acting as a reverse proxy, here is the blog: [ExpertEasy](https://www.experteasy.com.au/blog)

The article links and images are working fine, however the social share and the links in the footer e.g ‘Latest Posts’ point to the blog subdomain I use for the hosting rather than the www canonical site.

I remember I needed to change some config when I had a 0.9 version, but I also remember getting into a redirection loop and stuffing it up and cannot find any recent advice on web.

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 8, 2018, 2:29pm UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790/2 "2018-04-08T14:29:29Z")

</div>

Did you follow the DO guide for setting up? It’s here: [Ghost | DigitalOcean Marketplace 1-Click App](https://www.digitalocean.com/community/tutorials/how-to-set-up-the-digitalocean-ghost-one-click-application-for-ubuntu-16-04)

It sounds like you possibly haven’t run `ghost setup` yet.

---

<div class="post-metadata">

**Author:** ![Darren\_Sherwood](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/darren_sherwood/32/10015_2.png) [@Darren\_Sherwood](https://forum.ghost.org/u/Darren_Sherwood)\
**Post date:** [April 8, 2018, 10:34pm UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790/3 "2018-04-08T22:34:10Z")

</div>

Hi, sorry I should have mentioned that before. Yes I followed that, however I set url to point at the subdomain to get things mostly working.

I thought I would be able to run ghost setup again and change url from https:// **blog**.experteasy.com.au/blog/ to https:// **www**.experteasy.com.au/blog/…so I tried that, being sure to say no to doing nginx config…but it still broke it (I took a snapshot first and rollback).

There must be other things that ghost setup does that break it, I just need to **change ONLY the blog url**.

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 9, 2018, 9:07am UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790/4 "2018-04-09T09:07:59Z")

</div>

Ok so I’m concluding that you’ve already changed your nginx setup?

To only change your url you can run `ghost config url <your url here>` .  
This will _only_ change the config, you’ll need to run `ghost restart` to apply the change.

I’ve updated the [docs for `ghost config`](https://docs.ghost.org/docs/cli-config) to hopefully make how this works a bit clearer.

---

<div class="post-metadata">

**Author:** ![Darren\_Sherwood](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/darren_sherwood/32/10015_2.png) [@Darren\_Sherwood](https://forum.ghost.org/u/Darren_Sherwood)\
**Post date:** [April 9, 2018, 9:48am UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790/5 "2018-04-09T09:48:37Z")

</div>

Awesome, that’s all I needed, it works now. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [April 23, 2018, 9:59am UTC](https://forum.ghost.org/t/hosting-behind-reverse-proxy-image-and-social-share-links-v-1-0/790/6 "2018-04-23T09:59:24Z")

</div>

Closed on April 23, 2018, 9:59am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
