NAS server

Use your own domain on wordpress website hosted on Synology

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.

Hover-Refer-a-Friend-Post-

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:

  1. Click on DNS
  2. Hostname: @
  3. Record Type: CNAME
  4. Target Host: The address you use to access your synology
  5. Save

cname hover

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:

configure your webstation

And follow these steps:

  1. Click on virtual host
  2. Add the domain name you bought
  3. Browse to your web folder and the site you want to map with the new domain
  4. Select Apache HTTP server
  5. and save.

configure virtual host synology1

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.

16 thoughts on “Use your own domain on wordpress website hosted on Synology

  1. 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

    Like

  2. 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?

    Like

  3. 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

    Like

      1. 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

        Like

      1. 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.

        Like

      1. 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

        Like

      2. Unfortunately, no. This is the configuration I endend up with because it technically worked (except fotr the correct name in the address bar).

        Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s