How to create a subdomain that links to an external URL?

February 7, 2017 2.2k views
DNS Apache Ubuntu 16.04

I want that “” masks and points to an external url like “”.
Can you give me a step by step procedure? My droplet is Ubuntu WordPress on 14.04.

2 Answers

You create a vhost in your webserver configuration that redirects or proxies to your desired URL.


You could use something such as:

<VirtualHost *:80>
  RedirectPermanent /

and then restart Apache for the changes to take.

Have another answer? Share your knowledge.