NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName
test1.ru ServerAlias
www.test1.ru DocumentRoot
/home/www/test1.ru/ DirectoryIndex index.php <---- или
.htm или
.html или и
т.д. в зависимости от index-файла конкретного сайта
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory "
/home/www/test1.ru/">
Options Indexes FollowSymLinks MultiViews Includes
AllowOverride All
Order allow,deny
Allow from all <--- или
xxx.xxx.xxx.xxx/32 как пример если для одного какого-то IP разрешить или
xxx.xxx.xxx.0/24 для подсети
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/
test1.ru_error.log # Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/
test1.ru_access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>