Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question