raizus
Guest
Apache_2.0.54-Openssl_0.9.7g-Win32
1) Захожу на сайт hunter.campbus.com и скачиваю Apache_2.0.54-Openssl_0.9.7g-Win32
2) Распаковываю в папку c:/apache/
3) libeay32.dll и ssleay32.dll из c:/apache/ копируем в system32
4) Запускаем, работает, отключаем.
5) Открываем httpd и редактируем и получаем:
ServerRoot "c:/apache"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
Listen 80
ServerAdmin maksadmin
ServerName localhost:80
UseCanonicalName Off
DocumentRoot "c:/apache/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "c:/apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
UserDir "My Documents/My Website"
DirectoryIndex index.html index.html.var index.htm
AccessFileName .htaccess
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error.log
<Directory "c:/apache/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
ScriptAlias /cgi-bin/ "c:/apache/cgi-bin/"
<Directory "c:/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
# Оставляем шаблон
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
Запускаем, и https://localhost – не работет
Куда вставлять в версии сервера 2.0.54 ???
SSLSessionCacheTimeout 300
NameVirtualHost localhost:443
Listen 80 Listen 443 SSLMutex none – выдаёт ошибку
SSLRandomSeed startup builtin
SSLSessionCache none
SSLLog logs/SSL.log
SSLLogLevel info SSLOptions +StdEnvVars – выдаёт ошибку
И
DocumentRoot /путь/к/каталогу/с файлами/сервера
ServerName localhost
ErrorLog logs/secure.log
SSLEngine On
SSLCertificateFile conf/ssl/localhost.cer
SSLCertificateKeyFile conf/ssl/localhost.key
Или надо:
<VirtualHost localhost:80>
DocumentRoot /путь/к/каталогу/с файлами/сервера
ServerName localhost
ErrorLog logs/secure.log
SSLEngine On
SSLCertificateFile conf/ssl/localhost.cer
SSLCertificateKeyFile conf/ssl/localhost.key
</VirtualHost>
1) Захожу на сайт hunter.campbus.com и скачиваю Apache_2.0.54-Openssl_0.9.7g-Win32
2) Распаковываю в папку c:/apache/
3) libeay32.dll и ssleay32.dll из c:/apache/ копируем в system32
4) Запускаем, работает, отключаем.
5) Открываем httpd и редактируем и получаем:
ServerRoot "c:/apache"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
Listen 80
ServerAdmin maksadmin
ServerName localhost:80
UseCanonicalName Off
DocumentRoot "c:/apache/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "c:/apache/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
UserDir "My Documents/My Website"
DirectoryIndex index.html index.html.var index.htm
AccessFileName .htaccess
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error.log
<Directory "c:/apache/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
ScriptAlias /cgi-bin/ "c:/apache/cgi-bin/"
<Directory "c:/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort
<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>
# Оставляем шаблон
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
Запускаем, и https://localhost – не работет
Куда вставлять в версии сервера 2.0.54 ???
SSLSessionCacheTimeout 300
NameVirtualHost localhost:443
Listen 80 Listen 443 SSLMutex none – выдаёт ошибку
SSLRandomSeed startup builtin
SSLSessionCache none
SSLLog logs/SSL.log
SSLLogLevel info SSLOptions +StdEnvVars – выдаёт ошибку
И
DocumentRoot /путь/к/каталогу/с файлами/сервера
ServerName localhost
ErrorLog logs/secure.log
SSLEngine On
SSLCertificateFile conf/ssl/localhost.cer
SSLCertificateKeyFile conf/ssl/localhost.key
Или надо:
<VirtualHost localhost:80>
DocumentRoot /путь/к/каталогу/с файлами/сервера
ServerName localhost
ErrorLog logs/secure.log
SSLEngine On
SSLCertificateFile conf/ssl/localhost.cer
SSLCertificateKeyFile conf/ssl/localhost.key
</VirtualHost>