W
W
Way2014-11-03 14:57:51
Debian
Way, 2014-11-03 14:57:51

How to create 2 subdomains on the same ip?

Good afternoon, the other day I decided to create a subdomain on one VDS, i.e. I also have a domain on the same vdsk and I need to create a subdomain for the forum. But after looking around on different sites, I did not find the article. And I want to ask you, How to create a subdomain on the VDS?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Salavat Sharapov, 2014-11-03
@desperadik

1) First you need a hoster who has a DNS server with your domain - register * .domen.com. (You can leave *, or you can register a subdomain)
2) Then catch this subdomain on the web server and redirect it to the forum folder.
Who is the web server??
In the comments, the toaster cuts bb codes.
Part of the config:

<VirtualHost *:80>
        ServerAdmin [email protected]
        DocumentRoot ""

        ServerName      forum.domen.ru
        ServerAlias     www.forum.domen.ru forum.domen.ru

<Directory /var/www/forum>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question