mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
New vesta installer
This commit is contained in:
parent
dce52823fb
commit
e892898874
1545 changed files with 59733 additions and 3626 deletions
30
install/rhel/5/GPG.txt
Normal file
30
install/rhel/5/GPG.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1.4.5 (GNU/Linux)
|
||||
|
||||
mQGiBExUOVkRBACPJeB3bdrAggHlFpkaB1aRDXDz7clRg6jyEzdMYHhrniSyjhAH
|
||||
+b53zE4iapCHFIamEG2Fa7zS2lSx7068AmqHsZK5jwmyhTVVYuTtbebj1C4Y5ToW
|
||||
icHhy4ullB7qeDmAod6EY4YSx2kYO3dR/QLk5QM4lWuV/OLdXWTeoKiiYwCg0UAP
|
||||
yUkBXgNcKXrFqoJelmG3JEMEAIYM7CGwVd47FsM1UCu56HNQPErxLoUPBUlAQFtx
|
||||
OMOFDMEm7qH7ve8FgGGRL9oHF7mSJ3y7HgM1BF5MHkKz6FjDrT1U5+Lub6oI2e90
|
||||
gfCMGlQAzUm9o+fijfbhKoEQ/xQRkUoqWEaf9zlFx1/4+NH+Qz/L8ZDTHvSLvUgt
|
||||
HyZlA/916St5suAUugXu9PeLRVqboiHjhz0JWKneQEQ2QcTu8lhHsu/mZTWL9FYn
|
||||
XwtiCJLZT8bpBSfl8Oeqhof1+sPgnv7t/LuKQ6JJmyJ46Sa453wfrs+xs32hKAe+
|
||||
ZN0VGBmHe7NhuhW/LdM0KMMr/LHuJJJAgmt+XVHi2RFwsZvdMbQkVmVzdGEgUGFj
|
||||
a2FnZXMgPGJ1aWxkZXJAdmVzdGFjcC5jb20+iGAEExECACAFAkxUOVkCGwMGCwkI
|
||||
BwMCBBUCCAMEFgIDAQIeAQIXgAAKCRBbjeFzoXeCtp6dAKDQfeTPHi6hCgg4L+sx
|
||||
LEjXvVdLOwCfe9yfr+en+uz6qst0QBT2cAwB+q+5Ag0ETFQ5bBAIAJYZa9pV9l/R
|
||||
OUFgIvdJd1mvzJpRAXsRBBJc22WuOHp22Uj+lMKrJMTRQZvFBvk9s7Mb1/ACXrL4
|
||||
vIbsKqXNAlVFp9kF1tKV2ejZ1MrJaQ4819bIkyG0lJzjl6u9lzJopF7ie00YHKC6
|
||||
1rltLaevfFjUXq1DoYZBg42hT/SOj+3+2D0e9qcxeuxXbsjnvwtxxUkWcP/ftOSt
|
||||
HsAAbM1YtwGl9+fZLWG9+WIKNOE9kp+h2ywZtFA4v/Ms2op7oZGAL7C95k1EgLrH
|
||||
mOZ0B2oKOLctV1z9keWksPN/osyG7Mg8ljv8zF3XwQFqHOHRntDqSWoFBMvJBkNS
|
||||
vtm6u5WyKd8ABAsH/0RbeWVA+JqpZ24Rl57XoDRPRzno0m0EnkJMXr22uBq1lPg8
|
||||
VkadrGOshFXpM3Rho57f3U7fwKmShQXGEV7RHsWcxcfwOSKVJtI468sDuYXc2l1f
|
||||
5nFo+rCtVh3BBq+JtZFKX0x53BesCT/M7l33Dfm9MDi34tEdPTPjumBIH1dowYdv
|
||||
9/2HPlPp4NZte7gOO/VIAiS+jJ30aBn09t8duW5md7/rkOPIM5It05LGCLjb9hVm
|
||||
R9zTwzw30fIrkeyWZdAbk76lH8u8j6PX30U6RRzb33+XIFR4ab3nlyqOQOpoTqyG
|
||||
cs7B02sgBbyC+RG1EYfcelSEvLXkR8mjcqjs+MCISQQYEQIACQUCTFQ5bAIbDAAK
|
||||
CRBbjeFzoXeCtlpcAKDLh59svtq/Gn99O9ZZw0nBjWv6sACfffDxPhCP1F852Jab
|
||||
d8P1WGhr2Q8=
|
||||
=Z1Jj
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
12
install/rhel/5/clamav/clamd.service
Normal file
12
install/rhel/5/clamav/clamd.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description = clamd scanner (clamd) daemon
|
||||
After = syslog.target nss-lookup.target network.target
|
||||
|
||||
[Service]
|
||||
Type = simple
|
||||
ExecStart = /usr/sbin/clamd -c /etc/clamd.conf --nofork=yes
|
||||
Restart = on-failure
|
||||
PrivateTmp = true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
BIN
install/rhel/5/dovecot.tar.gz
Normal file
BIN
install/rhel/5/dovecot.tar.gz
Normal file
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
protocols = imap imaps pop3 pop3s
|
||||
log_path = /var/log/dovecot.log
|
||||
ssl_cert_file = /etc/pki/tls/certs/exim.pem
|
||||
ssl_key_file = /etc/pki/tls/private/exim.pem
|
||||
ssl_cert_file = /usr/local/vesta/ssl/certificate.crt
|
||||
ssl_key_file = /usr/local/vesta/ssl/certificate.key
|
||||
|
||||
disable_plaintext_auth = no
|
||||
mail_location = maildir:%h/mail/%d/%n
|
BIN
install/rhel/5/epel-release.rpm
Normal file
BIN
install/rhel/5/epel-release.rpm
Normal file
Binary file not shown.
|
@ -108,7 +108,7 @@ acl_check_rcpt:
|
|||
require message = relay not permitted
|
||||
domains = +local_domains : +relay_to_domains
|
||||
|
||||
deny message = smtp auth required
|
||||
deny message = smtp auth requried
|
||||
sender_domains = +local_domains
|
||||
!authenticated = *
|
||||
|
BIN
install/rhel/5/fail2ban.tar.gz
Normal file
BIN
install/rhel/5/fail2ban.tar.gz
Normal file
Binary file not shown.
BIN
install/rhel/5/firewall.tar.gz
Normal file
BIN
install/rhel/5/firewall.tar.gz
Normal file
Binary file not shown.
|
@ -11,6 +11,6 @@ PROTOCOL='TCP' PORT='143'
|
|||
PROTOCOL='TCP' PORT='3306'
|
||||
PROTOCOL='TCP' PORT='5432'
|
||||
PROTOCOL='TCP' PORT='8080'
|
||||
PROTOCOL='TCP' PORT='8443'
|
||||
PROTOCOL='TCP' PORT='8433'
|
||||
PROTOCOL='TCP' PORT='8083'
|
||||
PROTOCOL='TCP' PORT='12000:12100'
|
|
@ -1,6 +1,6 @@
|
|||
RULE='1' ACTION='ACCEPT' PROTOCOL='ICMP' PORT='0' IP='0.0.0.0/0' COMMENT='PING' SUSPENDED='no' TIME='17:13:48' DATE='2014-09-16'
|
||||
RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='8083' IP='0.0.0.0/0' COMMENT='VESTA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
|
||||
RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='127.0.0.1/32' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
|
||||
RULE='3' ACTION='ACCEPT' PROTOCOL='TCP' PORT='3306,5432' IP='0.0.0.0/0' COMMENT='DB' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
|
||||
RULE='4' ACTION='ACCEPT' PROTOCOL='TCP' PORT='143,993' IP='0.0.0.0/0' COMMENT='IMAP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
|
||||
RULE='5' ACTION='ACCEPT' PROTOCOL='TCP' PORT='110,995' IP='0.0.0.0/0' COMMENT='POP3' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
|
||||
RULE='6' ACTION='ACCEPT' PROTOCOL='TCP' PORT='25,465,587,2525' IP='0.0.0.0/0' COMMENT='SMTP' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'
|
8
install/rhel/5/httpd/ruid2.conf
Normal file
8
install/rhel/5/httpd/ruid2.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
LoadModule ruid2_module modules/mod_ruid2.so
|
||||
|
||||
<IfModule mod_ruid2.c>
|
||||
RMode config
|
||||
RDefaultUidGid apache apache
|
||||
RUidGid apache apache
|
||||
RGroups apache
|
||||
</IfModule>
|
12
install/rhel/5/logrotate/nginx
Normal file
12
install/rhel/5/logrotate/nginx
Normal file
|
@ -0,0 +1,12 @@
|
|||
/var/log/nginx/*log /var/log/nginx/domains/*log {
|
||||
create 0644 nginx nginx
|
||||
daily
|
||||
rotate 10
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
|
||||
endscript
|
||||
}
|
38
install/rhel/5/mariadb/my-large.cnf
Normal file
38
install/rhel/5/mariadb/my-large.cnf
Normal file
|
@ -0,0 +1,38 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
symbolic-links=0
|
||||
|
||||
skip-external-locking
|
||||
key_buffer_size = 256M
|
||||
max_allowed_packet = 32M
|
||||
table_open_cache = 256
|
||||
sort_buffer_size = 1M
|
||||
read_buffer_size = 1M
|
||||
read_rnd_buffer_size = 4M
|
||||
myisam_sort_buffer_size = 64M
|
||||
thread_cache_size = 8
|
||||
query_cache_size= 16M
|
||||
thread_concurrency = 8
|
||||
|
||||
#innodb_use_native_aio = 0
|
||||
innodb_file_per_table
|
||||
|
||||
max_connections=200
|
||||
max_user_connections=50
|
||||
wait_timeout=10
|
||||
interactive_timeout=50
|
||||
long_query_time=5
|
||||
|
||||
#slow_query_log=1
|
||||
#slow_query_log_file=/var/log/mysql-slow-queries.log
|
||||
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mariadb/mariadb.log
|
||||
pid-file=/var/run/mariadb/mariadb.pid
|
||||
|
||||
#
|
||||
# include all files from the config directory
|
||||
#
|
||||
!includedir /etc/my.cnf.d
|
37
install/rhel/5/mariadb/my-medium.cnf
Normal file
37
install/rhel/5/mariadb/my-medium.cnf
Normal file
|
@ -0,0 +1,37 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
symbolic-links=0
|
||||
|
||||
skip-external-locking
|
||||
key_buffer_size = 16M
|
||||
max_allowed_packet = 16M
|
||||
table_open_cache = 64
|
||||
sort_buffer_size = 512K
|
||||
net_buffer_length = 8K
|
||||
read_buffer_size = 256K
|
||||
read_rnd_buffer_size = 512K
|
||||
myisam_sort_buffer_size = 8M
|
||||
|
||||
#innodb_use_native_aio = 0
|
||||
innodb_file_per_table
|
||||
|
||||
max_connections=70
|
||||
max_user_connections=30
|
||||
wait_timeout=10
|
||||
interactive_timeout=50
|
||||
long_query_time=5
|
||||
|
||||
#slow_query_log=1
|
||||
#slow_query_log_file=/var/log/mysql-slow-queries.log
|
||||
|
||||
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mariadb/mariadb.log
|
||||
pid-file=/var/run/mariadb/mariadb.pid
|
||||
|
||||
#
|
||||
# include all files from the config directory
|
||||
#
|
||||
!includedir /etc/my.cnf.d
|
35
install/rhel/5/mariadb/my-small.cnf
Normal file
35
install/rhel/5/mariadb/my-small.cnf
Normal file
|
@ -0,0 +1,35 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
symbolic-links=0
|
||||
|
||||
skip-external-locking
|
||||
key_buffer_size = 32K
|
||||
max_allowed_packet = 8M
|
||||
table_open_cache = 4
|
||||
sort_buffer_size = 128K
|
||||
read_buffer_size = 256K
|
||||
read_rnd_buffer_size = 256K
|
||||
net_buffer_length = 2K
|
||||
thread_stack = 240K
|
||||
|
||||
#innodb_use_native_aio = 0
|
||||
innodb_file_per_table
|
||||
|
||||
max_connections=50
|
||||
max_user_connections=25
|
||||
wait_timeout=10
|
||||
interactive_timeout=50
|
||||
long_query_time=5
|
||||
|
||||
#slow_query_log=1
|
||||
#slow_query_log_file=/var/log/mysql-slow-queries.log
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mariadb/mariadb.log
|
||||
pid-file=/var/run/mariadb/mariadb.pid
|
||||
|
||||
#
|
||||
# include all files from the config directory
|
||||
#
|
||||
!includedir /etc/my.cnf.d
|
38
install/rhel/5/mysqld/my-large.cnf
Normal file
38
install/rhel/5/mysqld/my-large.cnf
Normal file
|
@ -0,0 +1,38 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
symbolic-links=0
|
||||
|
||||
skip-external-locking
|
||||
key_buffer_size = 256M
|
||||
max_allowed_packet = 32M
|
||||
table_open_cache = 256
|
||||
sort_buffer_size = 1M
|
||||
read_buffer_size = 1M
|
||||
read_rnd_buffer_size = 4M
|
||||
myisam_sort_buffer_size = 64M
|
||||
thread_cache_size = 8
|
||||
query_cache_size= 16M
|
||||
thread_concurrency = 8
|
||||
|
||||
#innodb_use_native_aio = 0
|
||||
innodb_file_per_table
|
||||
|
||||
max_connections=200
|
||||
max_user_connections=50
|
||||
wait_timeout=10
|
||||
interactive_timeout=50
|
||||
long_query_time=5
|
||||
|
||||
#slow_query_log=1
|
||||
#slow_query_log_file=/var/log/mysql-slow-queries.log
|
||||
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mysqld.log
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
|
||||
#
|
||||
# include all files from the config directory
|
||||
#
|
||||
!includedir /etc/my.cnf.d
|
37
install/rhel/5/mysqld/my-medium.cnf
Normal file
37
install/rhel/5/mysqld/my-medium.cnf
Normal file
|
@ -0,0 +1,37 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
symbolic-links=0
|
||||
|
||||
skip-external-locking
|
||||
key_buffer_size = 16M
|
||||
max_allowed_packet = 16M
|
||||
table_open_cache = 64
|
||||
sort_buffer_size = 512K
|
||||
net_buffer_length = 8K
|
||||
read_buffer_size = 256K
|
||||
read_rnd_buffer_size = 512K
|
||||
myisam_sort_buffer_size = 8M
|
||||
|
||||
#innodb_use_native_aio = 0
|
||||
innodb_file_per_table
|
||||
|
||||
max_connections=70
|
||||
max_user_connections=30
|
||||
wait_timeout=10
|
||||
interactive_timeout=50
|
||||
long_query_time=5
|
||||
|
||||
#slow_query_log=1
|
||||
#slow_query_log_file=/var/log/mysql-slow-queries.log
|
||||
|
||||
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mysqld.log
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
|
||||
#
|
||||
# include all files from the config directory
|
||||
#
|
||||
!includedir /etc/my.cnf.d
|
35
install/rhel/5/mysqld/my-small.cnf
Normal file
35
install/rhel/5/mysqld/my-small.cnf
Normal file
|
@ -0,0 +1,35 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
symbolic-links=0
|
||||
|
||||
skip-external-locking
|
||||
key_buffer_size = 32K
|
||||
max_allowed_packet = 8M
|
||||
table_open_cache = 4
|
||||
sort_buffer_size = 128K
|
||||
read_buffer_size = 256K
|
||||
read_rnd_buffer_size = 256K
|
||||
net_buffer_length = 2K
|
||||
thread_stack = 240K
|
||||
|
||||
#innodb_use_native_aio = 0
|
||||
innodb_file_per_table
|
||||
|
||||
max_connections=50
|
||||
max_user_connections=25
|
||||
wait_timeout=10
|
||||
interactive_timeout=50
|
||||
long_query_time=5
|
||||
|
||||
#slow_query_log=1
|
||||
#slow_query_log_file=/var/log/mysql-slow-queries.log
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mysqld.log
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
|
||||
#
|
||||
# include all files from the config directory
|
||||
#
|
||||
!includedir /etc/my.cnf.d
|
|
@ -68,29 +68,6 @@ http {
|
|||
proxy_buffers 32 4k;
|
||||
|
||||
|
||||
# Cloudflare https://www.cloudflare.com/ips
|
||||
set_real_ip_from 199.27.128.0/21;
|
||||
set_real_ip_from 173.245.48.0/20;
|
||||
set_real_ip_from 103.21.244.0/22;
|
||||
set_real_ip_from 103.22.200.0/22;
|
||||
set_real_ip_from 103.31.4.0/22;
|
||||
set_real_ip_from 141.101.64.0/18;
|
||||
set_real_ip_from 108.162.192.0/18;
|
||||
set_real_ip_from 190.93.240.0/20;
|
||||
set_real_ip_from 188.114.96.0/20;
|
||||
set_real_ip_from 197.234.240.0/22;
|
||||
set_real_ip_from 198.41.128.0/17;
|
||||
set_real_ip_from 162.158.0.0/15;
|
||||
set_real_ip_from 104.16.0.0/12;
|
||||
set_real_ip_from 172.64.0.0/13;
|
||||
#set_real_ip_from 2400:cb00::/32;
|
||||
#set_real_ip_from 2606:4700::/32;
|
||||
#set_real_ip_from 2803:f800::/32;
|
||||
#set_real_ip_from 2405:b500::/32;
|
||||
#set_real_ip_from 2405:8100::/32;
|
||||
real_ip_header CF-Connecting-IP;
|
||||
|
||||
|
||||
# SSL PCI Compliance
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
15
install/rhel/5/nginx/phpmyadmin.inc
Normal file
15
install/rhel/5/nginx/phpmyadmin.inc
Normal file
|
@ -0,0 +1,15 @@
|
|||
location /phpmyadmin {
|
||||
alias /usr/share/phpMyAdmin/;
|
||||
|
||||
location ~ /(libraries|setup) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
location ~ ^/phpmyadmin/(.*\.php)$ {
|
||||
alias /usr/share/phpMyAdmin/$1;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
}
|
11
install/rhel/5/nginx/phppgadmin.inc
Normal file
11
install/rhel/5/nginx/phppgadmin.inc
Normal file
|
@ -0,0 +1,11 @@
|
|||
location /phppgadmin {
|
||||
alias /usr/share/phpPgAdmin/;
|
||||
|
||||
location ~ ^/phppgadmin/(.*\.php)$ {
|
||||
alias /usr/share/phpPgAdmin/$1;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
}
|
15
install/rhel/5/nginx/webmail.inc
Normal file
15
install/rhel/5/nginx/webmail.inc
Normal file
|
@ -0,0 +1,15 @@
|
|||
location /webmail {
|
||||
alias /usr/share/roundcubemail/;
|
||||
|
||||
location ~ /(config|temp|logs) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
location ~ ^/webmail/(.*\.php)$ {
|
||||
alias /usr/share/roundcubemail/$1;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
}
|
BIN
install/rhel/5/packages.tar.gz
Normal file
BIN
install/rhel/5/packages.tar.gz
Normal file
Binary file not shown.
|
@ -1,4 +1,5 @@
|
|||
WEB_TEMPLATE='default'
|
||||
BACKEND_TEMPLATE='default'
|
||||
PROXY_TEMPLATE='default'
|
||||
DNS_TEMPLATE='default'
|
||||
WEB_DOMAINS='100'
|
||||
|
@ -15,4 +16,4 @@ NS='ns1.localhost.ltd,ns2.localhost.ltd'
|
|||
SHELL='nologin'
|
||||
BACKUPS='3'
|
||||
TIME='11:46:50'
|
||||
DATE='2012-09-26'
|
||||
DATE='2015-06-05'
|
|
@ -1,4 +1,5 @@
|
|||
WEB_TEMPLATE='default'
|
||||
BACKEND_TEMPLATE='default'
|
||||
PROXY_TEMPLATE='default'
|
||||
DNS_TEMPLATE='default'
|
||||
WEB_DOMAINS='10'
|
||||
|
@ -15,4 +16,4 @@ NS='ns1.localhost.ltd,ns2.localhost.ltd'
|
|||
SHELL='nologin'
|
||||
BACKUPS='1'
|
||||
TIME='11:31:30'
|
||||
DATE='2012-07-26'
|
||||
DATE='2015-06-05'
|
|
@ -1,4 +1,5 @@
|
|||
WEB_TEMPLATE='hosting'
|
||||
BACKEND_TEMPLATE='default'
|
||||
PROXY_TEMPLATE='hosting'
|
||||
DNS_TEMPLATE='default'
|
||||
WEB_DOMAINS='50'
|
||||
|
@ -15,4 +16,4 @@ NS='ns1.localhost.ltd,ns2.localhost.ltd'
|
|||
SHELL='nologin'
|
||||
BACKUPS='5'
|
||||
TIME='07:49:47'
|
||||
DATE='2013-06-10'
|
||||
DATE='2015-06-05'
|
|
@ -1,4 +1,5 @@
|
|||
WEB_TEMPLATE='default'
|
||||
BACKEND_TEMPLATE='default'
|
||||
PROXY_TEMPLATE='default'
|
||||
DNS_TEMPLATE='default'
|
||||
WEB_DOMAINS='100'
|
||||
|
@ -15,4 +16,4 @@ NS='ns1.localhost.ltd,ns2.localhost.ltd'
|
|||
SHELL='nologin'
|
||||
BACKUPS='3'
|
||||
TIME='12:39:13'
|
||||
DATE='2012-09-20'
|
||||
DATE='2015-06-05'
|
10
install/rhel/5/php-fpm/www.conf
Normal file
10
install/rhel/5/php-fpm/www.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[www]
|
||||
listen = 127.0.0.1:9000
|
||||
listen.allowed_clients = 127.0.0.1
|
||||
user = apache
|
||||
group = apache
|
||||
pm = dynamic
|
||||
pm.max_children = 50
|
||||
pm.start_servers = 5
|
||||
pm.min_spare_servers = 3
|
||||
pm.max_spare_servers = 35
|
|
@ -37,9 +37,3 @@ Alias /phpmyadmin /usr/share/phpMyAdmin
|
|||
# SecRuleInheritance Off
|
||||
# </Directory>
|
||||
#</IfModule>
|
||||
|
||||
<Directory /usr/share/phpMyAdmin/setup/>
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from None
|
||||
</Directory>
|
11
install/rhel/5/postgresql/pg_hba.conf
Normal file
11
install/rhel/5/postgresql/pg_hba.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# "local" is for Unix domain socket connections only
|
||||
local all all md5
|
||||
|
||||
# IPv4 local connections:
|
||||
host all all 127.0.0.1/32 md5
|
||||
|
||||
# IPv6 local connections:
|
||||
host all all ::1/128 md5
|
||||
|
||||
# Others
|
||||
host all all 0.0.0.0/0 md5
|
BIN
install/rhel/5/remi-release.rpm
Normal file
BIN
install/rhel/5/remi-release.rpm
Normal file
Binary file not shown.
40
install/rhel/5/roundcube/main.inc.php
Normal file
40
install/rhel/5/roundcube/main.inc.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
$config = array();
|
||||
$config['db_dsnw'] = 'mysql://roundcube:%password%@localhost/roundcube';
|
||||
$config['default_host'] = 'localhost';
|
||||
|
||||
$config['smtp_server'] = '';
|
||||
$config['smtp_port'] = 25;
|
||||
$config['smtp_user'] = '';
|
||||
$config['smtp_pass'] = '';
|
||||
$config['support_url'] = '';
|
||||
|
||||
$rcmail_config['log_dir'] = '/var/log/roundcubemail/';
|
||||
$rcmail_config['temp_dir'] = '/tmp';
|
||||
$rcmail_config['force_https'] = false;
|
||||
$rcmail_config['use_https'] = false;
|
||||
$rcmail_config['login_autocomplete'] = 0;
|
||||
$rcmail_config['drafts_mbox'] = 'Drafts';
|
||||
$rcmail_config['junk_mbox'] = 'Spam';
|
||||
$rcmail_config['sent_mbox'] = 'Sent';
|
||||
$rcmail_config['trash_mbox'] = 'Trash';
|
||||
$rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Spam', 'Trash');
|
||||
$rcmail_config['create_default_folders'] = true;
|
||||
$rcmail_config['protect_default_folders'] = true;
|
||||
$rcmail_config['enable_spellcheck'] = true;
|
||||
$rcmail_config['spellcheck_dictionary'] = false;
|
||||
$rcmail_config['spellcheck_engine'] = 'googie';
|
||||
$rcmail_config['default_charset'] = 'UTF-8';
|
||||
$rcmail_config['delete_junk'] = true;
|
||||
|
||||
$config['product_name'] = 'Roundcube Webmail';
|
||||
$config['des_key'] = 'rcmail-!24ByteDESkey*Str';
|
||||
|
||||
$config['plugins'] = array(
|
||||
'archive',
|
||||
'zipdownload',
|
||||
'password',
|
||||
);
|
||||
|
||||
$config['skin'] = 'larry';
|
|
@ -6,13 +6,7 @@ Alias /roundcubemail /usr/share/roundcubemail
|
|||
Alias /webmail /usr/share/roundcubemail
|
||||
|
||||
<Directory /usr/share/roundcubemail/>
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
<Directory /usr/share/roundcubemail/installer>
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from None
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
Allow from all
|
||||
</Directory>
|
|
@ -1,3 +1,7 @@
|
|||
# Created by vesta installer
|
||||
Defaults env_keep="VESTA"
|
||||
Defaults:admin !syslog
|
||||
Defaults:admin !requiretty
|
||||
|
||||
admin ALL=(ALL) ALL
|
||||
admin ALL=NOPASSWD:/usr/local/vesta/bin/*
|
BIN
install/rhel/5/templates.tar.gz
Normal file
BIN
install/rhel/5/templates.tar.gz
Normal file
Binary file not shown.
9
install/rhel/5/templates/dns/default.tpl
Executable file
9
install/rhel/5/templates/dns/default.tpl
Executable file
|
@ -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.%domain%.' 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%'
|
|
@ -15,9 +15,7 @@
|
|||
AllowOverride All
|
||||
SSLRequireSSL
|
||||
Options +Includes -Indexes +ExecCGI
|
||||
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
|
||||
php_admin_value upload_tmp_dir %home%/%user%/tmp
|
||||
php_admin_value session.save_path %home%/%user%/tmp
|
||||
php_admin_value open_basedir %docroot%
|
||||
</Directory>
|
||||
<Directory %home%/%user%/web/%domain%/stats>
|
||||
AllowOverride All
|
|
@ -14,9 +14,7 @@
|
|||
<Directory %docroot%>
|
||||
AllowOverride All
|
||||
Options +Includes -Indexes +ExecCGI
|
||||
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
|
||||
php_admin_value upload_tmp_dir %home%/%user%/tmp
|
||||
php_admin_value session.save_path %home%/%user%/tmp
|
||||
php_admin_value open_basedir %docroot%
|
||||
</Directory>
|
||||
<Directory %home%/%user%/web/%domain%/stats>
|
||||
AllowOverride All
|
12
install/rhel/5/templates/web/nginx/caching.sh
Executable file
12
install/rhel/5/templates/web/nginx/caching.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
user=$1
|
||||
domain=$2
|
||||
ip=$3
|
||||
home=$4
|
||||
docroot=$5
|
||||
|
||||
str="proxy_cache_path /var/cache/nginx/$domain levels=2"
|
||||
str="$str keys_zone=$domain:10m inactive=60m max_size=512m;"
|
||||
echo "$str" >> /etc/nginx/conf.d/01_caching_pool.conf
|
||||
|
|
@ -9,7 +9,7 @@ server {
|
|||
location / {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
|
||||
proxy_cache cache;
|
||||
proxy_cache %domain%;
|
||||
proxy_cache_valid 15m;
|
||||
proxy_cache_valid 404 1m;
|
||||
proxy_no_cache $no_cache;
|
|
@ -6,7 +6,7 @@ server {
|
|||
location / {
|
||||
proxy_pass http://%ip%:%web_port%;
|
||||
|
||||
proxy_cache cache;
|
||||
proxy_cache %domain%;
|
||||
proxy_cache_valid 15m;
|
||||
proxy_cache_valid 404 1m;
|
||||
proxy_no_cache $no_cache;
|
|
@ -0,0 +1,51 @@
|
|||
server {
|
||||
listen %ip%:%web_ssl_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate %ssl_pem%;
|
||||
ssl_certificate_key %ssl_key%;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?page=$request_uri;
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
server {
|
||||
listen %ip%:%web_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?page=$request_uri;
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
56
install/rhel/5/templates/web/nginx/php-fpm/codeigniter2.stpl
Normal file
56
install/rhel/5/templates/web/nginx/php-fpm/codeigniter2.stpl
Normal file
|
@ -0,0 +1,56 @@
|
|||
server {
|
||||
listen %ip%:%web_ssl_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate %ssl_pem%;
|
||||
ssl_certificate_key %ssl_key%;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location = /index.php {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html/ci$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
return 444;
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
52
install/rhel/5/templates/web/nginx/php-fpm/codeigniter2.tpl
Normal file
52
install/rhel/5/templates/web/nginx/php-fpm/codeigniter2.tpl
Normal file
|
@ -0,0 +1,52 @@
|
|||
server {
|
||||
listen %ip%:%web_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location = /index.php {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/html/ci$fastcgi_script_name;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
return 444;
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
51
install/rhel/5/templates/web/nginx/php-fpm/codeigniter3.stpl
Normal file
51
install/rhel/5/templates/web/nginx/php-fpm/codeigniter3.stpl
Normal file
|
@ -0,0 +1,51 @@
|
|||
server {
|
||||
listen %ip%:%web_ssl_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate %ssl_pem%;
|
||||
ssl_certificate_key %ssl_key%;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
47
install/rhel/5/templates/web/nginx/php-fpm/codeigniter3.tpl
Normal file
47
install/rhel/5/templates/web/nginx/php-fpm/codeigniter3.tpl
Normal file
|
@ -0,0 +1,47 @@
|
|||
server {
|
||||
listen %ip%:%web_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php;
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
122
install/rhel/5/templates/web/nginx/php-fpm/datalife_engine.stpl
Normal file
122
install/rhel/5/templates/web/nginx/php-fpm/datalife_engine.stpl
Normal file
|
@ -0,0 +1,122 @@
|
|||
server {
|
||||
listen %ip%:%web_ssl_port%;
|
||||
server_name %domain_idn% %alias_idn%;
|
||||
root %docroot%;
|
||||
index index.php index.html index.htm;
|
||||
access_log /var/log/nginx/domains/%domain%.log combined;
|
||||
access_log /var/log/nginx/domains/%domain%.bytes bytes;
|
||||
error_log /var/log/nginx/domains/%domain%.error.log error;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate %ssl_pem%;
|
||||
ssl_certificate_key %ssl_key%;
|
||||
|
||||
location / {
|
||||
rewrite "^/page/([0-9]+)(/?)$" /index.php?cstart=$1 last;
|
||||
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6&seourl=$6 last;
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5&seourl=$5 last;
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).html(/?)+$" /engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5&seourl=$5 last;
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).html(/?)+$" /index.php?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4&seourl=$4 last;
|
||||
|
||||
rewrite "^/([^.]+)/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$4&news_page=$2&cstart=$3&seourl=$5&seocat=$1 last;
|
||||
rewrite "^/([^.]+)/page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$3&news_page=$2&seourl=$4&seocat=$1 last;
|
||||
rewrite "^/([^.]+)/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /engine/print.php?news_page=$2&newsid=$3&seourl=$4&seocat=$1 last;
|
||||
rewrite "^/([^.]+)/([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$2&seourl=$3&seocat=$1 last;
|
||||
|
||||
rewrite "^/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$3&news_page=$1&cstart=$2&seourl=$4 last;
|
||||
rewrite "^/page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$2&news_page=$1&seourl=$3 last;
|
||||
rewrite "^/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$" /engine/print.php?news_page=$1&newsid=$2&seourl=$3 last;
|
||||
rewrite "^/([0-9]+)-(.*).html(/?)+$" /index.php?newsid=$1&seourl=$2 last;
|
||||
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$" /index.php?year=$1&month=$2&day=$3 last;
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$" /index.php?year=$1&month=$2&day=$3&cstart=$4 last;
|
||||
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})(/?)+$" /index.php?year=$1&month=$2 last;
|
||||
rewrite "^/([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$" /index.php?year=$1&month=$2&cstart=$3 last;
|
||||
|
||||
rewrite "^/([0-9]{4})(/?)+$" /index.php?year=$1 last;
|
||||
rewrite "^/([0-9]{4})/page/([0-9]+)(/?)+$" /index.php?year=$1&cstart=$2 last;
|
||||
|
||||
rewrite "^/tags/([^/]*)(/?)+$" /index.php?do=tags&tag=$1 last;
|
||||
rewrite "^/tags/([^/]*)/page/([0-9]+)(/?)+$" /index.php?do=tags&tag=$1&cstart=$2 last;
|
||||
|
||||
rewrite "^/xfsearch/([^/]*)(/?)+$" /index.php?do=xfsearch&xf=$1 last;
|
||||
rewrite "^/xfsearch/([^/]*)/page/([0-9]+)(/?)+$" /index.php?do=xfsearch&xf=$1&cstart=$2 last;
|
||||
|
||||
rewrite "^/user/([^/]*)/rss.xml$" /engine/rss.php?subaction=allnews&user=$1 last;
|
||||
rewrite "^/user/([^/]*)(/?)+$" /index.php?subaction=userinfo&user=$1 last;
|
||||
rewrite "^/user/([^/]*)/page/([0-9]+)(/?)+$" /index.php?subaction=userinfo&user=$1&cstart=$2 last;
|
||||
rewrite "^/user/([^/]*)/news(/?)+$" /index.php?subaction=allnews&user=$1 last;
|
||||
rewrite "^/user/([^/]*)/news/page/([0-9]+)(/?)+$" /index.php?subaction=allnews&user=$1&cstart=$2 last;
|
||||
rewrite "^/user/([^/]*)/news/rss.xml(/?)+$" /engine/rss.php?subaction=allnews&user=$1 last;
|
||||
|
||||
rewrite "^/lastnews(/?)+$" /index.php?do=lastnews last;
|
||||
rewrite "^/lastnews/page/([0-9]+)(/?)+$" /index.php?do=lastnews&cstart=$1 last;
|
||||
|
||||
rewrite "^/catalog/([^/]*)/rss.xml$" /engine/rss.php?catalog=$1 last;
|
||||
rewrite "^/catalog/([^/]*)(/?)+$" /index.php?catalog=$1 last;
|
||||
rewrite "^/catalog/([^/]*)/page/([0-9]+)(/?)+$" /index.php?catalog=$1&cstart=$2 last;
|
||||
|
||||
rewrite "^/newposts(/?)+$" /index.php?subaction=newposts last;
|
||||
rewrite "^/newposts/page/([0-9]+)(/?)+$" /index.php?subaction=newposts&cstart=$1 last;
|
||||
|
||||
rewrite "^/favorites(/?)+$" /index.php?do=favorites last;
|
||||
rewrite "^/favorites/page/([0-9]+)(/?)+$" /index.php?do=favorites&cstart=$1 last;
|
||||
|
||||
rewrite "^/rules.html$" /index.php?do=rules last;
|
||||
rewrite "^/statistics.html$" /index.php?do=stats last;
|
||||
rewrite "^/addnews.html$" /index.php?do=addnews last;
|
||||
rewrite "^/rss.xml$" /engine/rss.php last;
|
||||
rewrite "^/sitemap.xml$" /uploads/sitemap.xml last;
|
||||
|
||||
if (!-d $request_filename) {
|
||||
rewrite "^/([^.]+)/page/([0-9]+)(/?)+$" /index.php?do=cat&category=$1&cstart=$2 last;
|
||||
rewrite "^/([^.]+)/?$" /index.php?do=cat&category=$1 last;
|
||||
}
|
||||
|
||||
if (!-f $request_filename) {
|
||||
rewrite "^/([^.]+)/rss.xml$" /engine/rss.php?do=cat&category=$1 last;
|
||||
rewrite "^/page,([0-9]+),([^/]+).html$" /index.php?do=static&page=$2&news_page=$1 last;
|
||||
rewrite "^/print:([^/]+).html$" /engine/print.php?do=static&page=$1 last;
|
||||
}
|
||||
|
||||
if (!-f $request_filename) {
|
||||
rewrite "^/([^/]+).html$" /index.php?do=static&page=$1 last;
|
||||
}
|
||||
|
||||
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
|
||||
expires max;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
fastcgi_pass %backend_lsnr%;
|
||||
fastcgi_index index.php;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
|
||||
error_page 403 /error/404.html;
|
||||
error_page 404 /error/404.html;
|
||||
error_page 500 502 503 504 /error/50x.html;
|
||||
|
||||
location /error/ {
|
||||
alias %home%/%user%/web/%domain%/document_errors/;
|
||||
}
|
||||
|
||||
location ~* "/\.(htaccess|htpasswd)$" {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/phpmyadmin.inc*;
|
||||
include /etc/nginx/conf.d/phppgadmin.inc*;
|
||||
include /etc/nginx/conf.d/webmail.inc*;
|
||||
|
||||
include %home%/%user%/conf/web/nginx.%domain%.conf*;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue