gkaroly

tegyjot.hu ispconfig

Sep 9th, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.97 KB | None | 0 0
  1. cat /etc/apache2/sites-available/tegyjot.hu.vhost
  2.  
  3. <Directory /var/www/tegyjot.hu>
  4. AllowOverride None
  5. Require all denied
  6. </Directory>
  7.  
  8. <VirtualHost *:80>
  9.  
  10. DocumentRoot /var/www/clients/client1/web1/web
  11.  
  12. ServerName tegyjot.hu
  13. ServerAlias www.tegyjot.hu
  14. ServerAdmin [email protected]
  15.  
  16.  
  17. ErrorLog /var/log/ispconfig/httpd/tegyjot.hu/error.log
  18.  
  19. Alias /error/ "/var/www/tegyjot.hu/web/error/"
  20. ErrorDocument 400 /error/400.html
  21. ErrorDocument 401 /error/401.html
  22. ErrorDocument 403 /error/403.html
  23. ErrorDocument 404 /error/404.html
  24. ErrorDocument 405 /error/405.html
  25. ErrorDocument 500 /error/500.html
  26. ErrorDocument 502 /error/502.html
  27. ErrorDocument 503 /error/503.html
  28.  
  29. <IfModule mod_ssl.c>
  30. </IfModule>
  31.  
  32. <Directory /var/www/tegyjot.hu/web>
  33. # Clear PHP settings of this website
  34. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  35. SetHandler None
  36. </FilesMatch>
  37. Options +FollowSymLinks
  38. AllowOverride All
  39. Require all granted
  40. </Directory>
  41. <Directory /var/www/clients/client1/web1/web>
  42. # Clear PHP settings of this website
  43. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  44. SetHandler None
  45. </FilesMatch>
  46. Options +FollowSymLinks
  47. AllowOverride All
  48. Require all granted
  49. </Directory>
  50.  
  51.  
  52.  
  53.  
  54. # suexec enabled
  55. <IfModule mod_suexec.c>
  56. SuexecUserGroup web1 client1
  57. </IfModule>
  58. <IfModule mod_fastcgi.c>
  59. <Directory /var/www/clients/client1/web1/cgi-bin>
  60. Require all granted
  61. </Directory>
  62. <Directory /var/www/tegyjot.hu/web>
  63. <FilesMatch "\.php[345]?$">
  64. SetHandler php-fcgi
  65. </FilesMatch>
  66. </Directory>
  67. <Directory /var/www/clients/client1/web1/web>
  68. <FilesMatch "\.php[345]?$">
  69. SetHandler php-fcgi
  70. </FilesMatch>
  71. </Directory>
  72. Action php-fcgi /php-fcgi virtual
  73. Alias /php-fcgi /var/www/clients/client1/web1/cgi-bin/php-fcgi-*-80-tegyjot.hu
  74. FastCgiExternalServer /var/www/clients/client1/web1/cgi-bin/php-fcgi-*-80-tegyjot.hu -idle-timeout 300 -socket /var/lib/php7.3-fpm/web1.sock -pass-header Authorization -pass-header Content-Type
  75. </IfModule>
  76. <IfModule mod_proxy_fcgi.c>
  77. #ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ unix:///var/lib/php7.3-fpm/web1.sock|fcgi://localhost//var/www/clients/client1/web1/web/$1
  78. <Directory /var/www/clients/client1/web1/web>
  79. <FilesMatch "\.php[345]?$">
  80. SetHandler "proxy:unix:/var/lib/php7.3-fpm/web1.sock|fcgi://localhost"
  81. </FilesMatch>
  82. </Directory>
  83. </IfModule>
  84.  
  85.  
  86. RewriteEngine on
  87. RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/
  88. RewriteRule ^ - [END]
  89. RewriteCond %{HTTP_HOST} ^www\.tegyjot\.hu$ [NC]
  90. RewriteRule ^(.*)$ http://tegyjot.hu$1 [R=301,NE,L]
  91. RewriteCond %{HTTPS} off
  92. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
  93.  
  94. # add support for apache mpm_itk
  95. <IfModule mpm_itk_module>
  96. AssignUserId web1 client1
  97. </IfModule>
  98.  
  99. <IfModule mod_dav_fs.c>
  100. # Do not execute PHP files in webdav directory
  101. <Directory /var/www/clients/client1/web1/webdav>
  102. <ifModule mod_security2.c>
  103. SecRuleRemoveById 960015
  104. SecRuleRemoveById 960032
  105. </ifModule>
  106. <FilesMatch "\.ph(p3?|tml)$">
  107. SetHandler None
  108. </FilesMatch>
  109. </Directory>
  110. DavLockDB /var/www/clients/client1/web1/tmp/DavLock
  111. # DO NOT REMOVE THE COMMENTS!
  112. # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
  113. # WEBDAV BEGIN
  114. # WEBDAV END
  115. </IfModule>
  116.  
  117.  
  118.  
  119. </VirtualHost>
  120.  
  121.  
  122. <VirtualHost *:443>
  123.  
  124. DocumentRoot /var/www/clients/client1/web1/web
  125.  
  126. ServerName tegyjot.hu
  127. ServerAlias www.tegyjot.hu
  128. ServerAdmin [email protected]
  129.  
  130.  
  131. ErrorLog /var/log/ispconfig/httpd/tegyjot.hu/error.log
  132.  
  133. Alias /error/ "/var/www/tegyjot.hu/web/error/"
  134. ErrorDocument 400 /error/400.html
  135. ErrorDocument 401 /error/401.html
  136. ErrorDocument 403 /error/403.html
  137. ErrorDocument 404 /error/404.html
  138. ErrorDocument 405 /error/405.html
  139. ErrorDocument 500 /error/500.html
  140. ErrorDocument 502 /error/502.html
  141. ErrorDocument 503 /error/503.html
  142.  
  143. <IfModule mod_ssl.c>
  144. SSLEngine on
  145. SSLProtocol All -SSLv2 -SSLv3
  146. # SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
  147. SSLHonorCipherOrder on
  148. # <IfModule mod_headers.c>
  149. # Header always add Strict-Transport-Security "max-age=15768000"
  150. # </IfModule>
  151. SSLCertificateFile /var/www/clients/client1/web1/ssl/tegyjot.hu.crt
  152. SSLCertificateKeyFile /var/www/clients/client1/web1/ssl/tegyjot.hu.key
  153. SSLUseStapling on
  154. SSLStaplingResponderTimeout 5
  155. SSLStaplingReturnResponderErrors off
  156. </IfModule>
  157.  
  158. <Directory /var/www/tegyjot.hu/web>
  159. # Clear PHP settings of this website
  160. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  161. SetHandler None
  162. </FilesMatch>
  163. Options +FollowSymLinks
  164. AllowOverride All
  165. Require all granted
  166. </Directory>
  167. <Directory /var/www/clients/client1/web1/web>
  168. # Clear PHP settings of this website
  169. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  170. SetHandler None
  171. </FilesMatch>
  172. Options +FollowSymLinks
  173. AllowOverride All
  174. Require all granted
  175. </Directory>
  176.  
  177.  
  178.  
  179.  
  180. # suexec enabled
  181. <IfModule mod_suexec.c>
  182. SuexecUserGroup web1 client1
  183. </IfModule>
  184. <IfModule mod_fastcgi.c>
  185. <Directory /var/www/clients/client1/web1/cgi-bin>
  186. Require all granted
  187. </Directory>
  188. <Directory /var/www/tegyjot.hu/web>
  189. <FilesMatch "\.php[345]?$">
  190. SetHandler php-fcgi
  191. </FilesMatch>
  192. </Directory>
  193. <Directory /var/www/clients/client1/web1/web>
  194. <FilesMatch "\.php[345]?$">
  195. SetHandler php-fcgi
  196. </FilesMatch>
  197. </Directory>
  198. Action php-fcgi /php-fcgi virtual
  199. Alias /php-fcgi /var/www/clients/client1/web1/cgi-bin/php-fcgi-*-443-tegyjot.hu
  200. FastCgiExternalServer /var/www/clients/client1/web1/cgi-bin/php-fcgi-*-443-tegyjot.hu -idle-timeout 300 -socket /var/lib/php7.3-fpm/web1.sock -pass-header Authorization -pass-header Content-Type
  201. </IfModule>
  202. <IfModule mod_proxy_fcgi.c>
  203. #ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ unix:///var/lib/php7.3-fpm/web1.sock|fcgi://localhost//var/www/clients/client1/web1/web/$1
  204. <Directory /var/www/clients/client1/web1/web>
  205. <FilesMatch "\.php[345]?$">
  206. SetHandler "proxy:unix:/var/lib/php7.3-fpm/web1.sock|fcgi://localhost"
  207. </FilesMatch>
  208. </Directory>
  209. </IfModule>
  210.  
  211.  
  212. RewriteEngine on
  213. RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/
  214. RewriteRule ^ - [END]
  215. RewriteCond %{HTTP_HOST} ^www\.tegyjot\.hu$ [NC]
  216. RewriteRule ^(.*)$ https://tegyjot.hu$1 [R=301,NE,L]
  217.  
  218. # add support for apache mpm_itk
  219. <IfModule mpm_itk_module>
  220. AssignUserId web1 client1
  221. </IfModule>
  222.  
  223. <IfModule mod_dav_fs.c>
  224. # Do not execute PHP files in webdav directory
  225. <Directory /var/www/clients/client1/web1/webdav>
  226. <ifModule mod_security2.c>
  227. SecRuleRemoveById 960015
  228. SecRuleRemoveById 960032
  229. </ifModule>
  230. <FilesMatch "\.ph(p3?|tml)$">
  231. SetHandler None
  232. </FilesMatch>
  233. </Directory>
  234. DavLockDB /var/www/clients/client1/web1/tmp/DavLock
  235. # DO NOT REMOVE THE COMMENTS!
  236. # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
  237. # WEBDAV BEGIN
  238. # WEBDAV END
  239. </IfModule>
  240.  
  241.  
  242.  
  243. </VirtualHost>
  244.  
  245. <IfModule mod_ssl.c>
  246. SSLStaplingCache shmcb:/var/run/ocsp(128000)
  247. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment