# Subscribe button doesn’t work after enabling SSL

**URL:** <https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855>\
**Category:** Developer help\
**Created:** [October 13, 2023, 2:12am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855 "2023-10-13T02:12:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chittaranjan\_Jena](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/chittaranjan_jena/32/26782_2.png) [@Chittaranjan\_Jena](https://forum.ghost.org/u/Chittaranjan_Jena)\
**Post date:** [October 13, 2023, 2:12am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/1 "2023-10-13T02:12:14Z")

</div>

Dear Team  
I am new to ghost. I have been struggling to setup ghost since last 2 days. I used bitnami packaged ghost from an AWS AMI

Here are 2 strange problems i am facing

1. After enabling SSL using the tools provided, the “Subscribe” button is not working
2. Sometimes my browser is redirecting to [https://127.0.0.1:2368/](https://127.0.0.1:2368/) (But if i open in incognito mode its opening)

If someone can help me here

Regards  
Chitta

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [October 13, 2023, 6:09am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/2 "2023-10-13T06:09:33Z")

</div>

Hey Chitta!

That sounds like the environment variable in your Docker image aren’t set correctly.

Here’s something similar from a few days ago: [Subscribe and login button not working - #19 by Rob\_Wright](https://forum.ghost.org/t/subscribe-and-login-button-not-working/41791/19)

I am unfamiliar with AWS AMI, but you should be able to update environment variables somewhere. Find the `url` variable and change it to your actual domain name, including `https://`.

That should do the trick 🙂

---

<div class="post-metadata">

**Author:** ![Chittaranjan\_Jena](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/chittaranjan_jena/32/26782_2.png) [@Chittaranjan\_Jena](https://forum.ghost.org/u/Chittaranjan_Jena)\
**Post date:** [October 13, 2023, 6:23am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/3 "2023-10-13T06:23:56Z")

</div>

Hi @jannis  
Thanks for a quick response. I did what you suggested but it’s now throws error

 ![Screenshot 2023-10-13 at 11.52.23 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/4/0/40fb17567b3cc25d6231a286ab33efdfd675abf8.png)

Regards  
Chitta

---

<div class="post-metadata">

**Author:** ![Chittaranjan\_Jena](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/chittaranjan_jena/32/26782_2.png) [@Chittaranjan\_Jena](https://forum.ghost.org/u/Chittaranjan_Jena)\
**Post date:** [October 13, 2023, 6:28am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/4 "2023-10-13T06:28:46Z")

</div>

When i change it back to http:// and restarts, it works again and serves as https:// in the browser but the subscribe button doesn’t work

 ![Screenshot 2023-10-13 at 11.57.48 AM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/b/fbada4f78a1fbf3640c78306bce355f5e98d1e60.png)

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [October 13, 2023, 6:33am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/5 "2023-10-13T06:33:27Z")

</div>

So, I am a bit confused where the 127.0.0.1 comes from – because that is the URL of localhost, which can only be reached when you’re actually on your server.

Can you confirm that the environment variable `url` is set to `https://blogs.acehours.com`? Additionally, you’ll need to restart the container after you’ve updated it.

---

<div class="post-metadata">

**Author:** ![Chittaranjan\_Jena](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/chittaranjan_jena/32/26782_2.png) [@Chittaranjan\_Jena](https://forum.ghost.org/u/Chittaranjan_Jena)\
**Post date:** [October 13, 2023, 6:54am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/6 "2023-10-13T06:54:04Z")

</div>

Once i make http to https in **config.production.json** it goes to 127.0.0.1:2368 when i type [blogs.acehours.com](http://blogs.acehours.com) in browser

I have been struggling with this bitnami packaged AMI. I am now planning to install directly

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [October 13, 2023, 7:09am UTC](https://forum.ghost.org/t/subscribe-button-doesn-t-work-after-enabling-ssl/41855/7 "2023-10-13T07:09:32Z")

</div>

There is a difference between the config.production.json and the environment variables of your server.

My assumption is that the environment variable `url` is set to `http://127.0.0.1:2368` and is therefore overwriting whatever you put into the config file.

So, to solve this, you need to find where you can set environment variables in your AWS setup. Have a look at the thread I shared above – we had the same issue there 🙂
