Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------------------------------------------#
- # Основная конфигурация сервера
- #---------------------------------------------#
- ServerRoot "%sprogdir%/modules/http/%httpdriver%"
- DocumentRoot "%ssitedir%/"
- Listen %ip%:%httpport%
- Listen %ip%:%httpsport%
- NameVirtualHost %ip%:%httpport%
- NameVirtualHost %ip%:%httpsport%
- ServerName %ips%
- ServerTokens Prod
- ServerSignature Off
- Timeout 300
- KeepAlive On
- MaxKeepAliveRequests 100
- KeepAliveTimeout 5
- UseCanonicalName Off
- AccessFileName .htaccess
- HostnameLookups Off
- ExtendedStatus On
- PidFile "%sprogdir%/userdata/temp/httpd.pid"
- ThreadsPerChild 32
- ThreadStackSize 8388608
- MaxRequestsPerChild 0
- MaxRanges 200
- EnableMMAP off
- EnableSendfile off
- Win32DisableAcceptEx On
- ScriptInterpreterSource script
- %httpcharset%
- #---------------------------------------------#
- # Подключение модулей
- #---------------------------------------------#
- LoadModule actions_module modules/mod_actions.so
- LoadModule alias_module modules/mod_alias.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_alias_module modules/mod_authn_alias.so
- #LoadModule authn_anon_module modules/mod_authn_anon.so
- #LoadModule authn_dbd_module modules/mod_authn_dbd.so
- #LoadModule authn_dbm_module modules/mod_authn_dbm.so
- LoadModule authn_default_module modules/mod_authn_default.so
- LoadModule authn_file_module modules/mod_authn_file.so
- #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
- #LoadModule authz_dbm_module modules/mod_authz_dbm.so
- LoadModule authz_default_module modules/mod_authz_default.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 cache_module modules/mod_cache.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 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 disk_cache_module modules/mod_disk_cache.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 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 ldap_module modules/mod_ldap.so
- #LoadModule logio_module modules/mod_logio.so
- LoadModule log_config_module modules/mod_log_config.so
- #LoadModule log_forensic_module modules/mod_log_forensic.so
- #LoadModule mem_cache_module modules/mod_mem_cache.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_ftp_module modules/mod_proxy_ftp.so
- #LoadModule proxy_http_module modules/mod_proxy_http.so
- #LoadModule reqtimeout_module modules/mod_reqtimeout.so
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule setenvif_module modules/mod_setenvif.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
- PHPINIDir "%sprogdir%/userdata/temp/config"
- LoadModule php5_module "%sprogdir%/modules/php/%phpdriver%/php5apache2_2.dll"
- #---------------------------------------------#
- # Настройка прав доступа к серверу
- #---------------------------------------------#
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- Order Deny,Allow
- Deny from all
- </Directory>
- <Directory "%ssitedir%/*">
- AllowOverride All
- Options -MultiViews +Indexes +FollowSymLinks +IncludesNoExec +Includes +ExecCGI
- <LimitExcept GET POST HEAD>
- Order deny,allow
- Deny from all
- </LimitExcept>
- </Directory>
- <Directory "%sprogdir%/modules/system/html/openserver">
- AllowOverride None
- Options -MultiViews -Indexes -FollowSymLinks -IncludesNoExec -Includes -ExecCGI
- Order deny,allow
- Deny from all
- Allow from 127.0.0.0/8 ::1/128
- Allow from %ips%
- %allow%Allow from all
- <LimitExcept GET POST HEAD>
- Order deny,allow
- Deny from all
- </LimitExcept>
- AddDefaultCharset Off
- <IfModule dir_module>
- DirectoryIndex index.php
- </IfModule>
- </Directory>
- <Directory "%sprogdir%/modules/system/html/default">
- AllowOverride None
- Options -MultiViews -Indexes -FollowSymLinks -IncludesNoExec -Includes -ExecCGI
- Order deny,allow
- Allow from all
- <LimitExcept GET POST HEAD>
- Order deny,allow
- Deny from all
- </LimitExcept>
- AddDefaultCharset Off
- <IfModule dir_module>
- DirectoryIndex index.html
- </IfModule>
- </Directory>
- <Directory "/cgi-bin">
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
- </Directory>
- <FilesMatch "^\.ht">
- Require all denied
- </FilesMatch>
- <IfModule alias_module>
- Alias /openserver/ "%sprogdir%/modules/system/html/openserver/"
- </IfModule>
- #---------------------------------------------#
- # Конфигурация сообщений об ошибках
- #---------------------------------------------#
- ErrorLog "%sprogdir%/userdata/logs/%httpdriver%_error.log"
- LogLevel warn
- <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>
- # You need to enable mod_logio.c to use %I and %O
- LogFormat "%v: %a %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
- </IfModule>
- CustomLog "%sprogdir%/userdata/logs/%httpdriver%_queries.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
- # Multi-language error messages
- Alias /apacheerror/ "%sprogdir%/modules/http/%httpdriver%/error/"
- <Directory "%sprogdir%/modules/http/%httpdriver%/error">
- AllowOverride None
- Options IncludesNoExec
- AddOutputFilter Includes html
- AddHandler type-map var
- Order allow,deny
- Allow from all
- 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
- #---------------------------------------------#
- DefaultType text/plain
- <IfModule mime_module>
- #
- # TypesConfig points to the file containing the list of mappings from
- # filename extension to MIME-type.
- #
- TypesConfig conf/mime.types
- #
- # AddType allows you to add to or override the MIME configuration
- # file specified in TypesConfig for specific file types.
- #
- #AddType application/x-gzip .tgz
- #
- # AddEncoding allows you to have certain browsers uncompress
- # information on the fly. Note: Not all browsers support this.
- #
- #AddEncoding x-compress .Z
- #AddEncoding x-gzip .gz .tgz
- #
- # If the AddEncoding directives above are commented-out, then you
- # probably should define those extensions to indicate media types:
- #
- AddType application/x-compress .Z
- AddType application/x-gzip .gz .tgz
- #
- # AddHandler allows you to map certain file extensions to "handlers":
- # actions unrelated to filetype. These can be either built into the server
- # or added with the Action directive (see below)
- #
- # To use CGI scripts outside of ScriptAliased directories:
- # (You will also need to add "ExecCGI" to the "Options" directive.)
- #
- AddHandler cgi-script .cgi .pl
- AddType application/x-httpd-php .php .php5 .phtml
- # For type maps (negotiated resources):
- #AddHandler type-map var
- #
- # Filters allow you to process content before it is sent to the client.
- #
- # To parse .shtml files for server-side includes (SSI):
- # (You will also need to add "Includes" to the "Options" directive.)
- #
- AddType text/html .shtml
- AddOutputFilter INCLUDES .shtml
- </IfModule>
- #MIMEMagicFile conf/magic
- #---------------------------------------------#
- # Конфигурация Index-а и иконок
- #---------------------------------------------#
- <IfModule dir_module>
- DirectoryIndex index.php index.html index.htm index.pl
- </IfModule>
- # Fancy directory listings
- IndexOptions FancyIndexing HTMLTable VersionSort
- Alias /apacheicons/ "%sprogdir%/modules/http/%httpdriver%/icons/"
- <Directory "%sprogdir%/modules/http/%httpdriver%/icons">
- Options Indexes MultiViews
- AllowOverride None
- Order allow,deny
- Allow from all
- </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
- IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
- #---------------------------------------------#
- # Подключение языков и кодировок
- #---------------------------------------------#
- 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
- # For russian, more than one charset is used (depends on client, mostly):
- 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
- #Not sure how euc-tw got in - IANA doesn't list it???
- 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
- #---------------------------------------------#
- AddType application/x-x509-ca-cert .crt
- AddType application/x-pkcs7-crl .crl
- SSLMutex default
- <IfModule ssl_module>
- SSLRandomSeed startup builtin
- SSLRandomSeed connect builtin
- SSLSessionCache none
- SSLSessionCacheTimeout 300
- SSLMutex default
- SSLVerifyClient none
- SSLProxyEngine off
- SSLProtocol -all +TLSv1 +SSLv3
- SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
- SSLCertificateFile "%sprogdir%/userdata/config/server.crt"
- SSLCertificateKeyFile "%sprogdir%/userdata/config/server.key"
- </IfModule>
- #---------------------------------------------#
- # Первичный виртуальный хост "по умолчанию"
- #---------------------------------------------#
- <VirtualHost %ip%:%httpport%>
- DocumentRoot "%sprogdir%/modules/system/html/default"
- ServerName "qastcoars-games.com" #Было default
- ServerAlias "www.qastcoars-games.com/" #Было default
- <Location /openserver/>
- Deny from all
- </Location>
- </VirtualHost>
- <VirtualHost %ip%:%httpsport%>
- SSLEngine on
- BrowserMatch ".*MSIE.*" \
- nokeepalive ssl-unclean-shutdown \
- downgrade-1.0 force-response-1.0
- DocumentRoot "%sprogdir%/modules/system/html/default"
- ServerName "qastcoars-games.com" #Было default
- ServerAlias "www.qastcoars-games.com" #Было default
- <Location /openserver/>
- Deny from all
- </Location>
- </VirtualHost>
- #---------------------------------------------#
- # Конец конфигурации хоста "по умолчанию" #
- #---------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement