F
F
Flaker2013-12-04 18:19:14
Apache HTTP Server
Flaker, 2013-12-04 18:19:14

How to implement division into domains on one IP?

There is a vps with LAMP installed. There is a domain.
I'm using a vps hosting DNS server.
When binding a domain to these DNS servers and navigating through the domain, it puts it in the directory specified in /etc/apache2/sites-available/default . " DocumentRoot /var/www "
How can I make it drop into the folder with the site, say /var/www/site1 , when navigating through the domain ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2013-12-04
@Flaker

google Apache Virtual Host

N
Nikita Gusakov, 2013-12-04
@hell0w0rd

Understand nginx.
There, the configs are much simpler, it seems to give better statics, php-fpm works fine, what else is needed for life?)
nkt.me/configure-vps-on-ubuntu-12-04/ - wrote a note on how to configure ubuntu on vps-ke, there is a section about the initial configuration of nginx.
Plus, nginx.org has Russian documentation for almost every module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question