Guest User

problem_htaccess_conf

a guest
Jun 9th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. <Directory /var/www/HOMEPAGE>
  2. AllowOverride All
  3. Order Deny,Allow
  4. Deny from all
  5. </Directory>
  6.  
  7. <VirtualHost *:80>
  8. DocumentRoot /var/www/HOMEPAGE/web
  9.  
  10. ServerName HOMEPAGE
  11. ServerAlias www.HOMEPAGE
  12. ServerAdmin admin@HOMEPAGE
  13.  
  14. ErrorLog /var/log/ispconfig/httpd/HOMEPAGE/error.log
  15.  
  16. Alias /error/ "/var/www/HOMEPAGE/web/error/"
  17. ErrorDocument 400 /error/400.html
  18. ErrorDocument 401 /error/401.html
  19. ErrorDocument 403 /error/403.html
  20. ErrorDocument 404 /error/404.html
  21. ErrorDocument 405 /error/405.html
  22. ErrorDocument 500 /error/500.html
  23. ErrorDocument 502 /error/502.html
  24. ErrorDocument 503 /error/503.html
  25.  
  26. <IfModule mod_ssl.c>
  27. </IfModule>
  28.  
  29. <Directory /var/www/HOMEPAGE/web>
  30. Options +FollowSymLinks
  31. AllowOverride All
  32. Order allow,deny
  33. Allow from all
  34. </Directory>
  35. <Directory /var/www/clients/client0/web2/web>
  36. Options +FollowSymLinks
  37. AllowOverride All
  38. Order allow,deny
  39. Allow from all
  40. </Directory>
  41.  
  42.  
  43.  
  44.  
  45. # suexec enabled
  46. <IfModule mod_suexec.c>
  47. SuexecUserGroup web2 client0
  48. </IfModule>
  49. # Clear PHP settings of this website
  50. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  51. SetHandler None
  52. </FilesMatch>
  53. # php as fast-cgi enabled
  54. # For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
  55. <IfModule mod_fcgid.c>
  56. IdleTimeout 300
  57. ProcessLifeTime 3600
  58. # MaxProcessCount 1000
  59. DefaultMinClassProcessCount 0
  60. DefaultMaxClassProcessCount 100
  61. IPCConnectTimeout 3
  62. IPCCommTimeout 600
  63. BusyTimeout 3600
  64. </IfModule>
  65. <Directory /var/www/HOMEPAGE/web>
  66. <FilesMatch "\.php[345]?$">
  67. SetHandler fcgid-script
  68. </FilesMatch>
  69. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php
  70. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php3
  71. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php4
  72. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php5
  73. Options +ExecCGI
  74. AllowOverride All
  75. Order allow,deny
  76. Allow from all
  77. </Directory>
  78. <Directory /var/www/clients/client0/web2/web>
  79. <FilesMatch "\.php[345]?$">
  80. SetHandler fcgid-script
  81. </FilesMatch>
  82. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php
  83. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php3
  84. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php4
  85. FCGIWrapper /var/www/php-fcgi-scripts/web2/.php-fcgi-starter .php5
  86. Options +ExecCGI
  87. AllowOverride All
  88. Order allow,deny
  89. Allow from all
  90. </Directory>
  91.  
  92.  
  93. # add support for apache mpm_itk
  94. <IfModule mpm_itk_module>
  95. AssignUserId web2 client0
  96. </IfModule>
  97.  
  98. <IfModule mod_dav_fs.c>
  99. # Do not execute PHP files in webdav directory
  100. <Directory /var/www/clients/client0/web2/webdav>
  101. <ifModule mod_security2.c>
  102. SecRuleRemoveById 960015
  103. SecRuleRemoveById 960032
  104. </ifModule>
  105. <FilesMatch "\.ph(p3?|tml)$">
  106. SetHandler None
  107. </FilesMatch>
  108. </Directory>
  109. DavLockDB /var/www/clients/client0/web2/tmp/DavLock
  110. # DO NOT REMOVE THE COMMENTS!
  111. # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
  112. # WEBDAV BEGIN
  113. # WEBDAV END
  114. </IfModule>
  115.  
  116.  
  117. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment