Forwarding Subdomains Forwarding Subdomains

Topic: Forwarding Subdomains

Post Forwarding Subdomains
by Dave Bailey on 2016年4月2日

Firstly, many thanks for your speedy reply on my last enquiry. I have since registered my domain ( and this forwards ok. However, I have also registered a subdomain ( but I cannot get my server to redirect to the correct website. This is obviously something wrong with the setting on the Ubuntu 14.04 server. Directing to an opened port on the router works fine, but not the subdomain. Any help that you can give on how to configure the Ubuntu server would be greatly appreciated. Many thanks. Dave Bailey

Reply with quote | Report
Post Re: Forwarding Subdomains
by timothytw on 2016年4月5日

Are you using Apache to host your website? If so, you can setup host headers for each domain name. Below is a link to examples on setting up host headers:

When it comes to setting up port forwarding in the router, you can simply forward any traffic for a given port to the port on which the website is hosted without mentioning the domain name or sub domain name. Once the traffic reaches Apache, it should detect the domain name or sub domain name based on virtual host and display the website accordingly.

Reply with quote | Report
Post Re: Forwarding Subdomains
by DaveBailey1947 on 2016年4月5日

Many thanks once again, problem solved!

Reply with quote | Report
2021年5月8日 9:31