Custom domain for Obsidian Publish - can't make it work

What I’m trying to do

Trying to use my domain www.alltiago.com as my main domain for Obsidian Publish

Things I have tried

I followed the instructions here

I ended up with this in my htaccess file:

RewriteEngine  On
RewriteRule    "^/(.*)$"  "https://publish.obsidian.md/serve?url=alltiago.com/$1"  [L,P]

I’m using my domain as my Publish location, not a sub domain or a sub folder.
In the documentation it uses my-notes which I assume it’s just an example, but the documentation doesn’t mention it’s an example and it can be very confusing. Do I need to add my-notes? Or is that just an example?

Does it make a difference if in Obsidian I have it like this:

versus this?

If so, does it make a difference how the documentation’s “code” affects how it works?

What about this?
“you may also need to configure SSLProxyEngine
How do I know if I need to or not and how to properly set it up?
For someone who’s not an expert in this, and I’m already ok with some tech stuff, this whole process can be super confusing and hard to make it work.

Can someone please help me figure this out once and for all?
I read other topics here on the forum, but none seems to really help with my issue.

Using Cloudflare is not an option for me, because I use domain.com to host my domains and I want yo keep it that way. Unless I can use Cloudflare without transfering my domain to them?

Thanks!

EDIT: according to Hostgator (after 1h of going back and forth talking to someone who seemed to know less than me…) they say I can’t use proxy :man_facepalming:t2:

They said
“You are having Cloud server. Under this mod_rewrite is not supported.”

So I guess the only option is Cloudflare?
If so, can I use it without transfering my domain to them?
Any idea of the cost for this? I’m really not familiar with Cloudflare and it seems too technical for me…

This seems to have been resolved, or at least on its way, glancing at Discord.

1 Like

Yes, it’s working now. It was a long and confusing process. I wish the Obsidian Publish was a bit more thorough on this so people who are not tech-savvy could follow the steps. I’m pretty comfortable with most stuff, but this was a bit too much.

1 Like

Glad you got it all up and running. Also, understood on the setup process.

The Publish custom domain setup page is here: https://help.obsidian.md/Obsidian+Publish/Set+up+a+custom+domain. There may also be some topics here in the forum.

Only if you have time and are willing, you could add suggestions and/corrections to the above page here:
https://github.com/obsidianmd/obsidian-help/issues. Even a bullet list of the steps you took. Whatever you think is missing. It may help others in the same situation going forward. Thanks!

1 Like

It was a long and foreign process for me and unfortunately I didn’t take any notes.
I wish I could help other users with my experience, but it’s something I’m not familiar with.

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