|
Search |
You would like to create a sub-domain such as sub.domain.co.uk to the domain already installed on domain.co.uk system. For this, we must modify the configuration of the DNS and Web (Apache) server. Recently, we put in place an automated procedure in Ovhm, you may now update your OVHm to benefit from this function at this address. DNS server In Webmin, click on "Servers" index, then on "BIND DNS Server" Click on the domain (at the bottom of the page) click on the A button (Address) And fill in it as follows: Name: sub Address: 213.186.3X.XXX Update the reverse address? No Then click on "Create" and go back to the index of the module Click on "apply all changes" Apache
We will have to create a new Virtual Host in Apache to manage this sub-domain. In Webmin, click on Servers, then Apache Web Server. At the bottom, you have a form named: Create a new virtual host Fill in it as follows: Address: 213.186.3X.XXX Root directory of documents: /home/mydomain/sub-domain Server name: sub.domain.co.uk copy directives from: www.domain.co.uk WARNING: the name of directories is not linked to sub-domain, the names can thus be different between the sub-domain to create and the directory, which contains it. Then click on "Create" and go back to the index of the module. Click on "Apply all changes" in the top bar.
You must add an Alias Server in the Apache configuration of the domain. In Webmin, click on "Servers", then "Apache Web Server". Select the Virtual Server, which corresponds to the domain to which the sub-domain will point. Click on "Addresses and Network" icon and add in the 'Alternatives Names' box of the virtual server "sub.domain.co.uk". Then click on "Save" and go back to the index of the module. Click on "Apply all changes" in the top bar. In Webmin, click on 'Servers' index. Then on "BIND DNS Server" click on the domain (at the bottom of the page) click on the A button (address) then fill in it as follows: Name: sub Address: 213.186.3X.XXX Update the reverse address? No Then click on "Create" and go back to the index page of the module. Click on "Apply all changes" It is finished Once the two servers (Web and Dns) are restarted, the sub-domain will be immediately accessible. |