Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost url not using custom domain #57

Open
edwardwilson opened this issue Oct 12, 2016 · 12 comments
Open

Ghost url not using custom domain #57

edwardwilson opened this issue Oct 12, 2016 · 12 comments

Comments

@edwardwilson
Copy link

After deploying to azure I added a custom domain. I updated the setting in the azure portal to reflect my change. The setting now reads: https://edwardwilson.me. However my theme which uses the url helper in ghost still returns the azurewebsites.net url. I have restarted many times.

@FlyOrDie
Copy link

Same here. My custom domain works, but when i try to go to mysite.domain/ghost i am redirected to mysite.azurewebsites.net/ghost and it fails. I updated the websiteUrl to http://mysite.domain, but it doesn't still works

@pliljecrantz
Copy link

Same here, but when I add my custom domain to websiteUrl, save and restart the WebApp I get a HTTP 500 error until I remove the websiteUrl setting in the portal.

@Selmirrrrr
Copy link

Anyone with a solution here ?

@FBoucher
Copy link

Witch version of Ghost are you using?

@Selmirrrrr
Copy link

The latest, 0.11.3 just upgraded yesterday, but the issue was also there on previous versions.

@pliljecrantz
Copy link

Same as above, just upgraded a few days ago to 0.11.3 and the error persists since earlier versions as well.

@piyushpaliwal
Copy link

@FlyOrDie The reason why you get redirected to azurewebsites is because /ghost is the admin panel and you want this to be served over HTTPS thus it uses the wildcard certificate *.azurewebsites.net that Microsoft provides.
In a nutshell whatever you are experiencing is absolutely ok :)

@piyushpaliwal
Copy link

@edwardwilson under the app setting you might want to add a new key WebsiteUrlSSL and mention your https link here and revert the WebsiteUrl back to http link of your custom domain.
Finally restart the app and it should be back to normal.

@Porges
Copy link

Porges commented Jan 24, 2017

Thanks, @piyushpaliwal. Setting WebsiteUrlSSL did indeed solve the problem.

@kdcllc
Copy link

kdcllc commented Mar 24, 2017

@felixrieseberg, WebsiteUrlSSL was the same fix for me. Maybe it can be default value part of the deploy profile.

@darrenshrwd
Copy link

Arggh!!! :-) The readme page should be updated to mention WebsiteUrlSSL

@DevOpsBoondoggles
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants