Hosts
127.0.0.1 localhost
127.0.0.1 phpmyadmin www.phpmyadmin
127.0.0.2 site1.ru www.site1.ru
127.0.0.3 site2.ru www.site2.ru
vhosts
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user/public_html/site2.ru/www/
ServerName site2.ru
ServerAlias www.site2.ru
<IfModule mpm_itk_module>
AssignUserId user www-data
</IfModule>
<Directory />
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /home/user/public_html/bhf-shop.ru/www/>
Order allow,deny
Allow from all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
Require all granted
</Directory>
CustomLog /home/user/public_html/site2.ru/access.log common
ErrorLog /home/user/public_html/site2.ru/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
</VirtualHost>
UUID=d4877cd3-a2e5-4a38-81e5-55e3717ff0f7 /home/user/public_html ext4 defaults 0 2
И перенес все сайты на этот диск и после этого перестало работать, хотя до этого все было хорошо.
но phpmyadmin работает отлично
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user/public_html/phpmyadmin/www/
ServerName phpmyadmin
ServerAlias www.phpmyadmin
<IfModule mpm_itk_module>
AssignUserId user www-data
</IfModule>
<Directory />
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory /home/user/public_html/phpmyadmin/www/>
Order allow,deny
Allow from all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
Require all granted
</Directory>
CustomLog /home/user/public_html/phpmyadmin/access.log common
ErrorLog /home/user/public_html/phpmyadmin/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
</VirtualHost>