sandstormports / wordpress-sandstorm

WordPress Sandstorm package
Apache License 2.0
4 stars 3 forks source link

Publishing website under alternate URL #14

Open xet7 opened 6 years ago

xet7 commented 6 years ago

From @zeigerpuppy on February 25, 2016 8:45

I am trying to setup sandstorm wordpress for external access Is there a mechanism similar to the Ghost app, where CNAME and TXT records can be mapped to the URL? I tried using something like the following (names and numbers changed to protect the innocent!) I am using djbdns and similar code worked fine for Ghost

# CNAME
Cwpblogss.fqdn.net:1729626999a6a7d8918a13199dss.fqdn.net
# TXT record
'sandstorm-www.wpblogss.fqdn.net:1729626999a6a7d8918a13199

However, I get an error on browsing there No such grain for public ID: 1729626999a6a7d8918a13199 [404]

Copied from original issue: dwrensha/wordpress-sandstorm#19

xet7 commented 6 years ago

From @dwrensha on February 25, 2016 13:30

There should be a "Sandstorm Publishing Information" panel on the admin dashboard. Do the instructions there work for you?

xet7 commented 6 years ago

From @zeigerpuppy on February 25, 2016 16:21

Thanks, my mistake, I was using the URL from the >>Settings>>General>>Site Address,

talk about missing the obvious! out of interest, why are the published URL and the one in the Site address different?

xet7 commented 6 years ago

From @dwrensha on February 26, 2016 3:28

I assume you're referring to the "Site Address (URL)" row on the Settings -> General page? That ends up being based on the transient hostname that Sandstorm has given your current session. It needs to be set this way so that WordPress can properly generate internal links as it generates dynamic content. The published URL is static.