Have you installed wordpress on your Synology and want to use your website domain name instead of your synology’s name?
I have been wanting to do this for quite a while, but never figured out until now and I am thrilled to share this how-to with you!
Buy your domain name
Ok, first things first, you need to own a domain name.
I buy all my domains from Hover. If you also want to register your domain at Hover, click on this link for a 2$ discount, when you sign up an account with them.
Get a $2 discount if you purchase your domain with Hover (I get also $2 discount, thanks!!)
Point your domain name to your Synology
Now that you have your own domain, you need to point it to your synology. I will show you how to do it with Hover:
- Click on DNS
- Hostname: @ or the domain name you bought (ex.teraqube.com)
- Record Type: CNAME
- Target Host: The address you use to access your synology
- Save
Configure a virtual host in our synology
Now login your Synology, we are going to configure a virtual host. Once in your Synology, navigate to your web station:
And follow these steps:
- Click on virtual host
- Add the domain name you bought
- Browse to your web folder and the site you want to map with the new domain
- Select Apache HTTP server
- and save.
Wait until the changes are propagated on the internet and delete your browser cache if it is not working.
Enjoy!!
HTTPS website
I installed a Lets encrypt SSL certificate on my synology and I would love to move my sites from http to https too, but I still haven’t figured out how. If you figure it out, let me know in the comments.
Hi I have replicated the setup as described and it worked fine for a while. Then it reverted to the default page from Hover stating “‘domain’ is a totally awesome idea still being worked on.”.
I contacted Hover and they state “Hi Vincent. I just had a look at your DNS and you have a blank CNAME record set up (using @) and this is causing some issues. Blank CNAME records can cause all other DNS records to not function, it’s just a DNS rule.”. Did I do something different? Any ideas on how my blank CNAME record might be causing problems where yours seems to work just fine?
I love your site btw, it triggered me to go to Hover and setup my certificate via Let’s Encrypt. Keep up the good work!
Kr.
Vincent
LikeLike
Hi Vincent,
Thanks for the feedback :)!
Back to your question, how does your CNAME record look like in Hover? If you like, you can use my Contact me page and we can take this privately.
/Ruth
LikeLike
Hi Ruth!
Great article, but I can’t seem to figure it out.
My domain controller does not allow me to put a cname record for “@” because it says my domain already has at least one NS-pointer. But I can’t seem to find it.
Any tips?
LikeLike
Hi Göran, who is your domain provider? Could you send me a snapshot of your settings? You can use the contact page if you want to keep it private. Have you tried contacting them? /Ruth
LikeLike
Hi Ruth,
A long time ago I had a website running at khoe.net (just a Windows-PC with Sambar). I now have a Synology NAS with wordPress. I still use dotster.com (I think it was known by another name back then) as my domain provider.
They have changed a lot, though.
I guess I must have setup correctly something, because when I access blog.khoe.net I reach my website. In the address bar I see “blog.khoe.net”. However, whatever I click beyond that, I get something like “http://83.162.186.172/wordpress/pokemon-knit/” in the address bar.
Pages are rendered as expected. But instead of my domain name, my external IP-address is shown in the address bar.
Any idea?
TIA, cu,
Robert
LikeLike
Mmmmm that happened to me when I didn’t have the virtual hosts configured in the synology. Have you done that? /Ruth
LikeLiked by 1 person
Hi Ruth,
Virtual host configured. Tried both khoe.net and blog.khoe.net.I don’t get the standaard page of Web Station, but I get my home page of blog.khoe.net with the full domain name in the address bar.
Cu,
Robert
LikeLike
Ok, have you changed the home and site URL to blog.khoe.net in WordPress general settings or phpmyadmin?
I am hosting this website apiexplorer.net on my synology and the setup works for me./Ruth
LikeLike
Hi Ruth,
I did, but it didn’t change that address bar behaviour.
I earlier wrote a short blog post (http://83.162.186.172/wordpress/using-your-own-domain-name-on-your-external-ip-address/) about what was going on (or I thought was going on). Nearly forgot about that one
Cu,
Robert
LikeLike
The link seems to be broken, can u post a new one?
Also, it would be useful to see the settings on your domain provider, could u send me a screenshot? Are u using DDNS services to mask your synology?/Ruth
LikeLike
Up again. I started configuring a second NAS and as they got the same name in my router, I changed the names… Not realising I killed the port forwards with the name change. And than I went away doing all kind of other stuff (still busy).The link should work again.
I have a static IP. But I might have configured one.
LikeLike
Hi Robert, apologies for my late answer. How does your permalinks look like in WordPress? Do they all point to your blog name or your internal up? /Ruth
LikeLike
Hi Ruth,
Don’t worry, I also have other stuff to do. And I am happy you are willing to help me, anyway.
At the moment:
– WordPress Address (URL): internal
– Site Address (URL): external
This way it at least works. With phpMyAdmin I had all kind of other combinations tried.
TIA, cu,
Robert
LikeLike
Hi Robert,
According to WordPress documentation, that is the correct way to do it. So, everything is working now? \Ruth
LikeLike
Unfortunately, no. This is the configuration I endend up with because it technically worked (except fotr the correct name in the address bar).
LikeLike
Hi again, Have you checked wordpress permalinks? Are they pointing at your internal ip or your domain name?
/Ruth
LikeLike
Hi Ruth.
I got a domain link to synology DSM which is https://dsm.XXX.com.I also set another sub domain which is https://web.XXX.com link to my own web site on web station.
Since DSM and my own web site can’t share with same port.So I do:
1. set virtual host on port 10085 on port-based mode.
2. set reverse proxy config reverse port 443 on https://web.XXX.com to my web station site.detail config is
Source: https://web.XXX.com
Port:443
Destination: localhost:10085
3. set Security setting(like certificate).
After that, I go to https://web.XXX.com,still is DSM page.
Is there thing wrong?
Thanks!
LikeLike
Thank you, Ruth. I followed your instructions and it worked like a charm. If you figure out the https stuff, I would love to read your next “hard stuff made easy” post. 🙂
LikeLike
Thanks!
I have some great posts lined up, I just need the time to do it!
Hopefully soon 🙂
LikeLike
Does this also apply when trying to host 2 domains using wordpress? I have tried and no luck,
Thanks!
LikeLike
You can host as many you like, it should work. What issues are you having?
/Ruth
LikeLike
hi Ruth,
Do you still look after this, I guess I need your help as the only information I can find on the web is on this page.
Cheers,
Fatih
LikeLike
Hi Fatih,
Not sure what you mean? Look after what exactly?
/Ruth
LikeLike
Hi Ruth, sorry.
I was trying to host my own wordpress site on my sync but wasn’t successful with virtual hosts and etc. So I have searched the web for a day and found your post but still wasn’t successful. Then I spent another day and found another post (though I have deleted all the web folder and started from the scratch 🙂 )
But thanks anyway, so my question was about, if you still actively look after your blog, should I have put a comment or send you an email 🙂
Many thanks,
Fatih
LikeLike
Here you cand find all instructions to move your website from http to https https://mariushosting.com/host-from-home-wordpress-domain-name-with-ssl-https-on-synology-nas/
LikeLike
Thanks Marius,
I actually got this to work but forgot to create a blog post. I will do it so people with dynamic ip can also have a solution. Will come up in a few weeks.
Thanks for sharing 🙂
/Ruth
LikeLike
Hello Ruth,
I followed you tutorial and it worked really easily. However when I go to a post or a page, the URL of my permalinks is still shown as the dress my-name.synology.me/post/xxx.
Did you change your website address within wordpress settings panel or did it work directly for you?
My domain name is on google domain so it is a little bit different from your installation but, I don’t want to break anything on my website so if you have any advice I’ll be very happy to chat.
Thanks for your amazing website which has really helped me for the first step with my synology hosted wordpress website.
Chloé
LikeLike
I forgot that part…. because I already had my domain name on the website it without SSL.
Let me update the blog post next week so I make sure the steps are correct. I don’t want to break your site either!
/Ruth
LikeLike
Can i host my own domain without using wordpress and how to do it
LikeLike
Is this what you are looking for ?
https://www.synology.com/en-global/knowledgebase/DSM/tutorial/Network/How_to_set_up_your_domain_with_Synology_DNS_Server
/Ruth
LikeLike
Hi,
I’ve set up Synology with external hostname as above and can get to the front page. The problem I have are the menu links. If I change the site URL to the external hostname (or the synology hostname) the menu links eg:hostname.synology.me:portnumber/about) give a 404 error.
Im hoping that their is a simple solution because I’ve been going nuts trying to figure it out over the last couple of days.
Thanks for any help/advice.
K
LikeLike
Something is wrong in your WordPress setup. Ask on a WordPress forum they will know right away.
/Ruth
LikeLike
Hi Ruth, thanks for the great article !
Everything seems to work perfectly for me except that I always need to add “wordpress” to the url to access the website (e.g. domain.com/wordpress instead of domain.com).
Virtual host is pointing to “web/wordpress” so I don’t really undertand the problem.
Any suggestion?
Cheers,
D.
LikeLike