A
A
AZshar2018-05-29 06:02:24
linux
AZshar, 2018-05-29 06:02:24

How to set up subdomains on Apache and bind9 in ubuntu?

Hi all.
I say right away in ubuntu I'm a noob. At work with windows, we decided to make the transition to ubuntu.
Tell me how to make it so that when you enter dsfsjdfjsdfkskfjskdjf.local.ru into the address bar, there is a redirect to local.ru?
I've already broken my head how to do it. Registering in hosts is not an option, there can be a lot of subdomains.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Victor Taran, 2018-05-29
@shambler81

Aliases if for apache at least
Nginx + apache and dynamic config for nignx
BUT you better think about web panel for example ispconfig3 and vestacp

D
Denis, 2018-05-29
@notwrite

Add an entry
* 900 in a (ip apach) to the bind zone file Add ServerAlias ​​*.local.ru
to the domain description in the Apach config

A
Anton Ulanov, 2018-05-29
@antonsr98

vhost.conf and go

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question