
- Главная Список форумов Обсуждение Open Server
- Поиск
-
- Текущее время: 13 фев 2025, 13:10
- Часовой пояс: UTC+03:00
#-----------------------------------------------# # Начало блока конфигурации HTTP хоста #-----------------------------------------------# <VirtualHost *:%httpport%> DocumentRoot "%hostdir%" ServerName "%host%" ServerAlias "%host%" %aliases% ScriptAlias /cgi-bin/ "%hostdir%/cgi-bin/" </VirtualHost> #-----------------------------------------------# # Конец блока конфигурации HTTP хоста #-----------------------------------------------# #-----------------------------------------------# # Начало блока конфигурации HTTPS хоста #-----------------------------------------------# <IfModule ssl_module> <VirtualHost *:%httpsport%> DocumentRoot "%hostdir%" ServerName "%host%" ServerAlias "%host%" %aliases% ScriptAlias /cgi-bin/ "%hostdir%/cgi-bin/" SSLEngine on #Header always set Strict-Transport-Security "max-age=94608000" #SSLCACertificateFile "%sprogdir%/userdata/config/cert_files/ca.crt" #SSLCertificateChainFile "%sprogdir%/userdata/config/cert_files/CertificateChain.crt" SSLCertificateFile "%sprogdir%/userdata/config/cert_files/cert.crt" SSLCertificateKeyFile "%sprogdir%/userdata/config/cert_files/priv.key" SetEnvIf User-Agent ".*MSIE [1-5].*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 SetEnvIf User-Agent ".*MSIE [6-9].*" \ ssl-unclean-shutdown <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "%hostdir%/cgi-bin/"> SSLOptions +StdEnvVars </Directory> </VirtualHost> </IfModule> #-----------------------------------------------# # Конец блока конфигурации HTTPS хоста #-----------------------------------------------#
#-----------------------------------------------# # Основная конфигурация сервера #-----------------------------------------------# %httpcharset% AcceptFilter http none AcceptFilter https none AccessFileName .htaccess DocumentRoot "%ssitedir%/" EnableMMAP Off EnableSendfile Off ExtendedStatus On HostnameLookups Off KeepAlive On KeepAliveTimeout 10 Listen %ip%:%httpport% Listen %ip%:%httpsport% MaxConnectionsPerChild %maxrequests% MaxKeepAliveRequests 100 MaxRanges 200 PidFile "%sprogdir%/userdata/temp/httpd.pid" ScriptInterpreterSource script ServerName %ips% ServerRoot "%sprogdir%/modules/http/%httpdriver%" ServerSignature Off ServerTokens Prod ListenBacklog 1024 ThreadLimit 32 ThreadsPerChild 32 ThreadStackSize 8388608 Timeout 30 UseCanonicalName Off #-----------------------------------------------# # Подключение модулей #-----------------------------------------------# LoadModule access_compat_module modules/mod_access_compat.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule allowmethods_module modules/mod_allowmethods.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_core_module modules/mod_authn_core.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_socache_module modules/mod_authn_socache.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule authz_core_module modules/mod_authz_core.so #LoadModule authz_dbd_module modules/mod_authz_dbd.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule buffer_module modules/mod_buffer.so #LoadModule cache_module modules/mod_cache.so #LoadModule cache_disk_module modules/mod_cache_disk.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule data_module modules/mod_data.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so LoadModule headers_module modules/mod_headers.so #LoadModule heartbeat_module modules/mod_heartbeat.so #LoadModule heartmonitor_module modules/mod_heartmonitor.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_debug_module modules/mod_log_debug.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule lua_module modules/mod_lua.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_express_module modules/mod_proxy_express.so #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_html_module modules/mod_proxy_html.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule ratelimit_module modules/mod_ratelimit.so #LoadModule reflector_module modules/mod_reflector.so #LoadModule remoteip_module modules/mod_remoteip.so #LoadModule request_module modules/mod_request.so #LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so #LoadModule session_module modules/mod_session.so #LoadModule session_cookie_module modules/mod_session_cookie.so #LoadModule session_crypto_module modules/mod_session_crypto.so #LoadModule session_dbd_module modules/mod_session_dbd.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so #LoadModule socache_dbm_module modules/mod_socache_dbm.so #LoadModule socache_memcache_module modules/mod_socache_memcache.so LoadModule socache_shmcb_module modules/mod_socache_shmcb.so #LoadModule speling_module modules/mod_speling.so LoadModule ssl_module modules/mod_ssl.so LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule watchdog_module modules/mod_watchdog.so #LoadModule xml2enc_module modules/mod_xml2enc.so PHPINIDir "%sprogdir%/modules/php/%phpdriver%" LoadModule php5_module "%sprogdir%/modules/php/%phpdriver%/php5apache2_4.dll" <IfModule reqtimeout_module> RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500 </IfModule> #-----------------------------------------------# # Настройка прав доступа к серверу #-----------------------------------------------# <Directory /> AllowOverride None Options -MultiViews -Indexes -FollowSymLinks -IncludesNoExec -Includes -ExecCGI Require all denied </Directory> <Directory "%ssitedir%/*"> AllowOverride All Options -MultiViews +Indexes +FollowSymLinks +IncludesNoExec +Includes +ExecCGI #Options -FollowSymLinks +SymLinksIfOwnerMatch # Защита лучше, но нагрузка выше Require all granted </Directory> <Directory "%sprogdir%/modules/system/html/openserver"> AllowOverride None Options -MultiViews -Indexes -FollowSymLinks -IncludesNoExec -Includes -ExecCGI AddDefaultCharset Off Require all denied Require ip 127.0.0.0/8 ::1/128 Require ip %ips% %allow%Require all granted </Directory> <Directory "%sprogdir%/modules/system/html/default"> AllowOverride None Options -MultiViews -Indexes -FollowSymLinks -IncludesNoExec -Includes -ExecCGI AddDefaultCharset Off <IfModule dir_module> DirectoryIndex index.html </IfModule> Require all granted </Directory> <IfModule alias_module> Alias /openserver/ "%sprogdir%/modules/system/html/openserver/" </IfModule> <Directory "/cgi-bin"> AllowOverride None Options +ExecCGI Require all granted </Directory> <FilesMatch "^\.ht"> Require all denied </FilesMatch> <DirectoryMatch "\.(git|svn|hg)"> Require all denied </DirectoryMatch> #-----------------------------------------------# # Конфигурация сообщений об ошибках #-----------------------------------------------# ErrorLog "%sprogdir%/userdata/logs/%httpdriver%_errora.log" LogLevel warn BufferedLogs Off <IfModule log_config_module> LogFormat "%v: %a %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%v: %a %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%v: %a %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> %log%CustomLog "%sprogdir%/userdata/logs/%httpdriver%_queriesa.log" combined </IfModule> #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://ret.ru/subscription_info.html <IfModule alias_module> Alias /apacheerror/ "%sprogdir%/modules/http/%httpdriver%/error/" </IfModule> <Directory "%sprogdir%/modules/http/%httpdriver%/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Require all granted LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr ForceLanguagePriority Prefer Fallback </Directory> ErrorDocument 400 /apacheerror/HTTP_BAD_REQUEST.html.var ErrorDocument 401 /apacheerror/HTTP_UNAUTHORIZED.html.var ErrorDocument 403 /apacheerror/HTTP_FORBIDDEN.html.var ErrorDocument 404 /apacheerror/HTTP_NOT_FOUND.html.var ErrorDocument 405 /apacheerror/HTTP_METHOD_NOT_ALLOWED.html.var ErrorDocument 408 /apacheerror/HTTP_REQUEST_TIME_OUT.html.var ErrorDocument 410 /apacheerror/HTTP_GONE.html.var ErrorDocument 411 /apacheerror/HTTP_LENGTH_REQUIRED.html.var ErrorDocument 412 /apacheerror/HTTP_PRECONDITION_FAILED.html.var ErrorDocument 413 /apacheerror/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var ErrorDocument 414 /apacheerror/HTTP_REQUEST_URI_TOO_LARGE.html.var ErrorDocument 415 /apacheerror/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var ErrorDocument 500 /apacheerror/HTTP_INTERNAL_SERVER_ERROR.html.var ErrorDocument 501 /apacheerror/HTTP_NOT_IMPLEMENTED.html.var ErrorDocument 502 /apacheerror/HTTP_BAD_GATEWAY.html.var ErrorDocument 503 /apacheerror/HTTP_SERVICE_UNAVAILABLE.html.var ErrorDocument 506 /apacheerror/HTTP_VARIANT_ALSO_VARIES.html.var #-----------------------------------------------# # Конфигурация MIME #-----------------------------------------------# <IfModule mime_module> TypesConfig "%sprogdir%/modules/http/%httpdriver%/conf/mime.types" #AddType application/x-gzip .tgz #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType image/x-icon .ico AddHandler cgi-script .cgi .pl AddType application/x-httpd-php .php .php5 .phtml #AddHandler type-map var AddType text/html .shtml AddOutputFilter INCLUDES .shtml </IfModule> <IfModule mime_magic_module> MIMEMagicFile "%sprogdir%/modules/http/%httpdriver%/conf/magic" </IfModule> #-----------------------------------------------# # Конфигурация Index-а и иконок #-----------------------------------------------# <IfModule dir_module> DirectoryIndex index.php index.html index.htm index.pl </IfModule> <IfModule alias_module> Alias /apacheicons/ "%sprogdir%/modules/http/%httpdriver%/icons/" </IfModule> <Directory "%sprogdir%/modules/http/%httpdriver%/icons"> Options +Indexes +MultiViews AllowOverride None Require all granted </Directory> AddIconByEncoding (CMP,/apacheicons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/apacheicons/text.gif) text/* AddIconByType (IMG,/apacheicons/image2.gif) image/* AddIconByType (SND,/apacheicons/sound2.gif) audio/* AddIconByType (VID,/apacheicons/movie.gif) video/* AddIcon /apacheicons/binary.gif .bin .exe AddIcon /apacheicons/binhex.gif .hqx AddIcon /apacheicons/tar.gif .tar AddIcon /apacheicons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /apacheicons/compressed.gif .Z .z .tgz .gz .zip AddIcon /apacheicons/a.gif .ps .ai .eps AddIcon /apacheicons/layout.gif .html .shtml .htm .pdf AddIcon /apacheicons/text.gif .txt AddIcon /apacheicons/c.gif .c AddIcon /apacheicons/p.gif .pl .py AddIcon /apacheicons/f.gif .for AddIcon /apacheicons/dvi.gif .dvi AddIcon /apacheicons/uuencoded.gif .uu AddIcon /apacheicons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /apacheicons/tex.gif .tex AddIcon /apacheicons/bomb.gif core AddIcon /apacheicons/back.gif .. AddIcon /apacheicons/hand.right.gif README AddIcon /apacheicons/folder.gif ^^DIRECTORY^^ AddIcon /apacheicons/blank.gif ^^BLANKICON^^ DefaultIcon /apacheicons/unknown.gif #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz ReadmeName README.html HeaderName HEADER.html IndexOptions FancyIndexing HTMLTable VersionSort NameWidth=* IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t #-----------------------------------------------# # Подключение языков и кодировок #-----------------------------------------------# #DefaultLanguage nl AddLanguage ca .ca AddLanguage cs .cz .cs AddLanguage da .dk AddLanguage de .de AddLanguage el .el AddLanguage en .en AddLanguage eo .eo AddLanguage es .es AddLanguage et .et AddLanguage fr .fr AddLanguage he .he AddLanguage hr .hr AddLanguage it .it AddLanguage ja .ja AddLanguage ko .ko AddLanguage ltz .ltz AddLanguage nl .nl AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddLanguage pt .pt AddLanguage pt-BR .pt-br AddLanguage ru .ru AddLanguage sv .sv AddLanguage tr .tr AddLanguage zh-CN .zh-cn AddLanguage zh-TW .zh-tw LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW ForceLanguagePriority Prefer Fallback AddCharset us-ascii .ascii .us-ascii AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen AddCharset ISO-8859-3 .iso8859-3 .latin3 AddCharset ISO-8859-4 .iso8859-4 .latin4 AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru AddCharset ISO-8859-6 .iso8859-6 .arb .arabic AddCharset ISO-8859-7 .iso8859-7 .grk .greek AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk AddCharset ISO-8859-10 .iso8859-10 .latin6 AddCharset ISO-8859-13 .iso8859-13 AddCharset ISO-8859-14 .iso8859-14 .latin8 AddCharset ISO-8859-15 .iso8859-15 .latin9 AddCharset ISO-8859-16 .iso8859-16 .latin10 AddCharset ISO-2022-JP .iso2022-jp .jis AddCharset ISO-2022-KR .iso2022-kr .kis AddCharset ISO-2022-CN .iso2022-cn .cis AddCharset Big5 .Big5 .big5 .b5 AddCharset cn-Big5 .cn-big5 AddCharset WINDOWS-1251 .cp-1251 .win-1251 AddCharset CP866 .cp866 AddCharset KOI8 .koi8 AddCharset KOI8-E .koi8-e AddCharset KOI8-r .koi8-r .koi8-ru AddCharset KOI8-U .koi8-u AddCharset KOI8-ru .koi8-uk .ua AddCharset ISO-10646-UCS-2 .ucs2 AddCharset ISO-10646-UCS-4 .ucs4 AddCharset UTF-7 .utf7 AddCharset UTF-8 .utf8 AddCharset UTF-16 .utf16 AddCharset UTF-16BE .utf16be AddCharset UTF-16LE .utf16le AddCharset UTF-32 .utf32 AddCharset UTF-32BE .utf32be AddCharset UTF-32LE .utf32le AddCharset euc-cn .euc-cn AddCharset euc-gb .euc-gb AddCharset euc-jp .euc-jp AddCharset euc-kr .euc-kr AddCharset EUC-TW .euc-tw AddCharset gb2312 .gb2312 .gb AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2 AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4 AddCharset shift_jis .shift_jis .sjis #-----------------------------------------------# # Конфигурация SSL #-----------------------------------------------# <IfModule ssl_module> SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA SSLCompression Off SSLCryptoDevice builtin SSLHonorCipherOrder On Mutex default SSLPassPhraseDialog builtin SSLProtocol ALL -SSLv2 -SSLv3 SSLRandomSeed startup builtin SSLRandomSeed connect builtin SSLSessionCache "shmcb:%sprogdir%/userdata/temp/ssl_scache(512000)" SSLSessionCacheTimeout 300 SSLStrictSNIVHostCheck Off SSLVerifyClient none </IfModule> #-----------------------------------------------# # Исключения User Agent #-----------------------------------------------# BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully #-----------------------------------------------# # Первичный виртуальный хост "по умолчанию" #-----------------------------------------------# <VirtualHost *:%httpport%> DocumentRoot "%sprogdir%/modules/system/html/default" ServerName "default" ServerAlias "default" <Location /openserver/server-status> SetHandler server-status Require all denied Require ip 127.0.0.0/8 ::1/128 Require ip %ips% %allow%Require all granted </Location> <Location /openserver/server-info> SetHandler server-info Require all denied Require ip 127.0.0.0/8 ::1/128 Require ip %ips% %allow%Require all granted </Location> </VirtualHost> <IfModule ssl_module> <VirtualHost *:%httpsport%> DocumentRoot "%sprogdir%/modules/system/html/default" ServerName "default" ServerAlias "default" SSLEngine on #Header always set Strict-Transport-Security "max-age=94608000" #SSLCACertificateFile "" #SSLCertificateChainFile "" SSLCertificateFile "%sprogdir%/userdata/config/cert_files/server.crt" SSLCertificateKeyFile "%sprogdir%/userdata/config/cert_files/server.key" SetEnvIf User-Agent ".*MSIE [1-5].*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 SetEnvIf User-Agent ".*MSIE [6-9].*" \ ssl-unclean-shutdown <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Location /openserver/server-status> SetHandler server-status Require all denied Require ip 127.0.0.0/8 ::1/128 Require ip %ips% %allow%Require all granted </Location> <Location /openserver/server-info> SetHandler server-info Require all denied Require ip 127.0.0.0/8 ::1/128 Require ip %ips% %allow%Require all granted </Location> </VirtualHost> </IfModule> #-----------------------------------------------# # Конец конфигурации хоста "по умолчанию" #-----------------------------------------------#
Header always set Strict-Transport-Security "max-age=94608000"то браузер "запомнит" это принудительное перенаправление на HTTPS.
#Header always set Strict-Transport-Security "max-age=94608000"Во-вторых, если браузер - Chrome, проделайте следующее: