Ver código fonte

updated configs for 0.9.8

Serghey Rodin 12 anos atrás
pai
commit
7b57462860
85 arquivos alterados com 215 adições e 28 exclusões
  1. 1 0
      bin/v-change-web-domain-proxy-tpl
  2. 0 11
      install/0.9.7/rhel/templates/dns/default.tpl
  3. 0 16
      install/0.9.7/rhel/templates/dns/gmail.tpl
  4. 0 0
      install/0.9.8/rhel/apc.ini
  5. 0 0
      install/0.9.8/rhel/clamd.conf
  6. 0 0
      install/0.9.8/rhel/dnsbl.conf
  7. 0 0
      install/0.9.8/rhel/dovecot.conf
  8. 0 0
      install/0.9.8/rhel/dovecot/conf.d/10-auth.conf
  9. 0 0
      install/0.9.8/rhel/dovecot/conf.d/10-logging.conf
  10. 0 0
      install/0.9.8/rhel/dovecot/conf.d/10-mail.conf
  11. 0 0
      install/0.9.8/rhel/dovecot/conf.d/10-master.conf
  12. 0 0
      install/0.9.8/rhel/dovecot/conf.d/10-ssl.conf
  13. 0 0
      install/0.9.8/rhel/dovecot/conf.d/20-imap.conf
  14. 0 0
      install/0.9.8/rhel/dovecot/conf.d/20-pop3.conf
  15. 0 0
      install/0.9.8/rhel/dovecot/conf.d/auth-passwdfile.conf.ext
  16. 0 0
      install/0.9.8/rhel/dovecot/dovecot.conf
  17. 0 0
      install/0.9.8/rhel/exim.conf
  18. 0 0
      install/0.9.8/rhel/freshclam.conf
  19. 0 0
      install/0.9.8/rhel/httpd-pma.conf
  20. 0 0
      install/0.9.8/rhel/httpd-ssl.conf
  21. 0 0
      install/0.9.8/rhel/httpd-status.conf
  22. 0 0
      install/0.9.8/rhel/httpd-webmail.conf
  23. 0 0
      install/0.9.8/rhel/httpd.conf
  24. 0 0
      install/0.9.8/rhel/httpd.log
  25. 0 0
      install/0.9.8/rhel/monit/clamd.conf
  26. 0 0
      install/0.9.8/rhel/monit/dovecot.conf
  27. 0 0
      install/0.9.8/rhel/monit/exim.conf
  28. 0 0
      install/0.9.8/rhel/monit/httpd.conf
  29. 0 0
      install/0.9.8/rhel/monit/mysql.conf
  30. 0 0
      install/0.9.8/rhel/monit/nginx.conf
  31. 0 0
      install/0.9.8/rhel/monit/spamassassin.conf
  32. 0 0
      install/0.9.8/rhel/monit/sshd.conf
  33. 0 0
      install/0.9.8/rhel/monit/vesta-nginx.conf
  34. 0 0
      install/0.9.8/rhel/monit/vesta-php.conf
  35. 0 0
      install/0.9.8/rhel/mysql-512.cnf
  36. 0 0
      install/0.9.8/rhel/mysql.cnf
  37. 0 0
      install/0.9.8/rhel/named.conf
  38. 0 0
      install/0.9.8/rhel/nginx-status.conf
  39. 16 1
      install/0.9.8/rhel/nginx.conf
  40. 0 0
      install/0.9.8/rhel/packages/default.pkg
  41. 0 0
      install/0.9.8/rhel/packages/gainsboro.pkg
  42. 0 0
      install/0.9.8/rhel/packages/palegreen.pkg
  43. 0 0
      install/0.9.8/rhel/packages/slategrey.pkg
  44. 0 0
      install/0.9.8/rhel/pg_hba.conf
  45. 0 0
      install/0.9.8/rhel/pma.conf
  46. 0 0
      install/0.9.8/rhel/proftpd.conf
  47. 0 0
      install/0.9.8/rhel/roundcube-db.conf
  48. 0 0
      install/0.9.8/rhel/roundcube-driver.php
  49. 0 0
      install/0.9.8/rhel/roundcube-main.conf
  50. 0 0
      install/0.9.8/rhel/roundcube-pw.conf
  51. 0 0
      install/0.9.8/rhel/spam-blocks.conf
  52. 0 0
      install/0.9.8/rhel/sudoers.conf
  53. 9 0
      install/0.9.8/rhel/templates/dns/default.tpl
  54. 14 0
      install/0.9.8/rhel/templates/dns/gmail.tpl
  55. 0 0
      install/0.9.8/rhel/templates/web/awstats/awstats.tpl
  56. 0 0
      install/0.9.8/rhel/templates/web/awstats/index.tpl
  57. 0 0
      install/0.9.8/rhel/templates/web/awstats/nav.tpl
  58. 0 0
      install/0.9.8/rhel/templates/web/httpd/default.stpl
  59. 0 0
      install/0.9.8/rhel/templates/web/httpd/default.tpl
  60. 0 0
      install/0.9.8/rhel/templates/web/httpd/hosting.stpl
  61. 0 0
      install/0.9.8/rhel/templates/web/httpd/hosting.tpl
  62. 0 0
      install/0.9.8/rhel/templates/web/httpd/phpcgi.sh
  63. 0 0
      install/0.9.8/rhel/templates/web/httpd/phpcgi.stpl
  64. 0 0
      install/0.9.8/rhel/templates/web/httpd/phpcgi.tpl
  65. 22 0
      install/0.9.8/rhel/templates/web/httpd/phpfcgid.sh
  66. 36 0
      install/0.9.8/rhel/templates/web/httpd/phpfcgid.stpl
  67. 28 0
      install/0.9.8/rhel/templates/web/httpd/phpfcgid.tpl
  68. 46 0
      install/0.9.8/rhel/templates/web/nginx/caching.stpl
  69. 43 0
      install/0.9.8/rhel/templates/web/nginx/caching.tpl
  70. 0 0
      install/0.9.8/rhel/templates/web/nginx/default.stpl
  71. 0 0
      install/0.9.8/rhel/templates/web/nginx/default.tpl
  72. 0 0
      install/0.9.8/rhel/templates/web/nginx/proxy_ip.tpl
  73. 0 0
      install/0.9.8/rhel/templates/web/skel/document_errors/403.html
  74. 0 0
      install/0.9.8/rhel/templates/web/skel/document_errors/404.html
  75. 0 0
      install/0.9.8/rhel/templates/web/skel/document_errors/50x.html
  76. 0 0
      install/0.9.8/rhel/templates/web/skel/public_html/index.html
  77. 0 0
      install/0.9.8/rhel/templates/web/skel/public_html/robots.txt
  78. 0 0
      install/0.9.8/rhel/templates/web/skel/public_shtml/index.html
  79. 0 0
      install/0.9.8/rhel/templates/web/skel/public_shtml/robots.txt
  80. 0 0
      install/0.9.8/rhel/templates/web/suspend/.htaccess
  81. 0 0
      install/0.9.8/rhel/templates/web/suspend/index.html
  82. 0 0
      install/0.9.8/rhel/templates/web/webalizer/webalizer.tpl
  83. 0 0
      install/0.9.8/rhel/vesta.log
  84. 0 0
      install/0.9.8/rhel/vsftpd.conf
  85. 0 0
      install/0.9.8/rhel/whmcs-module.php

+ 1 - 0
bin/v-change-web-domain-proxy-tpl

@@ -58,6 +58,7 @@ del_web_config
 # Add new vhost
 PROXY="$template"
 PROXY_EXT="$extentions"
+tpl_file="$WEBTPL/$PROXY_SYSTEM/$template.tpl"
 upd_web_domain_values
 add_web_config
 chown root:$user $conf

+ 0 - 11
install/0.9.7/rhel/templates/dns/default.tpl

@@ -1,11 +0,0 @@
-ID='11' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='12' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='13' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns3%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='14' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns4%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='21' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='22' RECORD='mail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='23' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='24' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='25' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='26' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='mail' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='27' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% ?all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 16
install/0.9.7/rhel/templates/dns/gmail.tpl

@@ -1,16 +0,0 @@
-ID='11' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='12' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='13' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns3%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='14' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns4%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='21' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='22' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='23' RECORD='localhost' TYPE='A' PRIORITY='' VALUE='127.0.0.1' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='24' RECORD='mail' TYPE='CNAME' PRIORITY='' VALUE='ghs.google.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='25' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='26' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='27' RECORD='@' TYPE='MX' PRIORITY='1' VALUE='ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='28' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT1.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='29' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT2.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='30' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ASPMX2.GOOGLEMAIL.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='31' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ASPMX3.GOOGLEMAIL.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='32' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% ?all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 0
install/0.9.7/rhel/apc.ini → install/0.9.8/rhel/apc.ini


+ 0 - 0
install/0.9.7/rhel/clamd.conf → install/0.9.8/rhel/clamd.conf


+ 0 - 0
install/0.9.7/rhel/dnsbl.conf → install/0.9.8/rhel/dnsbl.conf


+ 0 - 0
install/0.9.7/rhel/dovecot.conf → install/0.9.8/rhel/dovecot.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/10-auth.conf → install/0.9.8/rhel/dovecot/conf.d/10-auth.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/10-logging.conf → install/0.9.8/rhel/dovecot/conf.d/10-logging.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/10-mail.conf → install/0.9.8/rhel/dovecot/conf.d/10-mail.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/10-master.conf → install/0.9.8/rhel/dovecot/conf.d/10-master.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/10-ssl.conf → install/0.9.8/rhel/dovecot/conf.d/10-ssl.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/20-imap.conf → install/0.9.8/rhel/dovecot/conf.d/20-imap.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/20-pop3.conf → install/0.9.8/rhel/dovecot/conf.d/20-pop3.conf


+ 0 - 0
install/0.9.7/rhel/dovecot/conf.d/auth-passwdfile.conf.ext → install/0.9.8/rhel/dovecot/conf.d/auth-passwdfile.conf.ext


+ 0 - 0
install/0.9.7/rhel/dovecot/dovecot.conf → install/0.9.8/rhel/dovecot/dovecot.conf


+ 0 - 0
install/0.9.7/rhel/exim.conf → install/0.9.8/rhel/exim.conf


+ 0 - 0
install/0.9.7/rhel/freshclam.conf → install/0.9.8/rhel/freshclam.conf


+ 0 - 0
install/0.9.7/rhel/httpd-pma.conf → install/0.9.8/rhel/httpd-pma.conf


+ 0 - 0
install/0.9.7/rhel/httpd-ssl.conf → install/0.9.8/rhel/httpd-ssl.conf


+ 0 - 0
install/0.9.7/rhel/httpd-status.conf → install/0.9.8/rhel/httpd-status.conf


+ 0 - 0
install/0.9.7/rhel/httpd-webmail.conf → install/0.9.8/rhel/httpd-webmail.conf


+ 0 - 0
install/0.9.7/rhel/httpd.conf → install/0.9.8/rhel/httpd.conf


+ 0 - 0
install/0.9.7/rhel/httpd.log → install/0.9.8/rhel/httpd.log


+ 0 - 0
install/0.9.7/rhel/monit/clamd.conf → install/0.9.8/rhel/monit/clamd.conf


+ 0 - 0
install/0.9.7/rhel/monit/dovecot.conf → install/0.9.8/rhel/monit/dovecot.conf


+ 0 - 0
install/0.9.7/rhel/monit/exim.conf → install/0.9.8/rhel/monit/exim.conf


+ 0 - 0
install/0.9.7/rhel/monit/httpd.conf → install/0.9.8/rhel/monit/httpd.conf


+ 0 - 0
install/0.9.7/rhel/monit/mysql.conf → install/0.9.8/rhel/monit/mysql.conf


+ 0 - 0
install/0.9.7/rhel/monit/nginx.conf → install/0.9.8/rhel/monit/nginx.conf


+ 0 - 0
install/0.9.7/rhel/monit/spamassassin.conf → install/0.9.8/rhel/monit/spamassassin.conf


+ 0 - 0
install/0.9.7/rhel/monit/sshd.conf → install/0.9.8/rhel/monit/sshd.conf


+ 0 - 0
install/0.9.7/rhel/monit/vesta-nginx.conf → install/0.9.8/rhel/monit/vesta-nginx.conf


+ 0 - 0
install/0.9.7/rhel/monit/vesta-php.conf → install/0.9.8/rhel/monit/vesta-php.conf


+ 0 - 0
install/0.9.7/rhel/mysql-512.cnf → install/0.9.8/rhel/mysql-512.cnf


+ 0 - 0
install/0.9.7/rhel/mysql.cnf → install/0.9.8/rhel/mysql.cnf


+ 0 - 0
install/0.9.7/rhel/named.conf → install/0.9.8/rhel/named.conf


+ 0 - 0
install/0.9.7/rhel/nginx-status.conf → install/0.9.8/rhel/nginx-status.conf


+ 16 - 1
install/0.9.7/rhel/nginx.conf → install/0.9.8/rhel/nginx.conf

@@ -37,7 +37,8 @@ http {
                         '"$status" $body_bytes_sent "$http_referer" '
                         '"$http_user_agent" "$http_x_forwarded_for"';
     log_format  bytes   '$body_bytes_sent';
-    access_log          /var/log/nginx/access.log  main;
+    #access_log          /var/log/nginx/access.log  main;
+    access_log off;
 
 
     # Mime settings
@@ -79,6 +80,20 @@ http {
     error_page          502 503 504  /error/50x.html;
 
 
+    # Cache
+    proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m;
+    proxy_temp_path  /var/cache/nginx/temp;
+    proxy_ignore_headers Expires Cache-Control;
+    proxy_cache_use_stale error timeout invalid_header http_502;
+    proxy_cache_valid any 3d;
+
+    map $http_cookie $no_cache {
+        default 0;
+        ~SESS 1;
+        ~wordpress_logged_in 1;
+    }
+
+
     # Wildcard include
     include             /etc/nginx/conf.d/*.conf;
 }

+ 0 - 0
install/0.9.7/rhel/packages/default.pkg → install/0.9.8/rhel/packages/default.pkg


+ 0 - 0
install/0.9.7/rhel/packages/gainsboro.pkg → install/0.9.8/rhel/packages/gainsboro.pkg


+ 0 - 0
install/0.9.7/rhel/packages/palegreen.pkg → install/0.9.8/rhel/packages/palegreen.pkg


+ 0 - 0
install/0.9.7/rhel/packages/slategrey.pkg → install/0.9.8/rhel/packages/slategrey.pkg


+ 0 - 0
install/0.9.7/rhel/pg_hba.conf → install/0.9.8/rhel/pg_hba.conf


+ 0 - 0
install/0.9.7/rhel/pma.conf → install/0.9.8/rhel/pma.conf


+ 0 - 0
install/0.9.7/rhel/proftpd.conf → install/0.9.8/rhel/proftpd.conf


+ 0 - 0
install/0.9.7/rhel/roundcube-db.conf → install/0.9.8/rhel/roundcube-db.conf


+ 0 - 0
install/0.9.7/rhel/roundcube-driver.php → install/0.9.8/rhel/roundcube-driver.php


+ 0 - 0
install/0.9.7/rhel/roundcube-main.conf → install/0.9.8/rhel/roundcube-main.conf


+ 0 - 0
install/0.9.7/rhel/roundcube-pw.conf → install/0.9.8/rhel/roundcube-pw.conf


+ 0 - 0
install/0.9.7/rhel/spam-blocks.conf → install/0.9.8/rhel/spam-blocks.conf


+ 0 - 0
install/0.9.7/rhel/sudoers.conf → install/0.9.8/rhel/sudoers.conf


+ 9 - 0
install/0.9.8/rhel/templates/dns/default.tpl

@@ -0,0 +1,9 @@
+ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='4' RECORD='mail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='5' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='6' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='7' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='8' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='mail' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='9' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% ?all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 14 - 0
install/0.9.8/rhel/templates/dns/gmail.tpl

@@ -0,0 +1,14 @@
+ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='4' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='5' RECORD='localhost' TYPE='A' PRIORITY='' VALUE='127.0.0.1' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='6' RECORD='mail' TYPE='CNAME' PRIORITY='' VALUE='ghs.google.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='7' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='8' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='9' RECORD='@' TYPE='MX' PRIORITY='1' VALUE='ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='10' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT1.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='11' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT2.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='12' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ASPMX2.GOOGLEMAIL.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='13' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ASPMX3.GOOGLEMAIL.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
+ID='14' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% ?all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 0
install/0.9.7/rhel/templates/web/awstats/awstats.tpl → install/0.9.8/rhel/templates/web/awstats/awstats.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/awstats/index.tpl → install/0.9.8/rhel/templates/web/awstats/index.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/awstats/nav.tpl → install/0.9.8/rhel/templates/web/awstats/nav.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/default.stpl → install/0.9.8/rhel/templates/web/httpd/default.stpl


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/default.tpl → install/0.9.8/rhel/templates/web/httpd/default.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/hosting.stpl → install/0.9.8/rhel/templates/web/httpd/hosting.stpl


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/hosting.tpl → install/0.9.8/rhel/templates/web/httpd/hosting.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/phpcgi.sh → install/0.9.8/rhel/templates/web/httpd/phpcgi.sh


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/phpcgi.stpl → install/0.9.8/rhel/templates/web/httpd/phpcgi.stpl


+ 0 - 0
install/0.9.7/rhel/templates/web/apache/phpcgi.tpl → install/0.9.8/rhel/templates/web/httpd/phpcgi.tpl


+ 22 - 0
install/0.9.8/rhel/templates/web/httpd/phpfcgid.sh

@@ -0,0 +1,22 @@
+#!/bin/bash
+# Adding php wrapper
+user="$1"
+domain="$2"
+ip="$3"
+home_dir="$4"
+docroot="$5"
+
+wrapper_script="#!/bin/sh
+PHPRC=/usr/local/lib
+export PHPRC
+export PHP_FCGI_MAX_REQUESTS=1000
+export PHP_FCGI_CHILDREN=20
+exec  /usr/local/bin/php
+"
+wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter"
+
+echo "$wrapper_script" > $wrapper_file
+chown $user:$user $wrapper_file
+chmod -f 751 $wrapper_file
+
+exit 0

+ 36 - 0
install/0.9.8/rhel/templates/web/httpd/phpfcgid.stpl

@@ -0,0 +1,36 @@
+<VirtualHost %ip%:%web_ssl_port%>
+
+    ServerName %domain_idn%
+    %alias_string%
+    ServerAdmin %email%
+    DocumentRoot %sdocroot%
+    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
+    Alias /vstats/ %home%/%user%/web/%domain%/stats/
+    Alias /error/ %home%/%user%/web/%domain%/document_errors/
+    SuexecUserGroup %user% %group%
+    CustomLog /var/log/httpd/domains/%domain%.bytes bytes
+    CustomLog /var/log/httpd/domains/%domain%.log combined
+    ErrorLog /var/log/httpd/domains/%domain%.error.log
+    <Directory %sdocroot%>
+        SSLRequireSSL
+        AllowOverride All
+        Options +Includes -Indexes +ExecCGI
+        <Files *.php>
+          SetHandler fcgid-script
+        </Files>
+        FCGIWrapper %home%/%user%/web/%domain%/cgi-bin/fcgi-starter .php
+    </Directory>
+    <Directory %home%/%user%/web/%domain%/stats>
+        AllowOverride All
+    </Directory>
+    php_admin_value open_basedir none
+    SSLEngine on
+    SSLVerifyClient none
+    SSLCertificateFile %ssl_crt%
+    SSLCertificateKeyFile %ssl_key%
+    %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
+
+    Include %home%/%user%/conf/web/shttpd.%domain%.conf*
+
+</VirtualHost>
+

+ 28 - 0
install/0.9.8/rhel/templates/web/httpd/phpfcgid.tpl

@@ -0,0 +1,28 @@
+<VirtualHost %ip%:%web_port%>
+
+    ServerName %domain_idn%
+    %alias_string%
+    ServerAdmin %email%
+    DocumentRoot %docroot%
+    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
+    Alias /vstats/ %home%/%user%/web/%domain%/stats/
+    Alias /error/ %home%/%user%/web/%domain%/document_errors/
+    SuexecUserGroup %user% %group%
+    CustomLog /var/log/httpd/domains/%domain%.bytes bytes
+    CustomLog /var/log/httpd/domains/%domain%.log combined
+    ErrorLog /var/log/httpd/domains/%domain%.error.log
+    <Directory %docroot%>
+        AllowOverride All
+        Options +Includes -Indexes +ExecCGI
+        <Files *.php>
+          SetHandler fcgid-script
+        </Files>
+        FCGIWrapper %home%/%user%/web/%domain%/cgi-bin/fcgi-starter .php
+    </Directory>
+    <Directory %home%/%user%/web/%domain%/stats>
+        AllowOverride All
+    </Directory>
+    Include %home%/%user%/conf/web/httpd.%domain%.conf*
+
+</VirtualHost>
+

+ 46 - 0
install/0.9.8/rhel/templates/web/nginx/caching.stpl

@@ -0,0 +1,46 @@
+server {
+    listen      %ip%:%proxy_ssl_port%;
+    server_name %domain_idn% %alias_idn%;
+    ssl         on;
+    ssl_certificate      %ssl_pem%;
+    ssl_certificate_key  %ssl_key%;
+    error_log  /var/log/httpd/domains/%domain%.error.log error;
+
+    location / {
+        proxy_pass      http://%ip%:%web_port%;
+
+        proxy_cache cache;
+        proxy_cache_valid 10m;
+        proxy_cache_valid 404 1m;
+        proxy_no_cache $no_cache;
+        proxy_cache_bypass $no_cache;
+        proxy_cache_bypass $cookie_session $http_x_update;
+
+        location ~* ^.+\.(%proxy_extentions%)$ {
+            proxy_cache    off;
+            root           %docroot%;
+            access_log     /var/log/httpd/domains/%domain%.log combined;
+            access_log     /var/log/httpd/domains/%domain%.bytes bytes;
+            expires        max;
+            try_files      $uri @fallback;
+        }
+    }
+
+    location /error/ {
+        alias   %home%/%user%/web/%domain%/document_errors/;
+    }
+
+    location @fallback {
+        proxy_pass      http://%ip%:%web_port%;
+    }
+
+    location ~ /\.ht    {return 404;}
+    location ~ /\.svn/  {return 404;}
+    location ~ /\.git/  {return 404;}
+    location ~ /\.hg/   {return 404;}
+    location ~ /\.bzr/  {return 404;}
+
+    disable_symlinks if_not_owner from=%home%/%user%;
+
+    include %home%/%user%/conf/nginx.%domain%.conf*;
+}

+ 43 - 0
install/0.9.8/rhel/templates/web/nginx/caching.tpl

@@ -0,0 +1,43 @@
+server {
+    listen      %ip%:%proxy_port%;
+    server_name %domain_idn% %alias_idn%;
+    error_log  /var/log/httpd/domains/%domain%.error.log error;
+
+    location / {
+        proxy_pass      http://%ip%:%web_port%;
+
+        proxy_cache cache;
+        proxy_cache_valid 10m;
+        proxy_cache_valid 404 1m;
+        proxy_no_cache $no_cache;
+        proxy_cache_bypass $no_cache;
+        proxy_cache_bypass $cookie_session $http_x_update;
+
+        location ~* ^.+\.(%proxy_extentions%)$ {
+            proxy_cache    off;
+            root           %docroot%;
+            access_log     /var/log/httpd/domains/%domain%.log combined;
+            access_log     /var/log/httpd/domains/%domain%.bytes bytes;
+            expires        max;
+            try_files      $uri @fallback;
+        }
+    }
+
+    location /error/ {
+        alias   %home%/%user%/web/%domain%/document_errors/;
+    }
+
+    location @fallback {
+        proxy_pass      http://%ip%:%web_port%;
+    }
+
+    location ~ /\.ht    {return 404;}
+    location ~ /\.svn/  {return 404;}
+    location ~ /\.git/  {return 404;}
+    location ~ /\.hg/   {return 404;}
+    location ~ /\.bzr/  {return 404;}
+
+    disable_symlinks if_not_owner from=%home%/%user%;
+
+    include %home%/%user%/conf/nginx.%domain%.conf*;
+}

+ 0 - 0
install/0.9.7/rhel/templates/web/nginx/default.stpl → install/0.9.8/rhel/templates/web/nginx/default.stpl


+ 0 - 0
install/0.9.7/rhel/templates/web/nginx/default.tpl → install/0.9.8/rhel/templates/web/nginx/default.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/nginx/ip.tpl → install/0.9.8/rhel/templates/web/nginx/proxy_ip.tpl


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/document_errors/403.html → install/0.9.8/rhel/templates/web/skel/document_errors/403.html


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/document_errors/404.html → install/0.9.8/rhel/templates/web/skel/document_errors/404.html


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/document_errors/50x.html → install/0.9.8/rhel/templates/web/skel/document_errors/50x.html


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/public_html/index.html → install/0.9.8/rhel/templates/web/skel/public_html/index.html


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/public_html/robots.txt → install/0.9.8/rhel/templates/web/skel/public_html/robots.txt


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/public_shtml/index.html → install/0.9.8/rhel/templates/web/skel/public_shtml/index.html


+ 0 - 0
install/0.9.7/rhel/templates/web/skel/public_shtml/robots.txt → install/0.9.8/rhel/templates/web/skel/public_shtml/robots.txt


+ 0 - 0
install/0.9.7/rhel/templates/web/suspend/.htaccess → install/0.9.8/rhel/templates/web/suspend/.htaccess


+ 0 - 0
install/0.9.7/rhel/templates/web/suspend/index.html → install/0.9.8/rhel/templates/web/suspend/index.html


+ 0 - 0
install/0.9.7/rhel/templates/web/webalizer/webalizer.tpl → install/0.9.8/rhel/templates/web/webalizer/webalizer.tpl


+ 0 - 0
install/0.9.7/rhel/vesta.log → install/0.9.8/rhel/vesta.log


+ 0 - 0
install/0.9.7/rhel/vsftpd.conf → install/0.9.8/rhel/vsftpd.conf


+ 0 - 0
install/0.9.7/rhel/whmcs-module.php → install/0.9.8/rhel/whmcs-module.php