Answer the question
In order to leave comments, you need to log in
How to properly configure Apache in my case?
There is a VPS on which LAMP is installed. And only 2 directories wp1 and wp2. I need to bind the site.com domain to the wp1 folder, and site.ru to the wp2 folder. But at the domain registrar, I can only register the IP address of the VPS. I can't insert an entry like 105.170.98.108/wp1/. How do I properly configure Apache in my case?
Answer the question
In order to leave comments, you need to log in
We take the apache config. If I had written the OS, I would have answered a little more precisely. In the config we write
NameVirtualHost *
Include sites-enabled/
/sites-enabled# cat domain.ru
<VirtualHost *>
ServerName ИмяДоменаN
ServerAlias www.ИмяДоменаN
DocumentRoot /var/www/vhosts/ИмяДоменаN/httpdocs/
<Directory />
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All
</Directory>
AccessFileName .htaccess
ErrorLog /var/www/vhosts/ИмяДоменаN/logs/error.log
CustomLog /var/www/vhosts/ИмяДоменаN/logs/access.log vhost_combined
</VirtualHost>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question