Advertisement
Guest User

syno httpd.conf

a guest
Jun 18th, 2014
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. ServerRoot "/etc/httpd"
  2.  
  3. Listen 80
  4.  
  5. LoadModule authn_file_module modules/mod_authn_file.so
  6. LoadModule authn_default_module modules/mod_authn_default.so
  7. LoadModule authz_host_module modules/mod_authz_host.so
  8. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  9. LoadModule authz_user_module modules/mod_authz_user.so
  10. LoadModule authz_owner_module modules/mod_authz_owner.so
  11. LoadModule authz_default_module modules/mod_authz_default.so
  12. LoadModule auth_basic_module modules/mod_auth_basic.so
  13. LoadModule auth_digest_module modules/mod_auth_digest.so
  14. LoadModule include_module modules/mod_include.so
  15. LoadModule filter_module modules/mod_filter.so
  16. LoadModule deflate_module modules/mod_deflate.so
  17. LoadModule log_config_module modules/mod_log_config.so
  18. #LoadModule logio_module modules/mod_logio.so
  19. LoadModule env_module modules/mod_env.so
  20. LoadModule mime_magic_module modules/mod_mime_magic.so
  21. LoadModule headers_module modules/mod_headers.so
  22. LoadModule setenvif_module modules/mod_setenvif.so
  23. LoadModule proxy_module modules/mod_proxy.so
  24. LoadModule proxy_http_module modules/mod_proxy_http.so
  25. LoadModule mime_module modules/mod_mime.so
  26. LoadModule status_module modules/mod_status.so
  27. LoadModule autoindex_module modules/mod_autoindex.so
  28. LoadModule asis_module modules/mod_asis.so
  29. LoadModule cgid_module modules/mod_cgid.so
  30. LoadModule negotiation_module modules/mod_negotiation.so
  31. LoadModule dir_module modules/mod_dir.so
  32. LoadModule actions_module modules/mod_actions.so
  33. LoadModule userdir_module modules/mod_userdir.so
  34. LoadModule alias_module modules/mod_alias.so
  35. LoadModule rewrite_module modules/mod_rewrite.so
  36.  
  37. User http
  38. Group http
  39.  
  40. ServerAdmin admin
  41. ServerName *:80
  42.  
  43. <Directory />
  44. Options FollowSymLinks
  45. AllowOverride All
  46.  
  47. RewriteEngine on
  48. RewriteCond %{HTTP:Transfer-Encoding} chunked
  49. RewriteRule ^(.*)$ http://localhost:412/$1 [P]
  50. </Directory>
  51.  
  52. <Directory "/var/services/web">
  53. Options MultiViews FollowSymLinks ExecCGI
  54. AllowOverride All
  55. Order allow,deny
  56. Allow from all
  57. </Directory>
  58.  
  59. <Directory "/usr/syno/synoman/phpsrc/web">
  60. Options MultiViews FollowSymLinks ExecCGI
  61. AllowOverride None
  62. Order allow,deny
  63. Allow from all
  64. </Directory>
  65.  
  66. <Directory "/usr/syno/synoman/empty/web">
  67. Options MultiViews FollowSymLinks ExecCGI
  68. AllowOverride None
  69. Order allow,deny
  70. Allow from all
  71. </Directory>
  72.  
  73. <IfModule dir_module>
  74. DirectoryIndex index.html index.htm index.cgi index.php index.php5
  75. </IfModule>
  76.  
  77. <FilesMatch "^\.ht">
  78. Order allow,deny
  79. Deny from all
  80. Satisfy All
  81. </FilesMatch>
  82.  
  83. ErrorLog /var/log/httpd/user-error_log
  84. #ErrorLog /dev/null
  85. TraceEnable off
  86.  
  87. LogLevel error
  88.  
  89. <IfModule log_config_module>
  90. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  91. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  92.  
  93. <IfModule logio_module>
  94. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  95. </IfModule>
  96.  
  97. CustomLog /dev/null combined
  98. #CustomLog /var/log/httpd/user-access_log combined
  99. </IfModule>
  100.  
  101. <IfModule alias_module>
  102. Alias /webman/pingpong.php /usr/syno/synoman/phpsrc/pingpong.php
  103. </IfModule>
  104.  
  105. ScriptSock /run/httpd/user-cgisock
  106.  
  107. DefaultType text/plain
  108.  
  109. <IfModule mime_module>
  110. TypesConfig conf/mime.types
  111. AddEncoding x-compress Z
  112. AddEncoding x-gzip gz tgz
  113. AddType application/x-compress .Z
  114. AddType application/x-gzip .gz .tgz
  115. AddType image/x-icon .ico
  116. AddHandler cgi-script .cgi
  117. </IfModule>
  118.  
  119. MIMEMagicFile conf/magic
  120.  
  121. <IfDefine HAVE_PHP>
  122. ErrorDocument 403 /webdefault/sample.php?status=403&from=user
  123. ErrorDocument 404 /webdefault/sample.php?status=404&from=user
  124. ErrorDocument 500 /webdefault/sample.php?status=500&from=user
  125. Include conf/extra/mod_fastcgi.conf
  126. </IfDefine>
  127.  
  128. EnableMMAP off
  129.  
  130. Include conf/extra/httpd-mpm.conf-user
  131. Include conf/extra/httpd-autoindex.conf-user
  132. Include conf/extra/httpd-languages.conf-user
  133. Include conf/extra/httpd-default.conf-user
  134.  
  135. <IfDefine SSL>
  136. <IfDefine !SPDY>
  137. LoadModule ssl_module modules/mod_ssl.so
  138. Include conf/extra/httpd-ssl.conf
  139. </IfDefine>
  140. <IfDefine SPDY>
  141. LoadModule ssl_module modules/mod_ssl_npn.so
  142. Include conf/extra/httpd-ssl.conf
  143. Include conf/extra/mod_spdy.conf
  144. </IfDefine>
  145. </IfDefine>
  146.  
  147. <IfModule deflate_module>
  148. DeflateCompressionLevel 2
  149. AddOutputFilterByType DEFLATE text/html text/plain text/xml
  150. AddOutputFilter DEFLATE js css
  151. BrowserMatch ^Mozilla/4 gzip-only-text/html
  152. BrowserMatch ^Mozilla/4\.[0678] no-gzip
  153. BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html
  154. </IfModule>
  155.  
  156.  
  157. <Files *.js>
  158. Header unset Etag
  159. </Files>
  160.  
  161. <Files *.css>
  162. Header unset Etag
  163. </Files>
  164.  
  165. # For CVS-2001-1446
  166. <Files ~ "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
  167. Order allow,deny
  168. Deny from all
  169. Satisfy All
  170. </Files>
  171.  
  172. # For @eaDir
  173. <DirectoryMatch "@eaDir">
  174. Order allow,deny
  175. Deny from all
  176. Satisfy All
  177. </DirectoryMatch>
  178.  
  179. # For CVE-2003-1418
  180. FileETag MTime Size
  181.  
  182. <VirtualHost *:80>
  183. Include sites-enabled-user/*.conf
  184. </VirtualHost>
  185.  
  186. include conf/extra/mod_xsendfile.conf-user
  187. Include conf/extra/httpd-reqtimeout.conf
  188.  
  189.  
  190. Listen 36331
  191. <VirtualHost *:36331>
  192. Include /etc/httpd/sites-enabled-user/*.conf
  193. </VirtualHost>
  194. Include /etc/httpd/sites-enabled-user/httpd-vhost.conf-user
  195. DocumentRoot "/var/services/web"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement