История изменений
Исправление kostik87, (текущая версия) :
Вы что читать не умеете?
Это 1
<VirtualHost *:80> ServerAdmin @a.ru ServerName a.ru ServerAlias http://www.a.ru DocumentRoot /var/web/a.ru <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/web/a.ru/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </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 </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
А это 2
<VirtualHost *:443> ServerAdmin a@a.ru ServerName a.ru DocumentRoot /var/web/a.ru-ssl <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/web/a.ru-ssl> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/db.deblocal-error.log LogLevel error CustomLog /var/log/apache2/db.deblocal-access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/a_ru.crt SSLCertificateKeyFile /etc/ssl/private/a_ru.key <FilesMatch «\.(cgi|shtml|phtml|php)$»> SSLOptions +StdEnvVars </FilesMatch> BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </VirtualHost>Тольков posrts дописал еще NameVirtualHost *:443
Исходная версия kostik87, :
Вы что читать не умеете?
Это 1
<VirtualHost *:80> ServerAdmin @a.ru ServerName a.ru ServerAlias http://www.a.ru DocumentRoot /var/web/a.ru <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/web/a.ru/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </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 </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
А это 2
<VirtualHost *:443> ServerAdmin a@a.ru ServerName a.ru DocumentRoot /var/web/a.ru-ssl <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/web/a.ru-ssl> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/db.deblocal-error.log LogLevel error CustomLog /var/log/apache2/db.deblocal-access.log combined SSLEngine on SSLCertificateFile /etc/ssl/certs/a_ru.crt SSLCertificateKeyFile /etc/ssl/private/a_ru.key <FilesMatch «\.(cgi|shtml|phtml|php)$»> SSLOptions +StdEnvVars </FilesMatch> BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </VirtualHost> Тольков posrts дописал еще NameVirtualHost *:443