127.0.0.1 localhost
127.0.1.1 WS01
127.0.0.1 test.ru
127.0.0.1 forum.test.ru
127.0.0.1 media.test.ru
<VirtualHost *:80>
ServerAdmin test@bk.ru
DocumentRoot /var/www/test.ru/httpd
ServerName test.ru
ServerAlias www.test.ru
<Directory /var/www/test.ru/httpd>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin test@bk.ru
DocumentRoot /var/www/test.ru/forum
ServerName forum.test.ru
ServerAlias www.forum.test.ru
<Directory /var/www/test.ru/forum>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin test@bk.ru
DocumentRoot /var/www/test.ru/media
ServerName media.test.ru
ServerAlias www.media.test.ru
<Directory /var/www/test.ru/media>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerName test.ru
ServerAlias www.test.ru
ServerAdmin test@bk.ru
DocumentRoot /var/www/test.ru/httpd
ErrorLog logs/test_ru_error_log
LogLevel warn
CustomLog logs/test_ru_assest_log combined
<Directory /var/www/test.ru/httpd>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
DirectoryIndex index.php index.html index.htm
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerName forum.test.ru
ServerAlias www.forum.test.ru
ServerAdmin test@bk.ru
DocumentRoot /var/www/forum.test.ru/httpd
ErrorLog logs/forum_test_ru_error_log
LogLevel warn
CustomLog logs/forum_test_ru_assest_log combined
<Directory /var/www/forum.test.ru/httpd>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
DirectoryIndex index.php index.html index.htm
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerName media.test.ru
ServerAlias www.media.test.ru
ServerAdmin test@bk.ru
DocumentRoot /var/www/media.test.ru/httpd
ErrorLog logs/media_test_ru_error_log
LogLevel warn
CustomLog logs/media_test_ru_assest_log combined
<Directory /var/www/media.test.ru/httpd>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
DirectoryIndex index.php index.html index.htm
Order allow,deny
allow from all
</Directory>
</VirtualHost>