Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. SetEnvIf X-Forwarded-Proto https HTTPS=1
  2.  
  3. ServerAdmin webmaster@internet.az.pl
  4.  
  5. ServerName internet.az.pl
  6.  
  7. ServerAlias www.internet.az.pl
  8.  
  9. DocumentRoot "/home/admin2/komputery"
  10.  
  11. DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp
  12.  
  13. ScriptAlias /cgi-bin/ "/home/admin2/internet.az.pl/cgi-bin/"
  14.  
  15. <IfModule mod_fastcgi.c>
  16. Alias /internet.az.pl.0fake "/home/admin2/komputery/internet.az.pl.0fake"
  17. #FastCGIExternalServer "/home/admin2/komputery/internet.az.pl.0fake" -host 127.0.0.1:52474 -idle-timeout 300 -pass-header Authorization
  18. FastCGIExternalServer "/home/admin2/komputery/internet.az.pl.0fake" -socket /opt/configs/php-fpm/sock/admin2.sock -idle-timeout 300 -pass-header Authorization
  19. AddType application/x-httpd-fastphp .php
  20. Action application/x-httpd-fastphp /internet.az.pl.0fake
  21. <Files "internet.az.pl.0fake">
  22. RewriteCond %{REQUEST_URI} !internet.az.pl.0fake
  23. </Files>
  24. </IfModule>
  25.  
  26. <Directory "/home/admin2/komputery/">
  27. AllowOverride All
  28. <IfVersion < 2.4>
  29. Order allow,deny
  30. Allow from all
  31. </IfVersion>
  32. <IfVersion >= 2.4>
  33. Require all granted
  34. </IfVersion>
  35. Options +ExecCGI
  36. <FilesMatch .(cgi|pl)$>
  37. SetHandler cgi-script
  38. </FilesMatch>
  39. </Directory>
  40.  
  41. <IfModule mod_php5.c>
  42. php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
  43. php_admin_value sendmail_from "internet.az.pl"
  44. Include /home/kloxo/client/admin2/prefork.inc
  45. </IfModule>
  46.  
  47. <Location "/">
  48. Allow from all
  49. Options -Indexes -FollowSymlinks +SymLinksIfOwnerMatch
  50.  
  51. <IfModule mod_php5.c>
  52. php_admin_value open_basedir "/home/admin2:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script:/home/kloxo/httpd/disable/:/usr/bin"
  53. </IfModule>
  54. </Location>
  55.  
  56. CustomLog "/home/httpd/internet.az.pl/stats/internet.az.pl-custom_log" combined
  57. ErrorLog "/home/httpd/internet.az.pl/stats/internet.az.pl-error_log"
  58.  
  59. ServerTokens Prod
  60.  
  61. ServerRoot "/etc/httpd"
  62.  
  63. # MR -- must be disable here because can not overrite! -- importance for proxy-to-apache
  64. # Listen 80
  65.  
  66. Include conf.modules.d/*.conf
  67.  
  68. User apache
  69. Group apache
  70.  
  71. ServerAdmin root@localhost
  72.  
  73. <Directory />
  74. AllowOverride none
  75. Require all denied
  76. </Directory>
  77.  
  78. DocumentRoot "/var/www/html"
  79.  
  80. <Directory "/var/www">
  81. AllowOverride None
  82. # Allow open access:
  83. Require all granted
  84. </Directory>
  85.  
  86. # Further relax access to the default document root:
  87. <Directory "/var/www/html">
  88. Options Indexes FollowSymLinks
  89. AllowOverride None
  90. Require all granted
  91. </Directory>
  92.  
  93. <IfModule dir_module>
  94. DirectoryIndex index.html
  95. </IfModule>
  96.  
  97. <Files ".ht*">
  98. Require all denied
  99. </Files>
  100.  
  101. ErrorLog "logs/error_log"
  102.  
  103. LogLevel error
  104.  
  105. <IfModule log_config_module>
  106. ## MR -- change %h to %a to fix mod_remoteip issue
  107. LogFormat "%a %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
  108. LogFormat "%a %l %u %t "%r" %>s %b" common
  109.  
  110. <IfModule logio_module>
  111. LogFormat "%a %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
  112. </IfModule>
  113.  
  114. CustomLog "logs/access_log" combined
  115. </IfModule>
  116.  
  117. <IfModule alias_module>
  118. # Alias /webpath /full/filesystem/path
  119. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  120. </IfModule>
  121.  
  122. <Directory "/var/www/cgi-bin">
  123. AllowOverride None
  124. Options None
  125. Require all granted
  126. </Directory>
  127.  
  128. <IfModule mime_module>
  129. TypesConfig /etc/mime.types
  130.  
  131. AddType application/x-compress .Z
  132. AddType application/x-gzip .gz .tgz
  133.  
  134. #AddHandler cgi-script .cgi
  135. #AddHandler type-map var
  136.  
  137. AddType text/html .shtml
  138. AddOutputFilter INCLUDES .shtml
  139. </IfModule>
  140.  
  141. AddDefaultCharset UTF-8
  142.  
  143. <IfModule mime_magic_module>
  144. MIMEMagicFile conf/magic
  145. </IfModule>
  146.  
  147. Alias /error/ "/home/kloxo/httpd/error/"
  148.  
  149. <IfModule mod_negotiation.c>
  150. <IfModule mod_include.c>
  151. <Directory "/home/kloxo/httpd/error/">
  152. AllowOverride None
  153. Options IncludesNoExec
  154. AddOutputFilter Includes html
  155. AddHandler type-map var
  156. <IfVersion < 2.4>
  157. Order allow,deny
  158. Allow from all
  159. </IfVersion>
  160. <IfVersion >= 2.4>
  161. Require all granted
  162. </IfVersion>
  163. LanguagePriority en es de fr
  164. ForceLanguagePriority Prefer Fallback
  165. </Directory>
  166.  
  167. #ErrorDocument 500 "The server made a boo boo."
  168. #ErrorDocument 404 /missing.html
  169. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
  170. #ErrorDocument 402 http://www.example.com/subscription_info.html
  171.  
  172. ErrorDocument 401 /error/401.html
  173. ErrorDocument 403 /error/403.html
  174. ErrorDocument 404 /error/404.html
  175. ErrorDocument 500 /error/500.html
  176. ErrorDocument 501 /error/501.html
  177. ErrorDocument 503 /error/503.html
  178. ErrorDocument 504 /error/504.html
  179. </IfModule>
  180. </IfModule>
  181.  
  182. EnableSendfile on
  183.  
  184. IncludeOptional conf.d/*.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement