├── README.md ├── config ├── mysql │ ├── conf.d │ │ └── mysqld_safe_syslog.cnf │ ├── debian-start │ ├── debian.cnf │ ├── mariadb.cnf │ └── my.cnf ├── nginx │ ├── fastcgi.conf │ ├── fastcgi_params │ └── nginx.conf ├── php │ ├── 7.3 │ │ ├── cli │ │ │ ├── conf.d │ │ │ │ ├── 10-mysqlnd.ini │ │ │ │ ├── 10-opcache.ini │ │ │ │ ├── 10-pdo.ini │ │ │ │ ├── 15-xml.ini │ │ │ │ ├── 20-apcu.ini │ │ │ │ ├── 20-bcmath.ini │ │ │ │ ├── 20-bz2.ini │ │ │ │ ├── 20-calendar.ini │ │ │ │ ├── 20-ctype.ini │ │ │ │ ├── 20-curl.ini │ │ │ │ ├── 20-dom.ini │ │ │ │ ├── 20-exif.ini │ │ │ │ ├── 20-fileinfo.ini │ │ │ │ ├── 20-ftp.ini │ │ │ │ ├── 20-gd.ini │ │ │ │ ├── 20-gettext.ini │ │ │ │ ├── 20-iconv.ini │ │ │ │ ├── 20-igbinary.ini │ │ │ │ ├── 20-imagick.ini │ │ │ │ ├── 20-imap.ini │ │ │ │ ├── 20-intl.ini │ │ │ │ ├── 20-json.ini │ │ │ │ ├── 20-ldap.ini │ │ │ │ ├── 20-mbstring.ini │ │ │ │ ├── 20-mysqli.ini │ │ │ │ ├── 20-pdo_mysql.ini │ │ │ │ ├── 20-phar.ini │ │ │ │ ├── 20-posix.ini │ │ │ │ ├── 20-pspell.ini │ │ │ │ ├── 20-readline.ini │ │ │ │ ├── 20-redis.ini │ │ │ │ ├── 20-shmop.ini │ │ │ │ ├── 20-simplexml.ini │ │ │ │ ├── 20-soap.ini │ │ │ │ ├── 20-sockets.ini │ │ │ │ ├── 20-sysvmsg.ini │ │ │ │ ├── 20-sysvsem.ini │ │ │ │ ├── 20-sysvshm.ini │ │ │ │ ├── 20-tokenizer.ini │ │ │ │ ├── 20-wddx.ini │ │ │ │ ├── 20-xmlreader.ini │ │ │ │ ├── 20-xmlwriter.ini │ │ │ │ ├── 20-xsl.ini │ │ │ │ └── 20-zip.ini │ │ │ ├── php.ini │ │ │ └── php.ini.vst.back │ │ ├── fpm │ │ │ ├── conf.d │ │ │ │ ├── 10-mysqlnd.ini │ │ │ │ ├── 10-opcache.ini │ │ │ │ ├── 10-pdo.ini │ │ │ │ ├── 15-xml.ini │ │ │ │ ├── 20-apcu.ini │ │ │ │ ├── 20-bcmath.ini │ │ │ │ ├── 20-bz2.ini │ │ │ │ ├── 20-calendar.ini │ │ │ │ ├── 20-ctype.ini │ │ │ │ ├── 20-curl.ini │ │ │ │ ├── 20-dom.ini │ │ │ │ ├── 20-exif.ini │ │ │ │ ├── 20-fileinfo.ini │ │ │ │ ├── 20-ftp.ini │ │ │ │ ├── 20-gd.ini │ │ │ │ ├── 20-gettext.ini │ │ │ │ ├── 20-iconv.ini │ │ │ │ ├── 20-igbinary.ini │ │ │ │ ├── 20-imagick.ini │ │ │ │ ├── 20-imap.ini │ │ │ │ ├── 20-intl.ini │ │ │ │ ├── 20-json.ini │ │ │ │ ├── 20-ldap.ini │ │ │ │ ├── 20-mbstring.ini │ │ │ │ ├── 20-mysqli.ini │ │ │ │ ├── 20-pdo_mysql.ini │ │ │ │ ├── 20-phar.ini │ │ │ │ ├── 20-posix.ini │ │ │ │ ├── 20-pspell.ini │ │ │ │ ├── 20-readline.ini │ │ │ │ ├── 20-redis.ini │ │ │ │ ├── 20-shmop.ini │ │ │ │ ├── 20-simplexml.ini │ │ │ │ ├── 20-soap.ini │ │ │ │ ├── 20-sockets.ini │ │ │ │ ├── 20-sysvmsg.ini │ │ │ │ ├── 20-sysvsem.ini │ │ │ │ ├── 20-sysvshm.ini │ │ │ │ ├── 20-tokenizer.ini │ │ │ │ ├── 20-wddx.ini │ │ │ │ ├── 20-xmlreader.ini │ │ │ │ ├── 20-xmlwriter.ini │ │ │ │ ├── 20-xsl.ini │ │ │ │ └── 20-zip.ini │ │ │ ├── php-fpm.conf │ │ │ ├── php.ini │ │ │ ├── php.ini.vst.back │ │ │ └── pool.d │ │ │ │ ├── dummy.conf │ │ │ │ ├── magento.eris.nu.conf │ │ │ │ ├── sam.renae.co.uk.conf │ │ │ │ └── www.conf │ │ └── mods-available │ │ │ ├── apcu.ini │ │ │ ├── bcmath.ini │ │ │ ├── bz2.ini │ │ │ ├── calendar.ini │ │ │ ├── ctype.ini │ │ │ ├── curl.ini │ │ │ ├── dom.ini │ │ │ ├── exif.ini │ │ │ ├── fileinfo.ini │ │ │ ├── ftp.ini │ │ │ ├── gd.ini │ │ │ ├── gettext.ini │ │ │ ├── iconv.ini │ │ │ ├── igbinary.ini │ │ │ ├── imagick.ini │ │ │ ├── imap.ini │ │ │ ├── intl.ini │ │ │ ├── json.ini │ │ │ ├── ldap.ini │ │ │ ├── mbstring.ini │ │ │ ├── mysqli.ini │ │ │ ├── mysqlnd.ini │ │ │ ├── opcache.ini │ │ │ ├── pdo.ini │ │ │ ├── pdo_mysql.ini │ │ │ ├── phar.ini │ │ │ ├── posix.ini │ │ │ ├── pspell.ini │ │ │ ├── readline.ini │ │ │ ├── redis.ini │ │ │ ├── shmop.ini │ │ │ ├── simplexml.ini │ │ │ ├── soap.ini │ │ │ ├── sockets.ini │ │ │ ├── sysvmsg.ini │ │ │ ├── sysvsem.ini │ │ │ ├── sysvshm.ini │ │ │ ├── tokenizer.ini │ │ │ ├── wddx.ini │ │ │ ├── xml.ini │ │ │ ├── xmlreader.ini │ │ │ ├── xmlwriter.ini │ │ │ ├── xsl.ini │ │ │ └── zip.ini │ └── 7.4 │ │ ├── cli │ │ ├── conf.d │ │ │ ├── 10-mysqlnd.ini │ │ │ ├── 10-opcache.ini │ │ │ ├── 10-pdo.ini │ │ │ ├── 15-xml.ini │ │ │ ├── 20-apcu.ini │ │ │ ├── 20-bcmath.ini │ │ │ ├── 20-bz2.ini │ │ │ ├── 20-calendar.ini │ │ │ ├── 20-ctype.ini │ │ │ ├── 20-curl.ini │ │ │ ├── 20-dom.ini │ │ │ ├── 20-exif.ini │ │ │ ├── 20-ffi.ini │ │ │ ├── 20-fileinfo.ini │ │ │ ├── 20-ftp.ini │ │ │ ├── 20-gd.ini │ │ │ ├── 20-gettext.ini │ │ │ ├── 20-iconv.ini │ │ │ ├── 20-igbinary.ini │ │ │ ├── 20-imagick.ini │ │ │ ├── 20-imap.ini │ │ │ ├── 20-intl.ini │ │ │ ├── 20-json.ini │ │ │ ├── 20-ldap.ini │ │ │ ├── 20-mbstring.ini │ │ │ ├── 20-mysqli.ini │ │ │ ├── 20-pdo_mysql.ini │ │ │ ├── 20-phar.ini │ │ │ ├── 20-posix.ini │ │ │ ├── 20-pspell.ini │ │ │ ├── 20-readline.ini │ │ │ ├── 20-redis.ini │ │ │ ├── 20-shmop.ini │ │ │ ├── 20-simplexml.ini │ │ │ ├── 20-soap.ini │ │ │ ├── 20-sockets.ini │ │ │ ├── 20-sysvmsg.ini │ │ │ ├── 20-sysvsem.ini │ │ │ ├── 20-sysvshm.ini │ │ │ ├── 20-tokenizer.ini │ │ │ ├── 20-xmlreader.ini │ │ │ ├── 20-xmlwriter.ini │ │ │ ├── 20-xsl.ini │ │ │ └── 20-zip.ini │ │ ├── php.ini │ │ └── php.ini.vst.back │ │ ├── fpm │ │ ├── conf.d │ │ │ ├── 10-mysqlnd.ini │ │ │ ├── 10-opcache.ini │ │ │ ├── 10-pdo.ini │ │ │ ├── 15-xml.ini │ │ │ ├── 20-apcu.ini │ │ │ ├── 20-bcmath.ini │ │ │ ├── 20-bz2.ini │ │ │ ├── 20-calendar.ini │ │ │ ├── 20-ctype.ini │ │ │ ├── 20-curl.ini │ │ │ ├── 20-dom.ini │ │ │ ├── 20-exif.ini │ │ │ ├── 20-ffi.ini │ │ │ ├── 20-fileinfo.ini │ │ │ ├── 20-ftp.ini │ │ │ ├── 20-gd.ini │ │ │ ├── 20-gettext.ini │ │ │ ├── 20-iconv.ini │ │ │ ├── 20-igbinary.ini │ │ │ ├── 20-imagick.ini │ │ │ ├── 20-imap.ini │ │ │ ├── 20-intl.ini │ │ │ ├── 20-json.ini │ │ │ ├── 20-ldap.ini │ │ │ ├── 20-mbstring.ini │ │ │ ├── 20-mysqli.ini │ │ │ ├── 20-pdo_mysql.ini │ │ │ ├── 20-phar.ini │ │ │ ├── 20-posix.ini │ │ │ ├── 20-pspell.ini │ │ │ ├── 20-readline.ini │ │ │ ├── 20-redis.ini │ │ │ ├── 20-shmop.ini │ │ │ ├── 20-simplexml.ini │ │ │ ├── 20-soap.ini │ │ │ ├── 20-sockets.ini │ │ │ ├── 20-sysvmsg.ini │ │ │ ├── 20-sysvsem.ini │ │ │ ├── 20-sysvshm.ini │ │ │ ├── 20-tokenizer.ini │ │ │ ├── 20-xmlreader.ini │ │ │ ├── 20-xmlwriter.ini │ │ │ ├── 20-xsl.ini │ │ │ └── 20-zip.ini │ │ ├── php-fpm.conf │ │ ├── php.ini │ │ ├── php.ini.vst.back │ │ └── pool.d │ │ │ ├── addaface.co.uk.conf │ │ │ ├── antoniofalcone.co.uk.conf │ │ │ ├── dryiceclothing.co.uk.conf │ │ │ ├── dummy.conf │ │ │ └── renae.co.uk.conf │ │ └── mods-available │ │ ├── apcu.ini │ │ ├── bcmath.ini │ │ ├── bz2.ini │ │ ├── calendar.ini │ │ ├── ctype.ini │ │ ├── curl.ini │ │ ├── dom.ini │ │ ├── exif.ini │ │ ├── ffi.ini │ │ ├── fileinfo.ini │ │ ├── ftp.ini │ │ ├── gd.ini │ │ ├── gettext.ini │ │ ├── iconv.ini │ │ ├── igbinary.ini │ │ ├── imagick.ini │ │ ├── imap.ini │ │ ├── intl.ini │ │ ├── json.ini │ │ ├── ldap.ini │ │ ├── mbstring.ini │ │ ├── mysqli.ini │ │ ├── mysqlnd.ini │ │ ├── opcache.ini │ │ ├── pdo.ini │ │ ├── pdo_mysql.ini │ │ ├── phar.ini │ │ ├── posix.ini │ │ ├── pspell.ini │ │ ├── readline.ini │ │ ├── redis.ini │ │ ├── shmop.ini │ │ ├── simplexml.ini │ │ ├── soap.ini │ │ ├── sockets.ini │ │ ├── sysvmsg.ini │ │ ├── sysvsem.ini │ │ ├── sysvshm.ini │ │ ├── tokenizer.ini │ │ ├── xml.ini │ │ ├── xmlreader.ini │ │ ├── xmlwriter.ini │ │ ├── xsl.ini │ │ └── zip.ini └── redis │ └── redis.conf ├── install.md ├── templates ├── apache2 │ ├── shopware6.stpl │ └── shopware6.tpl ├── nginx │ ├── cp.stpl │ ├── cp.tpl │ ├── hotlink.sh │ ├── hotlink.stpl │ ├── hotlink.tpl │ ├── nocache.stpl │ ├── nocache.tpl │ └── php-fpm │ │ ├── boxbilling.stpl │ │ ├── boxbilling.tpl │ │ ├── cdn.stpl │ │ ├── cdn.tpl │ │ ├── cp.stpl │ │ ├── cp.tpl │ │ ├── fossbilling.stpl │ │ ├── fossbilling.tpl │ │ ├── magento-dev.stpl │ │ ├── magento-dev.tpl │ │ ├── magento-live.stpl │ │ ├── magento-live.tpl │ │ ├── tastyigniter.stpl │ │ ├── tastyigniter.tpl │ │ ├── uptime-kuma.conf │ │ ├── uptime-kuma.stpl │ │ ├── uptime-kuma.tpl │ │ ├── wordpress_hotlink.stpl │ │ ├── wordpress_hotlink.tpl │ │ ├── xenforo.stpl │ │ └── xenforo.tpl └── php-fpm │ ├── Magento-PHP-7_4.tpl │ ├── nobase-PHP-x_x.tpl │ └── shopware6_PHP-8_0.tpl └── tools └── install_magento.sh /README.md: -------------------------------------------------------------------------------- 1 | # web-templates 2 | -------------------------------------------------------------------------------- /config/mysql/conf.d/mysqld_safe_syslog.cnf: -------------------------------------------------------------------------------- 1 | [mysqld_safe] 2 | skip_log_error 3 | syslog 4 | -------------------------------------------------------------------------------- /config/mysql/debian-start: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This script is executed by "/etc/init.d/mysql" on every (re)start. 4 | # 5 | # Changes to this file will be preserved when updating the Debian package. 6 | # 7 | # NOTE: This file is read only by the traditional SysV init script, not systemd. 8 | # 9 | 10 | source /usr/share/mysql/debian-start.inc.sh 11 | 12 | if [ -f /etc/default/mysql ]; then 13 | . /etc/default/mysql 14 | fi 15 | 16 | MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf" 17 | MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf" 18 | # Don't run full mysql_upgrade on every server restart, use --version-check to do it only once 19 | MYUPGRADE="/usr/bin/mysql_upgrade --defaults-extra-file=/etc/mysql/debian.cnf --version-check" 20 | MYCHECK="/usr/bin/mysqlcheck --defaults-file=/etc/mysql/debian.cnf" 21 | MYCHECK_SUBJECT="WARNING: mysqlcheck has found corrupt tables" 22 | MYCHECK_PARAMS="--all-databases --fast --silent" 23 | MYCHECK_RCPT="${MYCHECK_RCPT:-root}" 24 | 25 | ## Checking for corrupt, not cleanly closed (only for MyISAM and Aria engines) and upgrade needing tables. 26 | 27 | # The following commands should be run when the server is up but in background 28 | # where they do not block the server start and in one shell instance so that 29 | # they run sequentially. They are supposed not to echo anything to stdout. 30 | # If you want to disable the check for crashed tables comment 31 | # "check_for_crashed_tables" out. 32 | # (There may be no output to stdout inside the background process!) 33 | 34 | # Need to ignore SIGHUP, as otherwise a SIGHUP can sometimes abort the upgrade 35 | # process in the middle. 36 | trap "" SIGHUP 37 | ( 38 | upgrade_system_tables_if_necessary; 39 | check_root_accounts; 40 | check_for_crashed_tables; 41 | ) >&2 & 42 | 43 | exit 0 44 | -------------------------------------------------------------------------------- /config/mysql/debian.cnf: -------------------------------------------------------------------------------- 1 | # Automatically generated for Debian scripts. DO NOT TOUCH! 2 | -------------------------------------------------------------------------------- /config/mysql/mariadb.cnf: -------------------------------------------------------------------------------- 1 | # MariaDB-specific config file. 2 | # Read by /etc/mysql/my.cnf 3 | 4 | [client] 5 | # Default is Latin1, if you need UTF-8 set this (also in server section) 6 | #default-character-set = utf8 7 | 8 | [mysqld] 9 | # 10 | # * Character sets 11 | # 12 | # Default is Latin1, if you need UTF-8 set all this (also in client section) 13 | # 14 | #character-set-server = utf8 15 | #collation-server = utf8_general_ci 16 | #character_set_server = utf8 17 | #collation_server = utf8_general_ci 18 | # Import all .cnf files from configuration directory 19 | !includedir /etc/mysql/mariadb.conf.d/ 20 | -------------------------------------------------------------------------------- /config/mysql/my.cnf: -------------------------------------------------------------------------------- 1 | [client] 2 | port=3306 3 | socket=/var/run/mysqld/mysqld.sock 4 | 5 | [mysqld_safe] 6 | socket=/var/run/mysqld/mysqld.sock 7 | 8 | [mysqld] 9 | user=mysql 10 | pid-file=/var/run/mysqld/mysqld.pid 11 | socket=/var/run/mysqld/mysqld.sock 12 | port=3306 13 | basedir=/usr 14 | datadir=/var/lib/mysql 15 | tmpdir=/tmp 16 | lc-messages-dir=/usr/share/mysql 17 | log_error=/var/log/mysql/error.log 18 | 19 | symbolic-links=0 20 | local-infile=0 21 | 22 | skip-external-locking 23 | key_buffer_size = 2048M 24 | max_allowed_packet = 256M 25 | table_open_cache = 256 26 | sort_buffer_size = 64M 27 | read_buffer_size = 64M 28 | read_rnd_buffer_size = 128M 29 | myisam_sort_buffer_size = 256M 30 | thread_cache_size = 8 31 | query_cache_size= 1024M 32 | 33 | #innodb_use_native_aio = 0 34 | innodb_file_per_table 35 | 36 | max_connections=20000 37 | max_user_connections=4000 38 | wait_timeout=200 39 | interactive_timeout=50 40 | long_query_time=30 41 | 42 | !includedir /etc/mysql/conf.d/ 43 | -------------------------------------------------------------------------------- /config/nginx/fastcgi.conf: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 3 | fastcgi_param QUERY_STRING $query_string; 4 | fastcgi_param REQUEST_METHOD $request_method; 5 | fastcgi_param CONTENT_TYPE $content_type; 6 | fastcgi_param CONTENT_LENGTH $content_length; 7 | 8 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | fastcgi_param SERVER_PORT $server_port; 22 | fastcgi_param SERVER_NAME $server_name; 23 | 24 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 25 | fastcgi_param REDIRECT_STATUS 200; 26 | 27 | # To fix CGI application vulnerability - https://httpoxy.org 28 | fastcgi_param HTTP_PROXY ""; 29 | -------------------------------------------------------------------------------- /config/nginx/fastcgi_params: -------------------------------------------------------------------------------- 1 | 2 | fastcgi_param QUERY_STRING $query_string; 3 | fastcgi_param REQUEST_METHOD $request_method; 4 | fastcgi_param CONTENT_TYPE $content_type; 5 | fastcgi_param CONTENT_LENGTH $content_length; 6 | 7 | fastcgi_param SCRIPT_FILENAME $request_filename; 8 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | fastcgi_param SERVER_PORT $server_port; 22 | fastcgi_param SERVER_NAME $server_name; 23 | 24 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 25 | fastcgi_param REDIRECT_STATUS 200; 26 | 27 | # To fix CGI application vulnerability - https://httpoxy.org 28 | fastcgi_param HTTP_PROXY ""; 29 | -------------------------------------------------------------------------------- /config/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | # Server globals 2 | user www-data; 3 | worker_processes auto; 4 | worker_rlimit_nofile 65535; 5 | error_log /var/log/nginx/error.log; 6 | pid /var/run/nginx.pid; 7 | 8 | include /etc/nginx/modules-enabled/*.conf; 9 | 10 | # Worker config 11 | events { 12 | worker_connections 4096; 13 | use epoll; 14 | multi_accept on; 15 | } 16 | 17 | http { 18 | # Main settings 19 | sendfile on; 20 | tcp_nopush on; 21 | tcp_nodelay on; 22 | client_header_timeout 180s; 23 | client_body_timeout 180s; 24 | client_header_buffer_size 2k; 25 | client_body_buffer_size 256k; 26 | client_max_body_size 256m; 27 | large_client_header_buffers 4 8k; 28 | send_timeout 60s; 29 | keepalive_timeout 30s; 30 | keepalive_requests 100000; 31 | reset_timedout_connection on; 32 | server_tokens off; 33 | server_name_in_redirect off; 34 | server_names_hash_max_size 512; 35 | server_names_hash_bucket_size 512; 36 | charset utf-8; 37 | 38 | # FastCGI settings 39 | fastcgi_buffers 16 1024k; 40 | fastcgi_buffer_size 1024k; 41 | fastcgi_busy_buffers_size 1024k; 42 | fastcgi_temp_file_write_size 1024k; 43 | fastcgi_connect_timeout 30s; 44 | fastcgi_read_timeout 300s; 45 | fastcgi_send_timeout 180s; 46 | fastcgi_cache_lock on; 47 | fastcgi_cache_lock_timeout 30s; 48 | 49 | # Proxy settings 50 | proxy_redirect off; 51 | proxy_set_header Host $host; 52 | proxy_set_header X-Real-IP $remote_addr; 53 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 54 | proxy_pass_header Set-Cookie; 55 | proxy_buffers 32 4k; 56 | proxy_connect_timeout 30s; 57 | proxy_read_timeout 300s; 58 | proxy_send_timeout 180s; 59 | 60 | # Log format 61 | log_format main '$remote_addr - $remote_user [$time_local] $request ' 62 | '"$status" $body_bytes_sent "$http_referer" ' 63 | '"$http_user_agent" "$http_x_forwarded_for"'; 64 | log_format bytes '$body_bytes_sent'; 65 | log_not_found off; 66 | access_log off; 67 | 68 | variables_hash_max_size 4096; 69 | variables_hash_bucket_size 128; 70 | # Mime settings 71 | include /etc/nginx/mime.types; 72 | default_type application/octet-stream; 73 | 74 | gzip on; 75 | gzip_vary on; 76 | gzip_proxied any; 77 | gzip_comp_level 6; 78 | gzip_buffers 16 8k; 79 | gzip_types application/atom+xml 80 | application/javascript 81 | application/json 82 | application/ld+json 83 | application/manifest+json 84 | application/rss+xml 85 | application/vnd.geo+json 86 | application/vnd.ms-fontobject 87 | application/x-font-ttf 88 | application/x-web-app-manifest+json 89 | application/xhtml+xml 90 | application/xml 91 | font/opentype 92 | image/bmp 93 | image/svg+xml 94 | image/x-icon 95 | text/cache-manifest 96 | text/css 97 | text/plain 98 | text/vcard 99 | text/vnd.rim.location.xloc 100 | text/vtt 101 | text/x-component 102 | text/x-cross-domain-policy 103 | text/javascript; 104 | 105 | ## 106 | # Brotli Settings 107 | ## 108 | 109 | brotli on; 110 | brotli_static on; 111 | brotli_buffers 16 8k; 112 | brotli_comp_level 6; 113 | brotli_types *; 114 | 115 | 116 | # Cloudflare https://www.cloudflare.com/ips 117 | set_real_ip_from 103.21.244.0/22; 118 | set_real_ip_from 103.22.200.0/22; 119 | set_real_ip_from 103.31.4.0/22; 120 | set_real_ip_from 104.16.0.0/12; 121 | set_real_ip_from 108.162.192.0/18; 122 | set_real_ip_from 131.0.72.0/22; 123 | set_real_ip_from 141.101.64.0/18; 124 | set_real_ip_from 162.158.0.0/15; 125 | set_real_ip_from 172.64.0.0/13; 126 | set_real_ip_from 173.245.48.0/20; 127 | set_real_ip_from 188.114.96.0/20; 128 | set_real_ip_from 190.93.240.0/20; 129 | set_real_ip_from 197.234.240.0/22; 130 | set_real_ip_from 198.41.128.0/17; 131 | #set_real_ip_from 2400:cb00::/32; 132 | #set_real_ip_from 2405:b500::/32; 133 | #set_real_ip_from 2606:4700::/32; 134 | #set_real_ip_from 2803:f800::/32; 135 | #set_real_ip_from 2c0f:f248::/32; 136 | #set_real_ip_from 2a06:98c0::/29; 137 | real_ip_header CF-Connecting-IP; 138 | 139 | # SSL PCI compliance 140 | ssl_session_cache shared:SSL:20m; 141 | ssl_session_timeout 60m; 142 | ssl_buffer_size 1400; 143 | ssl_protocols TLSv1.2 TLSv1.3; 144 | ssl_prefer_server_ciphers on; 145 | ssl_ciphers "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"; 146 | ssl_dhparam /etc/ssl/dhparam.pem; 147 | ssl_ecdh_curve secp384r1; 148 | ssl_session_tickets off; 149 | resolver 127.0.0.53 valid=300s ipv6=off; 150 | resolver_timeout 5s; 151 | 152 | # Error pages 153 | error_page 403 /error/404.html; 154 | error_page 404 /error/404.html; 155 | error_page 410 /error/410.html; 156 | error_page 500 501 502 503 504 505 /error/50x.html; 157 | 158 | # Cache settings 159 | proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=1024m; 160 | proxy_cache_key "$host$request_uri $cookie_user"; 161 | proxy_temp_path /var/cache/nginx/temp; 162 | proxy_ignore_headers Expires Cache-Control; 163 | proxy_cache_use_stale error timeout invalid_header http_502; 164 | proxy_cache_valid any 1d; 165 | 166 | # Cache bypass 167 | map $http_cookie $no_cache { 168 | default 0; 169 | ~SESS 1; 170 | ~wordpress_logged_in 1; 171 | } 172 | 173 | # File cache (static assets) 174 | open_file_cache max=10000 inactive=30s; 175 | open_file_cache_valid 60s; 176 | open_file_cache_min_uses 2; 177 | open_file_cache_errors off; 178 | 179 | # Wildcard include 180 | include /etc/nginx/conf.d/*.conf; 181 | include /etc/nginx/conf.d/domains/*.conf; 182 | } 183 | -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/10-mysqlnd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/mysqlnd.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/10-opcache.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/opcache.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/10-pdo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/pdo.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/15-xml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xml.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-apcu.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/apcu.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-bcmath.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/bcmath.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-bz2.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/bz2.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-calendar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/calendar.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-ctype.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/ctype.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-curl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/curl.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-dom.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/dom.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-exif.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/exif.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-fileinfo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/fileinfo.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-ftp.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/ftp.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-gd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/gd.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-gettext.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/gettext.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-iconv.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/iconv.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-igbinary.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/igbinary.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-imagick.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/imagick.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-imap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/imap.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-intl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/intl.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-json.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/json.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-ldap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/ldap.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-mbstring.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/mbstring.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-mysqli.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/mysqli.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/pdo_mysql.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-phar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/phar.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-posix.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/posix.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-pspell.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/pspell.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-readline.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/readline.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-redis.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/redis.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-shmop.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/shmop.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-simplexml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/simplexml.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-soap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/soap.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-sockets.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sockets.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-sysvmsg.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sysvmsg.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-sysvsem.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sysvsem.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-sysvshm.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sysvshm.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-tokenizer.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/tokenizer.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-wddx.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/wddx.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-xmlreader.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xmlreader.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-xmlwriter.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xmlwriter.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-xsl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xsl.ini -------------------------------------------------------------------------------- /config/php/7.3/cli/conf.d/20-zip.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/zip.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/10-mysqlnd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/mysqlnd.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/10-opcache.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/opcache.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/10-pdo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/pdo.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/15-xml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xml.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-apcu.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/apcu.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-bcmath.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/bcmath.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-bz2.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/bz2.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-calendar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/calendar.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-ctype.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/ctype.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-curl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/curl.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-dom.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/dom.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-exif.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/exif.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-fileinfo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/fileinfo.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-ftp.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/ftp.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-gd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/gd.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-gettext.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/gettext.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-iconv.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/iconv.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-igbinary.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/igbinary.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-imagick.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/imagick.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-imap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/imap.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-intl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/intl.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-json.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/json.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-ldap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/ldap.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-mbstring.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/mbstring.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-mysqli.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/mysqli.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/pdo_mysql.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-phar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/phar.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-posix.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/posix.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-pspell.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/pspell.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-readline.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/readline.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-redis.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/redis.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-shmop.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/shmop.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-simplexml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/simplexml.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-soap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/soap.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-sockets.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sockets.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-sysvmsg.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sysvmsg.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-sysvsem.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sysvsem.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-sysvshm.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/sysvshm.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-tokenizer.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/tokenizer.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-wddx.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/wddx.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-xmlreader.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xmlreader.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-xmlwriter.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xmlwriter.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-xsl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/xsl.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/conf.d/20-zip.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.3/mods-available/zip.ini -------------------------------------------------------------------------------- /config/php/7.3/fpm/php-fpm.conf: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;; 2 | ; FPM Configuration ; 3 | ;;;;;;;;;;;;;;;;;;;;; 4 | 5 | ; All relative paths in this configuration file are relative to PHP's install 6 | ; prefix (/usr). This prefix can be dynamically changed by using the 7 | ; '-p' argument from the command line. 8 | 9 | ;;;;;;;;;;;;;;;;;; 10 | ; Global Options ; 11 | ;;;;;;;;;;;;;;;;;; 12 | 13 | [global] 14 | ; Pid file 15 | ; Note: the default prefix is /var 16 | ; Default Value: none 17 | pid = /run/php/php7.3-fpm.pid 18 | 19 | ; Error log file 20 | ; If it's set to "syslog", log is sent to syslogd instead of being written 21 | ; into a local file. 22 | ; Note: the default prefix is /var 23 | ; Default Value: log/php-fpm.log 24 | error_log = /var/log/php7.3-fpm.log 25 | 26 | ; syslog_facility is used to specify what type of program is logging the 27 | ; message. This lets syslogd specify that messages from different facilities 28 | ; will be handled differently. 29 | ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON) 30 | ; Default Value: daemon 31 | ;syslog.facility = daemon 32 | 33 | ; syslog_ident is prepended to every message. If you have multiple FPM 34 | ; instances running on the same server, you can change the default value 35 | ; which must suit common needs. 36 | ; Default Value: php-fpm 37 | ;syslog.ident = php-fpm 38 | 39 | ; Log level 40 | ; Possible Values: alert, error, warning, notice, debug 41 | ; Default Value: notice 42 | ;log_level = notice 43 | 44 | ; Log limit on number of characters in the single line (log entry). If the 45 | ; line is over the limit, it is wrapped on multiple lines. The limit is for 46 | ; all logged characters including message prefix and suffix if present. However 47 | ; the new line character does not count into it as it is present only when 48 | ; logging to a file descriptor. It means the new line character is not present 49 | ; when logging to syslog. 50 | ; Default Value: 1024 51 | ;log_limit = 4096 52 | 53 | ; Log buffering specifies if the log line is buffered which means that the 54 | ; line is written in a single write operation. If the value is false, then the 55 | ; data is written directly into the file descriptor. It is an experimental 56 | ; option that can potentionaly improve logging performance and memory usage 57 | ; for some heavy logging scenarios. This option is ignored if logging to syslog 58 | ; as it has to be always buffered. 59 | ; Default value: yes 60 | ;log_buffering = no 61 | 62 | ; If this number of child processes exit with SIGSEGV or SIGBUS within the time 63 | ; interval set by emergency_restart_interval then FPM will restart. A value 64 | ; of '0' means 'Off'. 65 | ; Default Value: 0 66 | ;emergency_restart_threshold = 0 67 | 68 | ; Interval of time used by emergency_restart_interval to determine when 69 | ; a graceful restart will be initiated. This can be useful to work around 70 | ; accidental corruptions in an accelerator's shared memory. 71 | ; Available Units: s(econds), m(inutes), h(ours), or d(ays) 72 | ; Default Unit: seconds 73 | ; Default Value: 0 74 | ;emergency_restart_interval = 0 75 | 76 | ; Time limit for child processes to wait for a reaction on signals from master. 77 | ; Available units: s(econds), m(inutes), h(ours), or d(ays) 78 | ; Default Unit: seconds 79 | ; Default Value: 0 80 | ;process_control_timeout = 0 81 | 82 | ; The maximum number of processes FPM will fork. This has been designed to control 83 | ; the global number of processes when using dynamic PM within a lot of pools. 84 | ; Use it with caution. 85 | ; Note: A value of 0 indicates no limit 86 | ; Default Value: 0 87 | ; process.max = 128 88 | 89 | ; Specify the nice(2) priority to apply to the master process (only if set) 90 | ; The value can vary from -19 (highest priority) to 20 (lowest priority) 91 | ; Note: - It will only work if the FPM master process is launched as root 92 | ; - The pool process will inherit the master process priority 93 | ; unless specified otherwise 94 | ; Default Value: no set 95 | ; process.priority = -19 96 | 97 | ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. 98 | ; Default Value: yes 99 | ;daemonize = yes 100 | 101 | ; Set open file descriptor rlimit for the master process. 102 | ; Default Value: system defined value 103 | ;rlimit_files = 1024 104 | 105 | ; Set max core size rlimit for the master process. 106 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 107 | ; Default Value: system defined value 108 | ;rlimit_core = 0 109 | 110 | ; Specify the event mechanism FPM will use. The following is available: 111 | ; - select (any POSIX os) 112 | ; - poll (any POSIX os) 113 | ; - epoll (linux >= 2.5.44) 114 | ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0) 115 | ; - /dev/poll (Solaris >= 7) 116 | ; - port (Solaris >= 10) 117 | ; Default Value: not set (auto detection) 118 | ;events.mechanism = epoll 119 | 120 | ; When FPM is built with systemd integration, specify the interval, 121 | ; in seconds, between health report notification to systemd. 122 | ; Set to 0 to disable. 123 | ; Available Units: s(econds), m(inutes), h(ours) 124 | ; Default Unit: seconds 125 | ; Default value: 10 126 | ;systemd_interval = 10 127 | 128 | ;;;;;;;;;;;;;;;;;;;; 129 | ; Pool Definitions ; 130 | ;;;;;;;;;;;;;;;;;;;; 131 | 132 | ; Multiple pools of child processes may be started with different listening 133 | ; ports and different management options. The name of the pool will be 134 | ; used in logs and stats. There is no limitation on the number of pools which 135 | ; FPM can handle. Your system will tell you anyway :) 136 | 137 | ; Include one or more files. If glob(3) exists, it is used to include a bunch of 138 | ; files from a glob(3) pattern. This directive can be used everywhere in the 139 | ; file. 140 | ; Relative path can also be used. They will be prefixed by: 141 | ; - the global prefix if it's been set (-p argument) 142 | ; - /usr otherwise 143 | include=/etc/php/7.3/fpm/pool.d/*.conf 144 | -------------------------------------------------------------------------------- /config/php/7.3/fpm/pool.d/dummy.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/dummy.conf 2 | 3 | [www] 4 | listen = 127.0.0.1:9973 5 | listen.allowed_clients = 127.0.0.1 6 | 7 | user = www-data 8 | group = www-data 9 | 10 | pm = ondemand 11 | pm.max_children = 4 12 | pm.max_requests = 4000 13 | pm.process_idle_timeout = 10s 14 | -------------------------------------------------------------------------------- /config/php/7.3/fpm/pool.d/magento.eris.nu.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/templates/web/php-fpm/default.tpl 2 | 3 | [magento.eris.nu] 4 | listen = /run/php/php7.3-fpm-magento.eris.nu.sock 5 | listen.owner = test 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = test 10 | group = test 11 | 12 | pm = ondemand 13 | pm.max_children = 8 14 | pm.max_requests = 4000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/test/tmp 19 | php_admin_value[session.save_path] = /home/test/tmp 20 | php_admin_value[open_basedir] = /home/test/web/magento.eris.nu/public_html:/home/test/web/magento.eris.nu/public_shtml:/home/test/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@magento.eris.nu 22 | 23 | env[HOSTNAME] = $HOSTNAME 24 | env[PATH] = /usr/local/bin:/usr/bin:/bin 25 | env[TMP] = /home/test/tmp 26 | env[TMPDIR] = /home/test/tmp 27 | env[TEMP] = /home/test/tmp -------------------------------------------------------------------------------- /config/php/7.3/fpm/pool.d/sam.renae.co.uk.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/templates/web/php-fpm/default.tpl 2 | 3 | [sam.renae.co.uk] 4 | listen = /run/php/php7.3-fpm-sam.renae.co.uk.sock 5 | listen.owner = admin 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = admin 10 | group = admin 11 | 12 | pm = ondemand 13 | pm.max_children = 8 14 | pm.max_requests = 4000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/admin/tmp 19 | php_admin_value[session.save_path] = /home/admin/tmp 20 | php_admin_value[open_basedir] = /home/admin/web/sam.renae.co.uk/public_html:/home/admin/web/sam.renae.co.uk/public_shtml:/home/admin/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@sam.renae.co.uk 22 | 23 | env[HOSTNAME] = $HOSTNAME 24 | env[PATH] = /usr/local/bin:/usr/bin:/bin 25 | env[TMP] = /home/admin/tmp 26 | env[TMPDIR] = /home/admin/tmp 27 | env[TEMP] = /home/admin/tmp -------------------------------------------------------------------------------- /config/php/7.3/fpm/pool.d/www.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/www.conf 2 | 3 | [www] 4 | listen = 127.0.0.1:9000 5 | listen.allowed_clients = 127.0.0.1 6 | 7 | user = www-data 8 | group = www-data 9 | 10 | pm = ondemand 11 | pm.max_children = 4 12 | pm.max_requests = 4000 13 | pm.process_idle_timeout = 10s 14 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/apcu.ini: -------------------------------------------------------------------------------- 1 | extension=apcu.so 2 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/bcmath.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php bcmath module 2 | ; priority=20 3 | extension=bcmath.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/bz2.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php bz2 module 2 | ; priority=20 3 | extension=bz2.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/calendar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=calendar.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/ctype.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ctype.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/curl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php curl module 2 | ; priority=20 3 | extension=curl.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/dom.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=dom.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/exif.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=exif.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/fileinfo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=fileinfo.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/ftp.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ftp.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/gd.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php gd module 2 | ; priority=20 3 | extension=gd.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/gettext.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=gettext.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/iconv.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=iconv.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/igbinary.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php igbinary module 2 | ; priority=20 3 | 4 | ; Load igbinary extension 5 | extension=igbinary.so 6 | 7 | ; Use igbinary as session serializer 8 | ;session.serialize_handler=igbinary 9 | 10 | ; Enable or disable compacting of duplicate strings 11 | ; The default is On. 12 | igbinary.compact_strings=On 13 | 14 | ; Use igbinary as serializer in APC cache (3.1.7 or later) 15 | ;apc.serializer=igbinary 16 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/imagick.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php imagick module 2 | extension=imagick.so 3 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/imap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php imap module 2 | ; priority=20 3 | extension=imap.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/intl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php intl module 2 | ; priority=20 3 | extension=intl.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/json.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php json module 2 | ; priority=20 3 | extension=json.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/ldap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php ldap module 2 | ; priority=20 3 | extension=ldap.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/mbstring.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mbstring module 2 | ; priority=20 3 | extension=mbstring.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/mysqli.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=20 3 | extension=mysqli.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/mysqlnd.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=10 3 | extension=mysqlnd.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/opcache.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php opcache module 2 | ; priority=10 3 | zend_extension=opcache.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/pdo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=10 3 | extension=pdo.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=20 3 | extension=pdo_mysql.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/phar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=phar.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/posix.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=posix.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/pspell.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pspell module 2 | ; priority=20 3 | extension=pspell.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/readline.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php readline module 2 | ; priority=20 3 | extension=readline.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/redis.ini: -------------------------------------------------------------------------------- 1 | extension=redis.so 2 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/shmop.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=shmop.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/simplexml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=simplexml.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/soap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php soap module 2 | ; priority=20 3 | extension=soap.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/sockets.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sockets.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/sysvmsg.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvmsg.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/sysvsem.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvsem.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/sysvshm.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvshm.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/tokenizer.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=tokenizer.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/wddx.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=wddx.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/xml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=15 3 | extension=xml.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/xmlreader.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlreader.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/xmlwriter.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlwriter.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/xsl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xsl.so 4 | -------------------------------------------------------------------------------- /config/php/7.3/mods-available/zip.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php zip module 2 | ; priority=20 3 | extension=zip.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/10-mysqlnd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/mysqlnd.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/10-opcache.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/opcache.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/10-pdo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/pdo.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/15-xml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xml.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-apcu.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/apcu.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-bcmath.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/bcmath.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-bz2.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/bz2.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-calendar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/calendar.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-ctype.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ctype.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-curl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/curl.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-dom.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/dom.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-exif.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/exif.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-ffi.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ffi.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-fileinfo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/fileinfo.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-ftp.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ftp.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-gd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/gd.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-gettext.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/gettext.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-iconv.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/iconv.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-igbinary.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/igbinary.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-imagick.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/imagick.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-imap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/imap.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-intl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/intl.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-json.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/json.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-ldap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ldap.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-mbstring.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/mbstring.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-mysqli.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/mysqli.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/pdo_mysql.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-phar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/phar.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-posix.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/posix.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-pspell.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/pspell.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-readline.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/readline.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-redis.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/redis.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-shmop.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/shmop.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-simplexml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/simplexml.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-soap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/soap.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-sockets.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sockets.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-sysvmsg.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sysvmsg.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-sysvsem.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sysvsem.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-sysvshm.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sysvshm.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-tokenizer.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/tokenizer.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-xmlreader.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xmlreader.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-xmlwriter.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xmlwriter.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-xsl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xsl.ini -------------------------------------------------------------------------------- /config/php/7.4/cli/conf.d/20-zip.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/zip.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/10-mysqlnd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/mysqlnd.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/10-opcache.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/opcache.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/10-pdo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/pdo.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/15-xml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xml.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-apcu.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/apcu.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-bcmath.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/bcmath.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-bz2.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/bz2.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-calendar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/calendar.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-ctype.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ctype.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-curl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/curl.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-dom.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/dom.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-exif.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/exif.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-ffi.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ffi.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-fileinfo.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/fileinfo.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-ftp.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ftp.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-gd.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/gd.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-gettext.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/gettext.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-iconv.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/iconv.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-igbinary.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/igbinary.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-imagick.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/imagick.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-imap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/imap.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-intl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/intl.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-json.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/json.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-ldap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/ldap.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-mbstring.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/mbstring.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-mysqli.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/mysqli.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/pdo_mysql.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-phar.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/phar.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-posix.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/posix.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-pspell.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/pspell.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-readline.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/readline.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-redis.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/redis.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-shmop.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/shmop.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-simplexml.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/simplexml.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-soap.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/soap.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-sockets.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sockets.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-sysvmsg.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sysvmsg.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-sysvsem.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sysvsem.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-sysvshm.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/sysvshm.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-tokenizer.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/tokenizer.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-xmlreader.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xmlreader.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-xmlwriter.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xmlwriter.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-xsl.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/xsl.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/conf.d/20-zip.ini: -------------------------------------------------------------------------------- 1 | /etc/php/7.4/mods-available/zip.ini -------------------------------------------------------------------------------- /config/php/7.4/fpm/php-fpm.conf: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;; 2 | ; FPM Configuration ; 3 | ;;;;;;;;;;;;;;;;;;;;; 4 | 5 | ; All relative paths in this configuration file are relative to PHP's install 6 | ; prefix (/usr). This prefix can be dynamically changed by using the 7 | ; '-p' argument from the command line. 8 | 9 | ;;;;;;;;;;;;;;;;;; 10 | ; Global Options ; 11 | ;;;;;;;;;;;;;;;;;; 12 | 13 | [global] 14 | ; Pid file 15 | ; Note: the default prefix is /var 16 | ; Default Value: none 17 | ; Warning: if you change the value here, you need to modify systemd 18 | ; service PIDFile= setting to match the value here. 19 | pid = /run/php/php7.4-fpm.pid 20 | 21 | ; Error log file 22 | ; If it's set to "syslog", log is sent to syslogd instead of being written 23 | ; into a local file. 24 | ; Note: the default prefix is /var 25 | ; Default Value: log/php-fpm.log 26 | error_log = /var/log/php7.4-fpm.log 27 | 28 | ; syslog_facility is used to specify what type of program is logging the 29 | ; message. This lets syslogd specify that messages from different facilities 30 | ; will be handled differently. 31 | ; See syslog(3) for possible values (ex daemon equiv LOG_DAEMON) 32 | ; Default Value: daemon 33 | ;syslog.facility = daemon 34 | 35 | ; syslog_ident is prepended to every message. If you have multiple FPM 36 | ; instances running on the same server, you can change the default value 37 | ; which must suit common needs. 38 | ; Default Value: php-fpm 39 | ;syslog.ident = php-fpm 40 | 41 | ; Log level 42 | ; Possible Values: alert, error, warning, notice, debug 43 | ; Default Value: notice 44 | ;log_level = notice 45 | 46 | ; Log limit on number of characters in the single line (log entry). If the 47 | ; line is over the limit, it is wrapped on multiple lines. The limit is for 48 | ; all logged characters including message prefix and suffix if present. However 49 | ; the new line character does not count into it as it is present only when 50 | ; logging to a file descriptor. It means the new line character is not present 51 | ; when logging to syslog. 52 | ; Default Value: 1024 53 | ;log_limit = 4096 54 | 55 | ; Log buffering specifies if the log line is buffered which means that the 56 | ; line is written in a single write operation. If the value is false, then the 57 | ; data is written directly into the file descriptor. It is an experimental 58 | ; option that can potentionaly improve logging performance and memory usage 59 | ; for some heavy logging scenarios. This option is ignored if logging to syslog 60 | ; as it has to be always buffered. 61 | ; Default value: yes 62 | ;log_buffering = no 63 | 64 | ; If this number of child processes exit with SIGSEGV or SIGBUS within the time 65 | ; interval set by emergency_restart_interval then FPM will restart. A value 66 | ; of '0' means 'Off'. 67 | ; Default Value: 0 68 | ;emergency_restart_threshold = 0 69 | 70 | ; Interval of time used by emergency_restart_interval to determine when 71 | ; a graceful restart will be initiated. This can be useful to work around 72 | ; accidental corruptions in an accelerator's shared memory. 73 | ; Available Units: s(econds), m(inutes), h(ours), or d(ays) 74 | ; Default Unit: seconds 75 | ; Default Value: 0 76 | ;emergency_restart_interval = 0 77 | 78 | ; Time limit for child processes to wait for a reaction on signals from master. 79 | ; Available units: s(econds), m(inutes), h(ours), or d(ays) 80 | ; Default Unit: seconds 81 | ; Default Value: 0 82 | ;process_control_timeout = 0 83 | 84 | ; The maximum number of processes FPM will fork. This has been designed to control 85 | ; the global number of processes when using dynamic PM within a lot of pools. 86 | ; Use it with caution. 87 | ; Note: A value of 0 indicates no limit 88 | ; Default Value: 0 89 | process.max = 1024 90 | 91 | ; Specify the nice(2) priority to apply to the master process (only if set) 92 | ; The value can vary from -19 (highest priority) to 20 (lowest priority) 93 | ; Note: - It will only work if the FPM master process is launched as root 94 | ; - The pool process will inherit the master process priority 95 | ; unless specified otherwise 96 | ; Default Value: no set 97 | ; process.priority = -19 98 | 99 | ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. 100 | ; Default Value: yes 101 | ;daemonize = yes 102 | 103 | ; Set open file descriptor rlimit for the master process. 104 | ; Default Value: system defined value 105 | ;rlimit_files = 1024 106 | 107 | ; Set max core size rlimit for the master process. 108 | ; Possible Values: 'unlimited' or an integer greater or equal to 0 109 | ; Default Value: system defined value 110 | ;rlimit_core = 0 111 | 112 | ; Specify the event mechanism FPM will use. The following is available: 113 | ; - select (any POSIX os) 114 | ; - poll (any POSIX os) 115 | ; - epoll (linux >= 2.5.44) 116 | ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0) 117 | ; - /dev/poll (Solaris >= 7) 118 | ; - port (Solaris >= 10) 119 | ; Default Value: not set (auto detection) 120 | ;events.mechanism = epoll 121 | 122 | ; When FPM is built with systemd integration, specify the interval, 123 | ; in seconds, between health report notification to systemd. 124 | ; Set to 0 to disable. 125 | ; Available Units: s(econds), m(inutes), h(ours) 126 | ; Default Unit: seconds 127 | ; Default value: 10 128 | ;systemd_interval = 10 129 | 130 | ;;;;;;;;;;;;;;;;;;;; 131 | ; Pool Definitions ; 132 | ;;;;;;;;;;;;;;;;;;;; 133 | 134 | ; Multiple pools of child processes may be started with different listening 135 | ; ports and different management options. The name of the pool will be 136 | ; used in logs and stats. There is no limitation on the number of pools which 137 | ; FPM can handle. Your system will tell you anyway :) 138 | 139 | ; Include one or more files. If glob(3) exists, it is used to include a bunch of 140 | ; files from a glob(3) pattern. This directive can be used everywhere in the 141 | ; file. 142 | ; Relative path can also be used. They will be prefixed by: 143 | ; - the global prefix if it's been set (-p argument) 144 | ; - /usr otherwise 145 | include=/etc/php/7.4/fpm/pool.d/*.conf 146 | -------------------------------------------------------------------------------- /config/php/7.4/fpm/pool.d/addaface.co.uk.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/multiphp.tpl 2 | 3 | [addaface.co.uk] 4 | listen = /run/php/php7.4-fpm-addaface.co.uk.sock 5 | listen.owner = KritAK6 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = KritAK6 10 | group = KritAK6 11 | 12 | pm = ondemand 13 | pm.max_children = 32 14 | pm.max_requests = 16000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/KritAK6/tmp 19 | php_admin_value[session.save_path] = /home/KritAK6/tmp 20 | php_admin_value[open_basedir] = /home/KritAK6/web/addaface.co.uk/public_html:/home/KritAK6/web/addaface.co.uk/public_shtml:/home/KritAK6/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@addaface.co.uk 22 | 23 | env[PATH] = /usr/local/bin:/usr/bin:/bin 24 | env[TMP] = /home/KritAK6/tmp 25 | env[TMPDIR] = /home/KritAK6/tmp 26 | env[TEMP] = /home/KritAK6/tmp 27 | -------------------------------------------------------------------------------- /config/php/7.4/fpm/pool.d/antoniofalcone.co.uk.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/multiphp.tpl 2 | 3 | [antoniofalcone.co.uk] 4 | listen = /run/php/php7.4-fpm-antoniofalcone.co.uk.sock 5 | listen.owner = antosha6b 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = antosha6b 10 | group = antosha6b 11 | 12 | pm = ondemand 13 | pm.max_children = 32 14 | pm.max_requests = 16000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/antosha6b/tmp 19 | php_admin_value[session.save_path] = /home/antosha6b/tmp 20 | php_admin_value[open_basedir] = /home/antosha6b/web/antoniofalcone.co.uk/public_html:/home/antosha6b/web/antoniofalcone.co.uk/public_shtml:/home/antosha6b/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@antoniofalcone.co.uk 22 | 23 | env[PATH] = /usr/local/bin:/usr/bin:/bin 24 | env[TMP] = /home/antosha6b/tmp 25 | env[TMPDIR] = /home/antosha6b/tmp 26 | env[TEMP] = /home/antosha6b/tmp 27 | -------------------------------------------------------------------------------- /config/php/7.4/fpm/pool.d/dryiceclothing.co.uk.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/multiphp.tpl 2 | 3 | [dryiceclothing.co.uk] 4 | listen = /run/php/php7.4-fpm-dryiceclothing.co.uk.sock 5 | listen.owner = DSry11SB 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = DSry11SB 10 | group = DSry11SB 11 | 12 | pm = ondemand 13 | pm.max_children = 32 14 | pm.max_requests = 16000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/DSry11SB/tmp 19 | php_admin_value[session.save_path] = /home/DSry11SB/tmp 20 | php_admin_value[open_basedir] = /home/DSry11SB/web/dryiceclothing.co.uk/public_html:/home/DSry11SB/web/dryiceclothing.co.uk/public_shtml:/home/DSry11SB/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@dryiceclothing.co.uk 22 | 23 | env[PATH] = /usr/local/bin:/usr/bin:/bin 24 | env[TMP] = /home/DSry11SB/tmp 25 | env[TMPDIR] = /home/DSry11SB/tmp 26 | env[TEMP] = /home/DSry11SB/tmp 27 | -------------------------------------------------------------------------------- /config/php/7.4/fpm/pool.d/dummy.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/dummy.conf 2 | 3 | [www] 4 | listen = 127.0.0.1:9974 5 | listen.allowed_clients = 127.0.0.1 6 | 7 | user = www-data 8 | group = www-data 9 | 10 | pm = ondemand 11 | pm.max_children = 4 12 | pm.max_requests = 4000 13 | pm.process_idle_timeout = 10s 14 | -------------------------------------------------------------------------------- /config/php/7.4/fpm/pool.d/renae.co.uk.conf: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/multiphp.tpl 2 | 3 | [renae.co.uk] 4 | listen = /run/php/php7.4-fpm-renae.co.uk.sock 5 | listen.owner = admin 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = admin 10 | group = admin 11 | 12 | pm = ondemand 13 | pm.max_children = 32 14 | pm.max_requests = 16000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/admin/tmp 19 | php_admin_value[session.save_path] = /home/admin/tmp 20 | php_admin_value[open_basedir] = /home/admin/web/renae.co.uk/public_html:/home/admin/web/renae.co.uk/public_shtml:/home/admin/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@renae.co.uk 22 | 23 | env[PATH] = /usr/local/bin:/usr/bin:/bin 24 | env[TMP] = /home/admin/tmp 25 | env[TMPDIR] = /home/admin/tmp 26 | env[TEMP] = /home/admin/tmp 27 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/apcu.ini: -------------------------------------------------------------------------------- 1 | extension=apcu.so 2 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/bcmath.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php bcmath module 2 | ; priority=20 3 | extension=bcmath.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/bz2.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php bz2 module 2 | ; priority=20 3 | extension=bz2.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/calendar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=calendar.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/ctype.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ctype.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/curl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php curl module 2 | ; priority=20 3 | extension=curl.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/dom.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=dom.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/exif.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=exif.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/ffi.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ffi.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/fileinfo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=fileinfo.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/ftp.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=ftp.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/gd.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php gd module 2 | ; priority=20 3 | extension=gd.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/gettext.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=gettext.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/iconv.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=iconv.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/igbinary.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php igbinary module 2 | ; priority=20 3 | 4 | ; Load igbinary extension 5 | extension=igbinary.so 6 | 7 | ; Use igbinary as session serializer 8 | ;session.serialize_handler=igbinary 9 | 10 | ; Enable or disable compacting of duplicate strings 11 | ; The default is On. 12 | igbinary.compact_strings=On 13 | 14 | ; Use igbinary as serializer in APC cache (3.1.7 or later) 15 | ;apc.serializer=igbinary 16 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/imagick.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php imagick module 2 | extension=imagick.so 3 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/imap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php imap module 2 | ; priority=20 3 | extension=imap.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/intl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php intl module 2 | ; priority=20 3 | extension=intl.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/json.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php json module 2 | ; priority=20 3 | extension=json.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/ldap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php ldap module 2 | ; priority=20 3 | extension=ldap.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/mbstring.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mbstring module 2 | ; priority=20 3 | extension=mbstring.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/mysqli.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=20 3 | extension=mysqli.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/mysqlnd.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=10 3 | extension=mysqlnd.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/opcache.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php opcache module 2 | ; priority=10 3 | zend_extension=opcache.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/pdo.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=10 3 | extension=pdo.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/pdo_mysql.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php mysql module 2 | ; priority=20 3 | extension=pdo_mysql.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/phar.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=phar.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/posix.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=posix.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/pspell.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php pspell module 2 | ; priority=20 3 | extension=pspell.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/readline.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php readline module 2 | ; priority=20 3 | extension=readline.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/redis.ini: -------------------------------------------------------------------------------- 1 | extension=redis.so 2 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/shmop.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=shmop.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/simplexml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=simplexml.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/soap.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php soap module 2 | ; priority=20 3 | extension=soap.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/sockets.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sockets.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/sysvmsg.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvmsg.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/sysvsem.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvsem.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/sysvshm.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=sysvshm.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/tokenizer.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php common module 2 | ; priority=20 3 | extension=tokenizer.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/xml.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=15 3 | extension=xml.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/xmlreader.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlreader.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/xmlwriter.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xmlwriter.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/xsl.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php xml module 2 | ; priority=20 3 | extension=xsl.so 4 | -------------------------------------------------------------------------------- /config/php/7.4/mods-available/zip.ini: -------------------------------------------------------------------------------- 1 | ; configuration for php zip module 2 | ; priority=20 3 | extension=zip.so 4 | -------------------------------------------------------------------------------- /install.md: -------------------------------------------------------------------------------- 1 | Packages to be install for Magento: 2 | 3 | ``` 4 | apt install php7.4-common php7.4-bcmath php7.4-ctype php7.4-curl php7.4-xml php7.4-gd php7.4-iconv \ 5 | php7.4-mbstring php7.4-intl php7.4-simplexml php7.4-soap php7.4-xsl php7.4-sockets php7.4-zip 6 | ``` -------------------------------------------------------------------------------- /templates/apache2/shopware6.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | 7 | 8 | ServerName %domain_idn% 9 | %alias_string% 10 | ServerAdmin %email% 11 | DocumentRoot %sdocroot%/public/ 12 | ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/ 13 | Alias /vstats/ %home%/%user%/web/%domain%/stats/ 14 | Alias /error/ %home%/%user%/web/%domain%/document_errors/ 15 | #SuexecUserGroup %user% %group% 16 | CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes 17 | CustomLog /var/log/%web_system%/domains/%domain%.log combined 18 | ErrorLog /var/log/%web_system%/domains/%domain%.error.log 19 | 20 | AllowOverride All 21 | 22 | 23 | AllowOverride All 24 | SSLRequireSSL 25 | Options Indexes FollowSymLinks MultiViews 26 | 27 | SSLEngine on 28 | SSLVerifyClient none 29 | SSLCertificateFile %ssl_crt% 30 | SSLCertificateKeyFile %ssl_key% 31 | %ssl_ca_str%SSLCertificateChainFile %ssl_ca% 32 | 33 | 34 | SetHandler "proxy:%backend_lsnr%|fcgi://localhost" 35 | 36 | SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 37 | 38 | IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.ssl.conf_* 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /templates/apache2/shopware6.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | 7 | 8 | ServerName %domain_idn% 9 | %alias_string% 10 | ServerAdmin %email% 11 | DocumentRoot %docroot%/public/ 12 | ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/ 13 | Alias /vstats/ %home%/%user%/web/%domain%/stats/ 14 | Alias /error/ %home%/%user%/web/%domain%/document_errors/ 15 | #SuexecUserGroup %user% %group% 16 | CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes 17 | CustomLog /var/log/%web_system%/domains/%domain%.log combined 18 | ErrorLog /var/log/%web_system%/domains/%domain%.error.log 19 | 20 | IncludeOptional %home%/%user%/conf/web/%domain%/apache2.forcessl.conf* 21 | 22 | 23 | AllowOverride All 24 | 25 | 26 | AllowOverride All 27 | Options Indexes FollowSymLinks MultiViews 28 | 29 | 30 | 31 | SetHandler "proxy:%backend_lsnr%|fcgi://localhost" 32 | 33 | SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 34 | 35 | IncludeOptional %home%/%user%/conf/web/%domain%/%web_system%.conf_* 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /templates/nginx/cp.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%proxy_ssl_port% ssl http2; 8 | server_name %domain_idn% %alias_idn%; 9 | index index.php index.html index.htm; 10 | ssl_certificate %ssl_pem%; 11 | ssl_certificate_key %ssl_key%; 12 | ssl_stapling on; 13 | ssl_stapling_verify on; 14 | error_log /var/log/%web_system%/domains/%domain%.error.log error; 15 | 16 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 17 | 18 | location / { 19 | proxy_pass https://%ip%:8083; 20 | } 21 | 22 | location /error/ { 23 | alias %home%/%user%/web/%domain%/document_errors/; 24 | } 25 | 26 | location @fallback { 27 | proxy_pass https://%ip%:%web_ssl_port%; 28 | } 29 | 30 | location ~ /\.(?!well-known\/|file) { 31 | deny all; 32 | return 404; 33 | } 34 | 35 | include /etc/nginx/conf.d/phpmyadmin.inc*; 36 | include /etc/nginx/conf.d/phppgadmin.inc*; 37 | 38 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 39 | } -------------------------------------------------------------------------------- /templates/nginx/cp.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%proxy_port%; 8 | server_name %domain_idn% %alias_idn%; 9 | index index.php index.html index.htm; 10 | 11 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 12 | 13 | location / { 14 | return 301 https://%domain_idn%/; 15 | } 16 | 17 | location /error/ { 18 | alias %home%/%user%/web/%domain%/document_errors/; 19 | } 20 | 21 | location @fallback { 22 | proxy_pass http://%ip%:%web_port%; 23 | } 24 | 25 | location ~ /\.(?!well-known\/|file) { 26 | deny all; 27 | return 404; 28 | } 29 | 30 | include /etc/nginx/conf.d/phpmyadmin.inc*; 31 | include /etc/nginx/conf.d/phppgadmin.inc*; 32 | 33 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 34 | } -------------------------------------------------------------------------------- /templates/nginx/hotlink.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | user=$1 4 | domain=$2 5 | ip=$3 6 | home=$4 7 | docroot=$5 8 | 9 | str="proxy_cache_path /var/cache/nginx/$domain levels=2" 10 | str="$str keys_zone=$domain:10m inactive=60m max_size=512m;" 11 | conf='/etc/nginx/conf.d/01_caching_pool.conf' 12 | if [ -e "$conf" ]; then 13 | if [ -z "$(grep "=${domain}:" $conf)" ]; then 14 | echo "$str" >> $conf 15 | fi 16 | else 17 | echo "$str" >> $conf 18 | fi 19 | 20 | -------------------------------------------------------------------------------- /templates/nginx/hotlink.stpl: -------------------------------------------------------------------------------- 1 | server { 2 | listen %ip%:%proxy_ssl_port% ssl http2; 3 | server_name %domain_idn% %alias_idn%; 4 | ssl_certificate %ssl_pem%; 5 | ssl_certificate_key %ssl_key%; 6 | ssl_stapling on; 7 | ssl_stapling_verify on; 8 | error_log /var/log/%web_system%/domains/%domain%.error.log error; 9 | 10 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 11 | 12 | 13 | location = /xmlrpc.php { 14 | deny all; 15 | access_log off; 16 | } 17 | 18 | location / { 19 | proxy_pass https://%ip%:%web_ssl_port%; 20 | 21 | proxy_cache %domain%; 22 | proxy_cache_valid 15m; 23 | proxy_cache_valid 404 15m; 24 | proxy_no_cache $no_cache; 25 | proxy_cache_bypass $no_cache; 26 | proxy_cache_bypass $cookie_session $http_x_update; 27 | 28 | location ~* ^.+\.(mp4|webm|mp3|ogg|ogv)$ { 29 | proxy_cache off; 30 | secure_link $arg_md5,$arg_expires; 31 | secure_link_md5 "$secure_link_expires$uri %user%"; 32 | if ($secure_link = "") { 33 | return 403; 34 | } 35 | if ($secure_link = "0") { 36 | return 403; 37 | } 38 | root %sdocroot%; 39 | access_log /var/log/%web_system%/domains/%domain%.log combined; 40 | access_log /var/log/%web_system%/domains/%domain%.bytes bytes; 41 | } 42 | 43 | 44 | location ~* ^.+\.(%proxy_extensions%)$ { 45 | proxy_cache off; 46 | root %sdocroot%; 47 | access_log /var/log/%web_system%/domains/%domain%.log combined; 48 | access_log /var/log/%web_system%/domains/%domain%.bytes bytes; 49 | expires 1h; 50 | try_files $uri @fallback; 51 | } 52 | } 53 | 54 | location /error/ { 55 | alias %home%/%user%/web/%domain%/document_errors/; 56 | } 57 | 58 | location @fallback { 59 | proxy_pass https://%ip%:%web_ssl_port%; 60 | } 61 | 62 | location ~ /\.(?!well-known\/) { 63 | deny all; 64 | return 404; 65 | } 66 | 67 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 68 | } 69 | -------------------------------------------------------------------------------- /templates/nginx/hotlink.tpl: -------------------------------------------------------------------------------- 1 | server { 2 | listen %ip%:%proxy_port%; 3 | server_name %domain_idn% %alias_idn%; 4 | 5 | location = /xmlrpc.php { 6 | deny all; 7 | access_log off; 8 | } 9 | 10 | location / { 11 | proxy_pass http://%ip%:%web_port%; 12 | 13 | proxy_cache %domain%; 14 | proxy_cache_valid 15m; 15 | proxy_cache_valid 404 15m; 16 | proxy_no_cache $no_cache; 17 | proxy_cache_bypass $no_cache; 18 | proxy_cache_bypass $cookie_session $http_x_update; 19 | 20 | location ~* ^.+\.(mp4|webm|mp3|ogg|ogv)$ { 21 | proxy_cache off; 22 | secure_link $arg_md5,$arg_expires; 23 | secure_link_md5 "$secure_link_expires$uri %user%"; 24 | if ($secure_link = "") { 25 | return 403; 26 | } 27 | if ($secure_link = "0") { 28 | return 403; 29 | } 30 | root %docroot%; 31 | access_log /var/log/%web_system%/domains/%domain%.log combined; 32 | access_log /var/log/%web_system%/domains/%domain%.bytes bytes; 33 | } 34 | 35 | location ~* ^.+\.(%proxy_extensions%)$ { 36 | proxy_cache off; 37 | root %sdocroot%; 38 | access_log /var/log/%web_system%/domains/%domain%.log combined; 39 | access_log /var/log/%web_system%/domains/%domain%.bytes bytes; 40 | expires 1h; 41 | try_files $uri @fallback; 42 | } 43 | } 44 | 45 | location /error/ { 46 | alias %home%/%user%/web/%domain%/document_errors/; 47 | } 48 | 49 | location @fallback { 50 | proxy_pass https://%ip%:%web_port%; 51 | } 52 | 53 | location ~ /\.(?!well-known\/) { 54 | deny all; 55 | return 404; 56 | } 57 | 58 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 59 | } 60 | -------------------------------------------------------------------------------- /templates/nginx/nocache.stpl: -------------------------------------------------------------------------------- 1 | server { 2 | listen %ip%:%proxy_ssl_port% ssl http2; 3 | server_name %domain_idn% %alias_idn%; 4 | ssl_certificate %ssl_pem%; 5 | ssl_certificate_key %ssl_key%; 6 | ssl_stapling on; 7 | ssl_stapling_verify on; 8 | error_log /var/log/%web_system%/domains/%domain%.error.log error; 9 | 10 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 11 | 12 | location / { 13 | proxy_pass https://%ip%:%web_ssl_port%; 14 | location ~* ^.+\.(%proxy_extensions%)$ { 15 | root %sdocroot%; 16 | access_log /var/log/%web_system%/domains/%domain%.log combined; 17 | access_log /var/log/%web_system%/domains/%domain%.bytes bytes; 18 | add_header Cache-Control no-cache; 19 | expires 1s; 20 | try_files $uri @fallback; 21 | } 22 | } 23 | 24 | location /error/ { 25 | alias %home%/%user%/web/%domain%/document_errors/; 26 | } 27 | 28 | location @fallback { 29 | proxy_pass https://%ip%:%web_ssl_port%; 30 | } 31 | 32 | location ~ /\.(?!well-known\/) { 33 | deny all; 34 | return 404; 35 | } 36 | 37 | disable_symlinks if_not_owner from=%docroot%; 38 | 39 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 40 | } 41 | 42 | -------------------------------------------------------------------------------- /templates/nginx/nocache.tpl: -------------------------------------------------------------------------------- 1 | server { 2 | listen %ip%:%proxy_port%; 3 | server_name %domain_idn% %alias_idn%; 4 | 5 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 6 | 7 | location / { 8 | proxy_pass http://%ip%:%web_port%; 9 | location ~* ^.+\.(%proxy_extensions%)$ { 10 | root %docroot%; 11 | access_log /var/log/%web_system%/domains/%domain%.log combined; 12 | access_log /var/log/%web_system%/domains/%domain%.bytes bytes; 13 | add_header Cache-Control no-cache; 14 | expires 1s; 15 | try_files $uri @fallback; 16 | } 17 | } 18 | 19 | location /error/ { 20 | alias %home%/%user%/web/%domain%/document_errors/; 21 | } 22 | 23 | location @fallback { 24 | proxy_pass http://%ip%:%web_port%; 25 | } 26 | 27 | location ~ /\.(?!well-known\/) { 28 | deny all; 29 | return 404; 30 | } 31 | 32 | disable_symlinks if_not_owner from=%docroot%; 33 | 34 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 35 | } 36 | 37 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/boxbilling.stpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_ssl_port% ssl http2; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%/boxbilling/src/; 11 | index index.php index.html index.htm; 12 | 13 | access_log /var/log/nginx/domains/%domain%.log combined; 14 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 15 | error_log /var/log/nginx/domains/%domain%.error.log error; 16 | 17 | ssl_certificate %ssl_pem%; 18 | ssl_certificate_key %ssl_key%; 19 | ssl_stapling on; 20 | ssl_stapling_verify on; 21 | 22 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 23 | 24 | 25 | location / { 26 | #try_files $uri $uri/ /index.php?_url=$request_uri; 27 | rewrite ^/(.*)$ /index.php?_url=/$1; 28 | 29 | location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ { 30 | expires max; 31 | fastcgi_hide_header "Set-Cookie"; 32 | } 33 | 34 | location ~ [^/]\.php(/|$) { 35 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 36 | fastcgi_pass %backend_lsnr%; 37 | fastcgi_index index.php; 38 | include /etc/nginx/fastcgi_params; 39 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 40 | } 41 | } 42 | 43 | # Disable PHP execution in bb-uploads and bb-data 44 | location ^~ /bb-uploads/ { } 45 | location ^~ /bb-data/ { 46 | deny all; 47 | } 48 | 49 | location ~* ^/(css|img|js|flv|swf|download)/(.+)$ { 50 | expires off; 51 | proxy_no_cache 1; 52 | proxy_cache_bypass 1; 53 | } 54 | 55 | location /error/ { 56 | alias %home%/%user%/web/%domain%/document_errors/; 57 | } 58 | 59 | location ~ /\.(?!well-known\/) { 60 | deny all; 61 | return 404; 62 | } 63 | 64 | location /vstats/ { 65 | alias %home%/%user%/web/%domain%/stats/; 66 | include %home%/%user%/web/%domain%/stats/auth.conf*; 67 | } 68 | 69 | include /etc/nginx/conf.d/phpmyadmin.inc*; 70 | include /etc/nginx/conf.d/phppgadmin.inc*; 71 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 72 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/boxbilling.tpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_port%; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%/boxbilling/src/; 11 | index index.php index.html index.htm; 12 | 13 | access_log /var/log/nginx/domains/%domain%.log combined; 14 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 15 | error_log /var/log/nginx/domains/%domain%.error.log error; 16 | 17 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 18 | 19 | 20 | location / { 21 | #try_files $uri $uri/ /index.php?_url=$request_uri; 22 | rewrite ^/(.*)$ /index.php?_url=/$1; 23 | 24 | location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ { 25 | expires max; 26 | fastcgi_hide_header "Set-Cookie"; 27 | } 28 | 29 | location ~ [^/]\.php(/|$) { 30 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 31 | fastcgi_pass %backend_lsnr%; 32 | fastcgi_index index.php; 33 | include /etc/nginx/fastcgi_params; 34 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 35 | } 36 | } 37 | 38 | # Disable PHP execution in bb-uploads and bb-data 39 | location ^~ /bb-uploads/ { } 40 | location ^~ /bb-data/ { 41 | deny all; 42 | } 43 | 44 | location ~* ^/(css|img|js|flv|swf|download)/(.+)$ { 45 | expires off; 46 | proxy_no_cache 1; 47 | proxy_cache_bypass 1; 48 | } 49 | 50 | location /error/ { 51 | alias %home%/%user%/web/%domain%/document_errors/; 52 | } 53 | 54 | location ~ /\.(?!well-known\/) { 55 | deny all; 56 | return 404; 57 | } 58 | 59 | location /vstats/ { 60 | alias %home%/%user%/web/%domain%/stats/; 61 | include %home%/%user%/web/%domain%/stats/auth.conf*; 62 | } 63 | 64 | include /etc/nginx/conf.d/phpmyadmin.inc*; 65 | include /etc/nginx/conf.d/phppgadmin.inc*; 66 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 67 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/cdn.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_ssl_port% ssl http2; 8 | server_name %domain_idn% %alias_idn%; 9 | 10 | root %sdocroot%/pub; 11 | index index.php; 12 | autoindex off; 13 | charset UTF-8; 14 | error_page 404 403 = /errors/404.php; 15 | add_header "X-UA-Compatible" "IE=Edge"; 16 | 17 | ssl_certificate %ssl_pem%; 18 | ssl_certificate_key %ssl_key%; 19 | ssl_stapling on; 20 | ssl_stapling_verify on; 21 | 22 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 23 | 24 | access_log /var/log/nginx/domains/%domain%.log combined; 25 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 26 | error_log /var/log/nginx/domains/%domain%.error.log error; 27 | 28 | # PHP entry point for setup application 29 | location ~* ^/setup($|/) { 30 | root %sdocroot%; 31 | 32 | location ~ ^/setup/index.php { 33 | fastcgi_pass %backend_lsnr%; 34 | fastcgi_index index.php; 35 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 36 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 37 | include /etc/nginx/fastcgi_params; 38 | } 39 | 40 | location ~ ^/setup/(?!pub/). { 41 | deny all; 42 | } 43 | 44 | location ~ ^/setup/pub/ { 45 | add_header X-Frame-Options "SAMEORIGIN"; 46 | } 47 | } 48 | 49 | # PHP entry point for update application 50 | location ~* ^/update($|/) { 51 | root %sdocroot%; 52 | 53 | location ~ ^/update/index.php { 54 | fastcgi_split_path_info ^(/update/index.php)(/.+)$; 55 | fastcgi_pass %backend_lsnr%; 56 | fastcgi_index index.php; 57 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 58 | fastcgi_param PATH_INFO $fastcgi_path_info; 59 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 60 | include /etc/nginx/fastcgi_params; 61 | } 62 | 63 | # Deny everything but index.php 64 | location ~ ^/update/(?!pub/). { 65 | deny all; 66 | } 67 | 68 | location ~ ^/update/pub/ { 69 | add_header X-Frame-Options "SAMEORIGIN"; 70 | } 71 | } 72 | 73 | location / { 74 | 75 | } 76 | 77 | location /sitemap.xml { 78 | root /home/%user%/web/%domain%/public_html; 79 | try_files $uri sitemap.xml; 80 | } 81 | 82 | location /pub/ { 83 | location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { 84 | deny all; 85 | } 86 | 87 | alias %sdocroot%/pub/; 88 | add_header X-Frame-Options "SAMEORIGIN"; 89 | } 90 | 91 | location /static/ { 92 | # Uncomment the following line in production mode 93 | 94 | # Remove signature of the static files that is used to overcome the browser cache 95 | location ~ ^/static/version { 96 | rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last; 97 | } 98 | 99 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 100 | add_header Cache-Control "max-age=2592000, public"; 101 | expires +1m; 102 | add_header X-Frame-Options "SAMEORIGIN"; 103 | 104 | 105 | if (!-f $request_filename) { 106 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 107 | } 108 | } 109 | location ~* \.(js|css)$ { 110 | add_header Cache-Control "max-age=86400, public"; 111 | expires +1d; 112 | add_header X-Frame-Options "SAMEORIGIN"; 113 | 114 | 115 | if (!-f $request_filename) { 116 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 117 | } 118 | } 119 | 120 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 121 | add_header Cache-Control "max-age=2592000, public"; 122 | expires +1m; 123 | add_header X-Frame-Options "SAMEORIGIN"; 124 | 125 | if (!-f $request_filename) { 126 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 127 | } 128 | } 129 | 130 | if (!-f $request_filename) { 131 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 132 | } 133 | 134 | add_header X-Frame-Options "SAMEORIGIN"; 135 | } 136 | 137 | location /media/ { 138 | try_files $uri $uri/ /get.php?$args; 139 | 140 | location ~ ^/media/theme_customization/.*\.xml { 141 | deny all; 142 | } 143 | 144 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 145 | add_header Cache-Control "max-age=2592000, public"; 146 | expires +1m; 147 | add_header X-Frame-Options "SAMEORIGIN"; 148 | try_files $uri $uri/ /get.php?$args; 149 | } 150 | location ~* \.(js|css)$ { 151 | add_header Cache-Control "max-age=86400, public"; 152 | expires +1d; 153 | add_header X-Frame-Options "SAMEORIGIN"; 154 | try_files $uri $uri/ /get.php?$args; 155 | } 156 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 157 | add_header Cache-Control "max-age=2592000, public"; 158 | expires +1m; 159 | add_header X-Frame-Options "SAMEORIGIN"; 160 | try_files $uri $uri/ /get.php?$args; 161 | } 162 | 163 | add_header X-Frame-Options "SAMEORIGIN"; 164 | } 165 | 166 | location /media/customer/ { 167 | deny all; 168 | } 169 | 170 | location /media/downloadable/ { 171 | deny all; 172 | } 173 | 174 | location /media/import/ { 175 | deny all; 176 | } 177 | 178 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 179 | location ~ /\.(?!well-known\/) { 180 | deny all; 181 | return 404; 182 | } 183 | 184 | location /vstats/ { 185 | alias %home%/%user%/web/%domain%/stats/; 186 | include %home%/%user%/web/%domain%/stats/auth.conf*; 187 | } 188 | 189 | include /etc/nginx/conf.d/phpmyadmin.inc*; 190 | include /etc/nginx/conf.d/phppgadmin.inc*; 191 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 192 | } 193 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/cdn.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_port%; 8 | server_name %domain_idn% %alias_idn%; 9 | 10 | root %docroot%/pub; 11 | index index.php; 12 | autoindex off; 13 | charset UTF-8; 14 | error_page 404 403 = /errors/404.php; 15 | add_header "X-UA-Compatible" "IE=Edge"; 16 | 17 | access_log /var/log/nginx/domains/%domain%.log combined; 18 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 19 | error_log /var/log/nginx/domains/%domain%.error.log error; 20 | 21 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 22 | 23 | # PHP entry point for setup application 24 | location ~* ^/setup($|/) { 25 | root %docroot%; 26 | 27 | location ~ ^/setup/index.php { 28 | fastcgi_pass %backend_lsnr%; 29 | fastcgi_index index.php; 30 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 31 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 32 | include /etc/nginx/fastcgi_params; 33 | } 34 | 35 | location ~ ^/setup/(?!pub/). { 36 | deny all; 37 | } 38 | 39 | location ~ ^/setup/pub/ { 40 | add_header X-Frame-Options "SAMEORIGIN"; 41 | } 42 | } 43 | 44 | location /sitemap.xml { 45 | root /home/%user%/web/%domain%/public_html; 46 | try_files $uri sitemap.xml; 47 | } 48 | 49 | # PHP entry point for update application 50 | location ~* ^/update($|/) { 51 | root %docroot%; 52 | 53 | location ~ ^/update/index.php { 54 | fastcgi_split_path_info ^(/update/index.php)(/.+)$; 55 | fastcgi_pass %backend_lsnr%; 56 | fastcgi_index index.php; 57 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 58 | fastcgi_param PATH_INFO $fastcgi_path_info; 59 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 60 | include /etc/nginx/fastcgi_params; 61 | } 62 | 63 | # Deny everything but index.php 64 | location ~ ^/update/(?!pub/). { 65 | deny all; 66 | } 67 | 68 | location ~ ^/update/pub/ { 69 | add_header X-Frame-Options "SAMEORIGIN"; 70 | } 71 | } 72 | 73 | location / { 74 | 75 | } 76 | 77 | location /pub/ { 78 | location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { 79 | deny all; 80 | } 81 | 82 | alias %docroot%/pub/; 83 | add_header X-Frame-Options "SAMEORIGIN"; 84 | } 85 | 86 | location /static/ { 87 | # Uncomment the following line in production mode 88 | 89 | # Remove signature of the static files that is used to overcome the browser cache 90 | 91 | location ~ ^/static/version { 92 | rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last; 93 | } 94 | 95 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 96 | add_header Cache-Control "max-age=2592000, public"; 97 | expires +1m; 98 | add_header X-Frame-Options "SAMEORIGIN"; 99 | 100 | 101 | if (!-f $request_filename) { 102 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 103 | } 104 | } 105 | location ~* \.(js|css)$ { 106 | add_header Cache-Control "max-age=86400, public"; 107 | expires +1d; 108 | add_header X-Frame-Options "SAMEORIGIN"; 109 | 110 | 111 | if (!-f $request_filename) { 112 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 113 | } 114 | } 115 | 116 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 117 | add_header Cache-Control "max-age=2592000, public"; 118 | expires +1m; 119 | add_header X-Frame-Options "SAMEORIGIN"; 120 | 121 | if (!-f $request_filename) { 122 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 123 | } 124 | } 125 | 126 | if (!-f $request_filename) { 127 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 128 | } 129 | 130 | add_header X-Frame-Options "SAMEORIGIN"; 131 | } 132 | 133 | location /media/ { 134 | try_files $uri $uri/ /get.php?$args; 135 | 136 | location ~ ^/media/theme_customization/.*\.xml { 137 | deny all; 138 | } 139 | 140 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 141 | add_header Cache-Control "max-age=2592000, public"; 142 | expires +1m; 143 | add_header X-Frame-Options "SAMEORIGIN"; 144 | try_files $uri $uri/ /get.php?$args; 145 | } 146 | location ~* \.(js|css)$ { 147 | add_header Cache-Control "max-age=86400, public"; 148 | expires +1d; 149 | add_header X-Frame-Options "SAMEORIGIN"; 150 | try_files $uri $uri/ /get.php?$args; 151 | } 152 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 153 | add_header Cache-Control "max-age=2592000, public"; 154 | expires +1m; 155 | add_header X-Frame-Options "SAMEORIGIN"; 156 | try_files $uri $uri/ /get.php?$args; 157 | } 158 | 159 | add_header X-Frame-Options "SAMEORIGIN"; 160 | } 161 | 162 | location /media/customer/ { 163 | deny all; 164 | } 165 | 166 | location /media/downloadable/ { 167 | deny all; 168 | } 169 | 170 | location /media/import/ { 171 | deny all; 172 | } 173 | 174 | 175 | 176 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 177 | location ~ /\.(?!well-known\/) { 178 | deny all; 179 | return 404; 180 | } 181 | 182 | location /vstats/ { 183 | alias %home%/%user%/web/%domain%/stats/; 184 | include %home%/%user%/web/%domain%/stats/auth.conf*; 185 | } 186 | 187 | include /etc/nginx/conf.d/phpmyadmin.inc*; 188 | include /etc/nginx/conf.d/phppgadmin.inc*; 189 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 190 | } 191 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/cp.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_ssl_port% ssl http2; 8 | server_name %domain_idn% %alias_idn%; 9 | index index.php index.html index.htm; 10 | ssl_certificate %ssl_pem%; 11 | ssl_certificate_key %ssl_key%; 12 | ssl_stapling on; 13 | ssl_stapling_verify on; 14 | error_log /var/log/%web_system%/domains/%domain%.error.log error; 15 | 16 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 17 | 18 | location / { 19 | proxy_pass https://%ip%:8083; 20 | } 21 | 22 | location /error/ { 23 | alias %home%/%user%/web/%domain%/document_errors/; 24 | } 25 | 26 | location @fallback { 27 | proxy_pass https://%ip%:%web_ssl_port%; 28 | } 29 | 30 | location ~ /\.(?!well-known\/|file) { 31 | deny all; 32 | return 404; 33 | } 34 | 35 | include /etc/nginx/conf.d/phpmyadmin.inc*; 36 | include /etc/nginx/conf.d/phppgadmin.inc*; 37 | 38 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 39 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/cp.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_port%; 8 | server_name %domain_idn% %alias_idn%; 9 | index index.php index.html index.htm; 10 | 11 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 12 | 13 | location / { 14 | return 301 https://%domain_idn%/; 15 | } 16 | 17 | location /error/ { 18 | alias %home%/%user%/web/%domain%/document_errors/; 19 | } 20 | 21 | location @fallback { 22 | proxy_pass http://%ip%:%web_port%; 23 | } 24 | 25 | location ~ /\.(?!well-known\/|file) { 26 | deny all; 27 | return 404; 28 | } 29 | 30 | include /etc/nginx/conf.d/phpmyadmin.inc*; 31 | include /etc/nginx/conf.d/phppgadmin.inc*; 32 | 33 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 34 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/fossbilling.stpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_ssl_port% ssl http2; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%; 11 | index index.php index.html index.htm; 12 | 13 | access_log /var/log/nginx/domains/%domain%.log combined; 14 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 15 | error_log /var/log/nginx/domains/%domain%.error.log error; 16 | 17 | ssl_certificate %ssl_pem%; 18 | ssl_certificate_key %ssl_key%; 19 | ssl_stapling on; 20 | ssl_stapling_verify on; 21 | 22 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 23 | 24 | 25 | location / { 26 | #try_files $uri $uri/ /index.php; 27 | rewrite ^/(.*)$ /index.php?_url=/$1; 28 | 29 | location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ { 30 | expires max; 31 | fastcgi_hide_header "Set-Cookie"; 32 | } 33 | 34 | location ~ [^/]\.php(/|$) { 35 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 36 | fastcgi_pass %backend_lsnr%; 37 | fastcgi_index index.php; 38 | include /etc/nginx/fastcgi_params; 39 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 40 | } 41 | } 42 | 43 | # Block access to sensitive files and return 404 to make it indistinguishable from a missing file 44 | location ~* .(bak|conf|inc|ini|lock|log|old|sh|sql|twig|yaml|php)$ { 45 | return 404; 46 | } 47 | 48 | # Disable PHP execution in data and uploads, block public access to log and cache folders 49 | location ^~ /data/.*\.php$ { 50 | deny all; 51 | } 52 | location ^~ /data/uploads/.*\.php$ { 53 | deny all; 54 | } 55 | location ^~ /data/cache/ { 56 | return 404; 57 | } 58 | location ^~ /data/log/ { 59 | return 404; 60 | } 61 | 62 | location ~* ^/(css|img|js|flv|swf|download)/(.+)$ { 63 | expires off; 64 | proxy_no_cache 1; 65 | proxy_cache_bypass 1; 66 | } 67 | 68 | location /error/ { 69 | alias %home%/%user%/web/%domain%/document_errors/; 70 | } 71 | 72 | location ~ /\.(?!well-known\/) { 73 | deny all; 74 | return 404; 75 | } 76 | 77 | location /vstats/ { 78 | alias %home%/%user%/web/%domain%/stats/; 79 | include %home%/%user%/web/%domain%/stats/auth.conf*; 80 | } 81 | 82 | include /etc/nginx/conf.d/phpmyadmin.inc*; 83 | include /etc/nginx/conf.d/phppgadmin.inc*; 84 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 85 | } 86 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/fossbilling.tpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_port%; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%; 11 | index index.php index.html index.htm; 12 | 13 | access_log /var/log/nginx/domains/%domain%.log combined; 14 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 15 | error_log /var/log/nginx/domains/%domain%.error.log error; 16 | 17 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 18 | 19 | 20 | location / { 21 | #try_files $uri $uri/ /index.php; 22 | rewrite ^/(.*)$ /index.php?_url=/$1; 23 | 24 | location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ { 25 | expires max; 26 | fastcgi_hide_header "Set-Cookie"; 27 | } 28 | 29 | location ~ [^/]\.php(/|$) { 30 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 31 | fastcgi_pass %backend_lsnr%; 32 | fastcgi_index index.php; 33 | include /etc/nginx/fastcgi_params; 34 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 35 | } 36 | } 37 | 38 | # Block access to sensitive files and return 404 to make it indistinguishable from a missing file 39 | location ~* .(bak|conf|inc|ini|lock|log|old|sh|sql|twig|yaml|php)$ { 40 | return 404; 41 | } 42 | 43 | # Disable PHP execution in data and uploads, block public access to log and cache folders 44 | location ^~ /data/.*\.php$ { 45 | deny all; 46 | } 47 | location ^~ /data/uploads/.*\.php$ { 48 | deny all; 49 | } 50 | location ^~ /data/cache/ { 51 | return 404; 52 | } 53 | location ^~ /data/log/ { 54 | return 404; 55 | } 56 | 57 | location ~* ^/(css|img|js|flv|swf|download)/(.+)$ { 58 | expires off; 59 | proxy_no_cache 1; 60 | proxy_cache_bypass 1; 61 | } 62 | 63 | location /error/ { 64 | alias %home%/%user%/web/%domain%/document_errors/; 65 | } 66 | 67 | location ~ /\.(?!well-known\/) { 68 | deny all; 69 | return 404; 70 | } 71 | 72 | location /vstats/ { 73 | alias %home%/%user%/web/%domain%/stats/; 74 | include %home%/%user%/web/%domain%/stats/auth.conf*; 75 | } 76 | 77 | include /etc/nginx/conf.d/phpmyadmin.inc*; 78 | include /etc/nginx/conf.d/phppgadmin.inc*; 79 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 80 | } 81 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/magento-dev.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_ssl_port% ssl http2; 8 | server_name %domain_idn% %alias_idn%; 9 | 10 | root %sdocroot%/pub; 11 | index index.php; 12 | autoindex off; 13 | charset UTF-8; 14 | error_page 404 403 = /errors/404.php; 15 | add_header "X-UA-Compatible" "IE=Edge"; 16 | 17 | ssl_certificate %ssl_pem%; 18 | ssl_certificate_key %ssl_key%; 19 | ssl_stapling on; 20 | ssl_stapling_verify on; 21 | 22 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 23 | 24 | access_log /var/log/nginx/domains/%domain%.log combined; 25 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 26 | error_log /var/log/nginx/domains/%domain%.error.log error; 27 | 28 | # PHP entry point for setup application 29 | location ~* ^/setup($|/) { 30 | root %sdocroot%; 31 | 32 | location ~ ^/setup/index.php { 33 | fastcgi_pass %backend_lsnr%; 34 | fastcgi_index index.php; 35 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 36 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 37 | include /etc/nginx/fastcgi_params; 38 | } 39 | 40 | location ~ ^/setup/(?!pub/). { 41 | deny all; 42 | } 43 | 44 | location ~ ^/setup/pub/ { 45 | add_header X-Frame-Options "SAMEORIGIN"; 46 | } 47 | } 48 | 49 | # PHP entry point for update application 50 | location ~* ^/update($|/) { 51 | root %sdocroot%; 52 | 53 | location ~ ^/update/index.php { 54 | fastcgi_split_path_info ^(/update/index.php)(/.+)$; 55 | fastcgi_pass %backend_lsnr%; 56 | fastcgi_index index.php; 57 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 58 | fastcgi_param PATH_INFO $fastcgi_path_info; 59 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 60 | include /etc/nginx/fastcgi_params; 61 | } 62 | 63 | # Deny everything but index.php 64 | location ~ ^/update/(?!pub/). { 65 | deny all; 66 | } 67 | 68 | location ~ ^/update/pub/ { 69 | add_header X-Frame-Options "SAMEORIGIN"; 70 | } 71 | } 72 | 73 | location / { 74 | try_files $uri $uri/ /index.php?$args; 75 | } 76 | 77 | location /sitemap.xml { 78 | root /home/%user%/web/%domain%/public_html; 79 | try_files $uri sitemap.xml; 80 | } 81 | 82 | location /pub/ { 83 | location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { 84 | deny all; 85 | } 86 | 87 | alias %sdocroot%/pub/; 88 | add_header X-Frame-Options "SAMEORIGIN"; 89 | } 90 | 91 | location /static/ { 92 | # Uncomment the following line in production mode 93 | 94 | # Remove signature of the static files that is used to overcome the browser cache 95 | location ~ ^/static/version { 96 | rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last; 97 | } 98 | 99 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 100 | add_header Cache-Control "max-age=2592000, public"; 101 | expires +1m; 102 | add_header X-Frame-Options "SAMEORIGIN"; 103 | 104 | 105 | if (!-f $request_filename) { 106 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 107 | } 108 | } 109 | location ~* \.(js|css)$ { 110 | add_header Cache-Control "max-age=86400, public"; 111 | expires +1d; 112 | add_header X-Frame-Options "SAMEORIGIN"; 113 | 114 | 115 | if (!-f $request_filename) { 116 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 117 | } 118 | } 119 | 120 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 121 | add_header Cache-Control "max-age=2592000, public"; 122 | expires +1m; 123 | add_header X-Frame-Options "SAMEORIGIN"; 124 | 125 | if (!-f $request_filename) { 126 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 127 | } 128 | } 129 | 130 | if (!-f $request_filename) { 131 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 132 | } 133 | 134 | add_header X-Frame-Options "SAMEORIGIN"; 135 | } 136 | 137 | location /media/ { 138 | try_files $uri $uri/ /get.php?$args; 139 | 140 | location ~ ^/media/theme_customization/.*\.xml { 141 | deny all; 142 | } 143 | 144 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 145 | add_header Cache-Control "max-age=2592000, public"; 146 | expires +1m; 147 | add_header X-Frame-Options "SAMEORIGIN"; 148 | try_files $uri $uri/ /get.php?$args; 149 | } 150 | location ~* \.(js|css)$ { 151 | add_header Cache-Control "max-age=86400, public"; 152 | expires +1d; 153 | add_header X-Frame-Options "SAMEORIGIN"; 154 | try_files $uri $uri/ /get.php?$args; 155 | } 156 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 157 | add_header Cache-Control "max-age=2592000, public"; 158 | expires +1m; 159 | add_header X-Frame-Options "SAMEORIGIN"; 160 | try_files $uri $uri/ /get.php?$args; 161 | } 162 | 163 | add_header X-Frame-Options "SAMEORIGIN"; 164 | } 165 | 166 | location /media/customer/ { 167 | deny all; 168 | } 169 | 170 | location /media/downloadable/ { 171 | deny all; 172 | } 173 | 174 | location /media/import/ { 175 | deny all; 176 | } 177 | 178 | # PHP entry point for main application 179 | location ~ (index|get|static|report|404|503)\.php$ { 180 | try_files $uri =404; 181 | 182 | fastcgi_pass %backend_lsnr%; 183 | fastcgi_buffers 1024 4k; 184 | fastcgi_read_timeout 600s; 185 | fastcgi_connect_timeout 600s; 186 | 187 | fastcgi_index index.php; 188 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 189 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 190 | include /etc/nginx/fastcgi_params; 191 | } 192 | 193 | 194 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 195 | location ~ /\.(?!well-known\/) { 196 | deny all; 197 | return 404; 198 | } 199 | 200 | location /vstats/ { 201 | alias %home%/%user%/web/%domain%/stats/; 202 | include %home%/%user%/web/%domain%/stats/auth.conf*; 203 | } 204 | 205 | include /etc/nginx/conf.d/phpmyadmin.inc*; 206 | include /etc/nginx/conf.d/phppgadmin.inc*; 207 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 208 | } 209 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/magento-dev.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_port%; 8 | server_name %domain_idn% %alias_idn%; 9 | 10 | root %docroot%/pub; 11 | index index.php; 12 | autoindex off; 13 | charset UTF-8; 14 | error_page 404 403 = /errors/404.php; 15 | add_header "X-UA-Compatible" "IE=Edge"; 16 | 17 | access_log /var/log/nginx/domains/%domain%.log combined; 18 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 19 | error_log /var/log/nginx/domains/%domain%.error.log error; 20 | 21 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 22 | 23 | # PHP entry point for setup application 24 | location ~* ^/setup($|/) { 25 | root %docroot%; 26 | 27 | location ~ ^/setup/index.php { 28 | fastcgi_pass %backend_lsnr%; 29 | fastcgi_index index.php; 30 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 31 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 32 | include /etc/nginx/fastcgi_params; 33 | } 34 | 35 | location ~ ^/setup/(?!pub/). { 36 | deny all; 37 | } 38 | 39 | location ~ ^/setup/pub/ { 40 | add_header X-Frame-Options "SAMEORIGIN"; 41 | } 42 | } 43 | 44 | location /sitemap.xml { 45 | root /home/%user%/web/%domain%/public_html; 46 | try_files $uri sitemap.xml; 47 | } 48 | 49 | # PHP entry point for update application 50 | location ~* ^/update($|/) { 51 | root %docroot%; 52 | 53 | location ~ ^/update/index.php { 54 | fastcgi_split_path_info ^(/update/index.php)(/.+)$; 55 | fastcgi_pass %backend_lsnr%; 56 | fastcgi_index index.php; 57 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 58 | fastcgi_param PATH_INFO $fastcgi_path_info; 59 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 60 | include /etc/nginx/fastcgi_params; 61 | } 62 | 63 | # Deny everything but index.php 64 | location ~ ^/update/(?!pub/). { 65 | deny all; 66 | } 67 | 68 | location ~ ^/update/pub/ { 69 | add_header X-Frame-Options "SAMEORIGIN"; 70 | } 71 | } 72 | 73 | location / { 74 | try_files $uri $uri/ /index.php?$args; 75 | } 76 | 77 | location /pub/ { 78 | location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { 79 | deny all; 80 | } 81 | 82 | alias %docroot%/pub/; 83 | add_header X-Frame-Options "SAMEORIGIN"; 84 | } 85 | 86 | location /static/ { 87 | # Uncomment the following line in production mode 88 | 89 | # Remove signature of the static files that is used to overcome the browser cache 90 | 91 | location ~ ^/static/version { 92 | rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last; 93 | } 94 | 95 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 96 | add_header Cache-Control "max-age=2592000, public"; 97 | expires +1m; 98 | add_header X-Frame-Options "SAMEORIGIN"; 99 | 100 | 101 | if (!-f $request_filename) { 102 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 103 | } 104 | } 105 | location ~* \.(js|css)$ { 106 | add_header Cache-Control "max-age=86400, public"; 107 | expires +1d; 108 | add_header X-Frame-Options "SAMEORIGIN"; 109 | 110 | 111 | if (!-f $request_filename) { 112 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 113 | } 114 | } 115 | 116 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 117 | add_header Cache-Control "max-age=2592000, public"; 118 | expires +1m; 119 | add_header X-Frame-Options "SAMEORIGIN"; 120 | 121 | if (!-f $request_filename) { 122 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 123 | } 124 | } 125 | 126 | if (!-f $request_filename) { 127 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 128 | } 129 | 130 | add_header X-Frame-Options "SAMEORIGIN"; 131 | } 132 | 133 | location /media/ { 134 | try_files $uri $uri/ /get.php?$args; 135 | 136 | location ~ ^/media/theme_customization/.*\.xml { 137 | deny all; 138 | } 139 | 140 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 141 | add_header Cache-Control "max-age=2592000, public"; 142 | expires +1m; 143 | add_header X-Frame-Options "SAMEORIGIN"; 144 | try_files $uri $uri/ /get.php?$args; 145 | } 146 | location ~* \.(js|css)$ { 147 | add_header Cache-Control "max-age=86400, public"; 148 | expires +1d; 149 | add_header X-Frame-Options "SAMEORIGIN"; 150 | try_files $uri $uri/ /get.php?$args; 151 | } 152 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 153 | add_header Cache-Control "max-age=2592000, public"; 154 | expires +1m; 155 | add_header X-Frame-Options "SAMEORIGIN"; 156 | try_files $uri $uri/ /get.php?$args; 157 | } 158 | 159 | add_header X-Frame-Options "SAMEORIGIN"; 160 | } 161 | 162 | location /media/customer/ { 163 | deny all; 164 | } 165 | 166 | location /media/downloadable/ { 167 | deny all; 168 | } 169 | 170 | location /media/import/ { 171 | deny all; 172 | } 173 | 174 | # PHP entry point for main application 175 | location ~ (index|get|static|report|404|503)\.php$ { 176 | try_files $uri =404; 177 | 178 | fastcgi_pass %backend_lsnr%; 179 | fastcgi_buffers 1024 4k; 180 | fastcgi_read_timeout 600s; 181 | fastcgi_connect_timeout 600s; 182 | 183 | fastcgi_index index.php; 184 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 185 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 186 | include /etc/nginx/fastcgi_params; 187 | } 188 | 189 | 190 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 191 | location ~ /\.(?!well-known\/) { 192 | deny all; 193 | return 404; 194 | } 195 | 196 | location /vstats/ { 197 | alias %home%/%user%/web/%domain%/stats/; 198 | include %home%/%user%/web/%domain%/stats/auth.conf*; 199 | } 200 | 201 | include /etc/nginx/conf.d/phpmyadmin.inc*; 202 | include /etc/nginx/conf.d/phppgadmin.inc*; 203 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 204 | } 205 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/magento-live.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_ssl_port% ssl http2; 8 | server_name %domain_idn% %alias_idn%; 9 | 10 | root %sdocroot%/pub; 11 | index index.php; 12 | autoindex off; 13 | charset UTF-8; 14 | error_page 404 403 = /errors/404.php; 15 | add_header "X-UA-Compatible" "IE=Edge"; 16 | 17 | ssl_certificate %ssl_pem%; 18 | ssl_certificate_key %ssl_key%; 19 | ssl_stapling on; 20 | ssl_stapling_verify on; 21 | 22 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 23 | 24 | access_log /var/log/nginx/domains/%domain%.log combined; 25 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 26 | error_log /var/log/nginx/domains/%domain%.error.log error; 27 | 28 | pagespeed on; 29 | pagespeed RewriteLevel CoreFilters; 30 | 31 | # HTTPS Support 32 | pagespeed FetchHttps enable,allow_self_signed; 33 | 34 | pagespeed FileCachePath /var/ngx_pagespeed_cache; 35 | 36 | location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; } 37 | location ~ "^/pagespeed_static/" { } 38 | location ~ "^/ngx_pagespeed_beacon$" { } 39 | 40 | location / { 41 | try_files $uri $uri/ /index.php?$args; 42 | } 43 | 44 | location /sitemap.xml { 45 | root /home/%user%/web/%domain%/public_html; 46 | try_files $uri sitemap.xml; 47 | } 48 | 49 | location /pub/ { 50 | location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { 51 | deny all; 52 | } 53 | 54 | alias %sdocroot%/pub/; 55 | add_header X-Frame-Options "SAMEORIGIN"; 56 | } 57 | 58 | location /static/ { 59 | # Uncomment the following line in production mode 60 | 61 | # Remove signature of the static files that is used to overcome the browser cache 62 | location ~ ^/static/version { 63 | rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last; 64 | } 65 | 66 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 67 | add_header Cache-Control "max-age=2592000, public"; 68 | expires +1m; 69 | add_header X-Frame-Options "SAMEORIGIN"; 70 | 71 | 72 | if (!-f $request_filename) { 73 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 74 | } 75 | } 76 | location ~* \.(js|css)$ { 77 | add_header Cache-Control "max-age=86400, public"; 78 | expires +1d; 79 | add_header X-Frame-Options "SAMEORIGIN"; 80 | 81 | 82 | if (!-f $request_filename) { 83 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 84 | } 85 | } 86 | 87 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 88 | add_header Cache-Control "max-age=2592000, public"; 89 | expires +1m; 90 | add_header X-Frame-Options "SAMEORIGIN"; 91 | 92 | if (!-f $request_filename) { 93 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 94 | } 95 | } 96 | 97 | if (!-f $request_filename) { 98 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 99 | } 100 | 101 | add_header X-Frame-Options "SAMEORIGIN"; 102 | } 103 | 104 | location /media/ { 105 | try_files $uri $uri/ /get.php?$args; 106 | 107 | location ~ ^/media/theme_customization/.*\.xml { 108 | deny all; 109 | } 110 | 111 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 112 | add_header Cache-Control "max-age=2592000, public"; 113 | expires +1m; 114 | add_header X-Frame-Options "SAMEORIGIN"; 115 | try_files $uri $uri/ /get.php?$args; 116 | } 117 | location ~* \.(js|css)$ { 118 | add_header Cache-Control "max-age=86400, public"; 119 | expires +1d; 120 | add_header X-Frame-Options "SAMEORIGIN"; 121 | try_files $uri $uri/ /get.php?$args; 122 | } 123 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 124 | add_header Cache-Control "max-age=2592000, public"; 125 | expires +1m; 126 | add_header X-Frame-Options "SAMEORIGIN"; 127 | try_files $uri $uri/ /get.php?$args; 128 | } 129 | 130 | add_header X-Frame-Options "SAMEORIGIN"; 131 | } 132 | 133 | location /media/customer/ { 134 | deny all; 135 | } 136 | 137 | location /media/downloadable/ { 138 | deny all; 139 | } 140 | 141 | location /media/import/ { 142 | deny all; 143 | } 144 | 145 | # PHP entry point for main application 146 | location ~ (index|get|static|report|404|503)\.php$ { 147 | try_files $uri =404; 148 | 149 | fastcgi_pass %backend_lsnr%; 150 | fastcgi_buffers 1024 4k; 151 | fastcgi_read_timeout 600s; 152 | fastcgi_connect_timeout 600s; 153 | 154 | fastcgi_index index.php; 155 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 156 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 157 | include /etc/nginx/fastcgi_params; 158 | } 159 | 160 | 161 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 162 | location ~ /\.(?!well-known\/) { 163 | deny all; 164 | return 404; 165 | } 166 | 167 | location /vstats/ { 168 | alias %home%/%user%/web/%domain%/stats/; 169 | include %home%/%user%/web/%domain%/stats/auth.conf*; 170 | } 171 | 172 | include /etc/nginx/conf.d/phpmyadmin.inc*; 173 | include /etc/nginx/conf.d/phppgadmin.inc*; 174 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 175 | } 176 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/magento-live.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_port%; 8 | server_name %domain_idn% %alias_idn%; 9 | 10 | root %docroot%/pub; 11 | index index.php; 12 | autoindex off; 13 | charset UTF-8; 14 | error_page 404 403 = /errors/404.php; 15 | add_header "X-UA-Compatible" "IE=Edge"; 16 | 17 | access_log /var/log/nginx/domains/%domain%.log combined; 18 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 19 | error_log /var/log/nginx/domains/%domain%.error.log error; 20 | 21 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 22 | 23 | pagespeed on; 24 | pagespeed RewriteLevel CoreFilters; 25 | 26 | # HTTPS Support 27 | pagespeed FetchHttps enable,allow_self_signed; 28 | 29 | pagespeed FileCachePath /var/ngx_pagespeed_cache; 30 | 31 | location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" { add_header "" ""; } 32 | location ~ "^/pagespeed_static/" { } 33 | location ~ "^/ngx_pagespeed_beacon$" { } 34 | 35 | location / { 36 | try_files $uri $uri/ /index.php?$args; 37 | } 38 | 39 | location /sitemap.xml { 40 | root /home/%user%/web/%domain%/public_html; 41 | try_files $uri sitemap.xml; 42 | } 43 | 44 | location /pub/ { 45 | location ~ ^/pub/media/(downloadable|customer|import|theme_customization/.*\.xml) { 46 | deny all; 47 | } 48 | 49 | alias %docroot%/pub/; 50 | add_header X-Frame-Options "SAMEORIGIN"; 51 | } 52 | 53 | location /static/ { 54 | # Uncomment the following line in production mode 55 | 56 | # Remove signature of the static files that is used to overcome the browser cache 57 | location ~ ^/static/version { 58 | rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last; 59 | } 60 | 61 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 62 | add_header Cache-Control "max-age=2592000, public"; 63 | expires +1m; 64 | add_header X-Frame-Options "SAMEORIGIN"; 65 | 66 | 67 | if (!-f $request_filename) { 68 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 69 | } 70 | } 71 | location ~* \.(js|css)$ { 72 | add_header Cache-Control "max-age=86400, public"; 73 | expires +1d; 74 | add_header X-Frame-Options "SAMEORIGIN"; 75 | 76 | 77 | if (!-f $request_filename) { 78 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 79 | } 80 | } 81 | 82 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 83 | add_header Cache-Control "max-age=2592000, public"; 84 | expires +1m; 85 | add_header X-Frame-Options "SAMEORIGIN"; 86 | 87 | if (!-f $request_filename) { 88 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 89 | } 90 | } 91 | 92 | if (!-f $request_filename) { 93 | rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; 94 | } 95 | 96 | add_header X-Frame-Options "SAMEORIGIN"; 97 | } 98 | 99 | location /media/ { 100 | try_files $uri $uri/ /get.php?$args; 101 | 102 | location ~ ^/media/theme_customization/.*\.xml { 103 | deny all; 104 | } 105 | 106 | location ~* \.(ico|jpg|jpeg|png|gif|svg|swf|eot|ttf|otf|woff|woff2)$ { 107 | add_header Cache-Control "max-age=2592000, public"; 108 | expires +1m; 109 | add_header X-Frame-Options "SAMEORIGIN"; 110 | try_files $uri $uri/ /get.php?$args; 111 | } 112 | location ~* \.(js|css)$ { 113 | add_header Cache-Control "max-age=86400, public"; 114 | expires +1d; 115 | add_header X-Frame-Options "SAMEORIGIN"; 116 | try_files $uri $uri/ /get.php?$args; 117 | } 118 | location ~* \.(zip|gz|gzip|bz2|csv|xml)$ { 119 | add_header Cache-Control "max-age=2592000, public"; 120 | expires +1m; 121 | add_header X-Frame-Options "SAMEORIGIN"; 122 | try_files $uri $uri/ /get.php?$args; 123 | } 124 | 125 | add_header X-Frame-Options "SAMEORIGIN"; 126 | } 127 | 128 | location /media/customer/ { 129 | deny all; 130 | } 131 | 132 | location /media/downloadable/ { 133 | deny all; 134 | } 135 | 136 | location /media/import/ { 137 | deny all; 138 | } 139 | 140 | # PHP entry point for main application 141 | location ~ (index|get|static|report|404|503)\.php$ { 142 | try_files $uri =404; 143 | 144 | fastcgi_pass %backend_lsnr%; 145 | fastcgi_buffers 1024 4k; 146 | fastcgi_read_timeout 600s; 147 | fastcgi_connect_timeout 600s; 148 | 149 | fastcgi_index index.php; 150 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 151 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 152 | include /etc/nginx/fastcgi_params; 153 | } 154 | 155 | 156 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 157 | location ~ /\.(?!well-known\/) { 158 | deny all; 159 | return 404; 160 | } 161 | 162 | location /vstats/ { 163 | alias %home%/%user%/web/%domain%/stats/; 164 | include %home%/%user%/web/%domain%/stats/auth.conf*; 165 | } 166 | 167 | include /etc/nginx/conf.d/phpmyadmin.inc*; 168 | include /etc/nginx/conf.d/phppgadmin.inc*; 169 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 170 | } 171 | -------------------------------------------------------------------------------- /templates/nginx/php-fpm/tastyigniter.stpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_ssl_port% ssl http2; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%; 11 | index index.php index.html index.htm; 12 | access_log /var/log/nginx/domains/%domain%.log combined; 13 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 14 | error_log /var/log/nginx/domains/%domain%.error.log error; 15 | 16 | ssl_certificate %ssl_pem%; 17 | ssl_certificate_key %ssl_key%; 18 | ssl_stapling on; 19 | ssl_stapling_verify on; 20 | 21 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 22 | 23 | location / { try_files $uri $uri/ /index.php?$query_string; } 24 | location ~ ^/index.php { 25 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 26 | if (!-f $document_root$fastcgi_script_name) { 27 | return 404; 28 | } 29 | 30 | fastcgi_pass %backend_lsnr%; 31 | fastcgi_index index.php; 32 | include /etc/nginx/fastcgi_params; 33 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 34 | } 35 | 36 | ## Whitelist 37 | location ~ ^/favicon\.ico { try_files $uri /index.php; } 38 | location ~ ^/sitemap\.xml { try_files $uri /index.php; } 39 | 40 | ## Block all .dotfiles except well-known 41 | location ~ /\.(?!well-known).* { deny all; } 42 | 43 | ### Let nginx return 404 if static file does not exists 44 | location ~ ^/assets/media { try_files $uri 404; } 45 | location ~ ^/storage/temp/public { try_files $uri 404; } 46 | 47 | location ~ ^/app/.*/assets { try_files $uri 404; } 48 | location ~ ^/app/.*/actions/.*/assets { try_files $uri 404; } 49 | location ~ ^/app/.*/dashboardwidgets/.*/assets { try_files $uri 404; } 50 | location ~ ^/app/.*/formwidgets/.*/assets { try_files $uri 404; } 51 | location ~ ^/app/.*/widgets/.*/assets { try_files $uri 404; } 52 | 53 | location ~ ^/extensions/.*/.*/assets { try_files $uri 404; } 54 | location ~ ^/extensions/.*/.*/actions/.*/assets { try_files $uri 404; } 55 | location ~ ^/extensions/.*/.*/dashboardwidgets/.*/assets { try_files $uri 404; } 56 | location ~ ^/extensions/.*/.*/formwidgets/.*/assets { try_files $uri 404; } 57 | location ~ ^/extensions/.*/.*/widgets/.*/assets { try_files $uri 404; } 58 | 59 | location ~ ^/themes/.*/assets { try_files $uri 404; } 60 | 61 | location /error/ { 62 | alias %home%/%user%/web/%domain%/document_errors/; 63 | } 64 | 65 | location ~ /\.(?!well-known\/) { 66 | deny all; 67 | return 404; 68 | } 69 | 70 | location /vstats/ { 71 | alias %home%/%user%/web/%domain%/stats/; 72 | include %home%/%user%/web/%domain%/stats/auth.conf*; 73 | } 74 | 75 | include /etc/nginx/conf.d/phpmyadmin.inc*; 76 | include /etc/nginx/conf.d/phppgadmin.inc*; 77 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 78 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/tastyigniter.tpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_port%; 9 | server_name %domain_idn% %alias_idn%; 10 | root %docroot%; 11 | index index.php index.html index.htm; 12 | access_log /var/log/nginx/domains/%domain%.log combined; 13 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 14 | error_log /var/log/nginx/domains/%domain%.error.log error; 15 | 16 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 17 | 18 | 19 | location / { try_files $uri $uri/ /index.php?$query_string; } 20 | location ~ ^/index.php { 21 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 22 | if (!-f $document_root$fastcgi_script_name) { 23 | return 404; 24 | } 25 | 26 | fastcgi_pass %backend_lsnr%; 27 | fastcgi_index index.php; 28 | include /etc/nginx/fastcgi_params; 29 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 30 | } 31 | 32 | ## Whitelist 33 | location ~ ^/favicon\.ico { try_files $uri /index.php; } 34 | location ~ ^/sitemap\.xml { try_files $uri /index.php; } 35 | 36 | ## Block all .dotfiles except well-known 37 | location ~ /\.(?!well-known).* { deny all; } 38 | 39 | ### Let nginx return 404 if static file does not exists 40 | location ~ ^/assets/media { try_files $uri 404; } 41 | location ~ ^/storage/temp/public { try_files $uri 404; } 42 | 43 | location ~ ^/app/.*/assets { try_files $uri 404; } 44 | location ~ ^/app/.*/actions/.*/assets { try_files $uri 404; } 45 | location ~ ^/app/.*/dashboardwidgets/.*/assets { try_files $uri 404; } 46 | location ~ ^/app/.*/formwidgets/.*/assets { try_files $uri 404; } 47 | location ~ ^/app/.*/widgets/.*/assets { try_files $uri 404; } 48 | 49 | location ~ ^/extensions/.*/.*/assets { try_files $uri 404; } 50 | location ~ ^/extensions/.*/.*/actions/.*/assets { try_files $uri 404; } 51 | location ~ ^/extensions/.*/.*/dashboardwidgets/.*/assets { try_files $uri 404; } 52 | location ~ ^/extensions/.*/.*/formwidgets/.*/assets { try_files $uri 404; } 53 | location ~ ^/extensions/.*/.*/widgets/.*/assets { try_files $uri 404; } 54 | 55 | location ~ ^/themes/.*/assets { try_files $uri 404; } 56 | 57 | location /error/ { 58 | alias %home%/%user%/web/%domain%/document_errors/; 59 | } 60 | 61 | location ~ /\.(?!well-known\/) { 62 | deny all; 63 | return 404; 64 | } 65 | 66 | location /vstats/ { 67 | alias %home%/%user%/web/%domain%/stats/; 68 | include %home%/%user%/web/%domain%/stats/auth.conf*; 69 | } 70 | 71 | include /etc/nginx/conf.d/phpmyadmin.inc*; 72 | include /etc/nginx/conf.d/phppgadmin.inc*; 73 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 74 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/uptime-kuma.conf: -------------------------------------------------------------------------------- 1 | # Add this to: /etc/nginx/nginx.conf 2 | #upgrade to WebSocket protocol when requested 3 | proxy_set_header Upgrade $http_upgrade; 4 | proxy_set_header Connection "Upgrade"; -------------------------------------------------------------------------------- /templates/nginx/php-fpm/uptime-kuma.stpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_ssl_port% ssl http2; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%; 11 | index index.php index.html index.htm; 12 | access_log /var/log/nginx/domains/%domain%.log combined; 13 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 14 | error_log /var/log/nginx/domains/%domain%.error.log error; 15 | 16 | ssl_certificate %ssl_pem%; 17 | ssl_certificate_key %ssl_key%; 18 | ssl_stapling on; 19 | ssl_stapling_verify on; 20 | 21 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 22 | 23 | location / { 24 | proxy_set_header X-Real-IP $remote_addr; 25 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 26 | proxy_pass http://localhost:3001/; 27 | proxy_http_version 1.1; 28 | proxy_set_header Upgrade $http_upgrade; 29 | proxy_set_header Connection "upgrade"; 30 | } 31 | 32 | location /error/ { 33 | alias %home%/%user%/web/%domain%/document_errors/; 34 | } 35 | 36 | location ~ /\.(?!well-known\/) { 37 | deny all; 38 | return 404; 39 | } 40 | 41 | location /vstats/ { 42 | alias %home%/%user%/web/%domain%/stats/; 43 | include %home%/%user%/web/%domain%/stats/auth.conf*; 44 | } 45 | 46 | # proxy_hide_header Upgrade; 47 | 48 | include /etc/nginx/conf.d/phpmyadmin.inc*; 49 | include /etc/nginx/conf.d/phppgadmin.inc*; 50 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 51 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/uptime-kuma.tpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_port%; 9 | server_name %domain_idn% %alias_idn%; 10 | root %docroot%; 11 | index index.php index.html index.htm; 12 | access_log /var/log/nginx/domains/%domain%.log combined; 13 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 14 | error_log /var/log/nginx/domains/%domain%.error.log error; 15 | 16 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 17 | 18 | location / { 19 | proxy_set_header X-Real-IP $remote_addr; 20 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 21 | proxy_pass http://localhost:3001/; 22 | proxy_http_version 1.1; 23 | proxy_set_header Upgrade $http_upgrade; 24 | proxy_set_header Connection "upgrade"; 25 | } 26 | 27 | location /error/ { 28 | alias %home%/%user%/web/%domain%/document_errors/; 29 | } 30 | 31 | location ~ /\.(?!well-known\/) { 32 | deny all; 33 | return 404; 34 | } 35 | 36 | location /vstats/ { 37 | alias %home%/%user%/web/%domain%/stats/; 38 | include %home%/%user%/web/%domain%/stats/auth.conf*; 39 | } 40 | 41 | include /etc/nginx/conf.d/phpmyadmin.inc*; 42 | include /etc/nginx/conf.d/phppgadmin.inc*; 43 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 44 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/wordpress_hotlink.stpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_ssl_port% ssl http2; 8 | server_name %domain_idn% %alias_idn%; 9 | root %docroot%; 10 | index index.php index.html index.htm; 11 | access_log /var/log/nginx/domains/%domain%.log combined; 12 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 13 | error_log /var/log/nginx/domains/%domain%.error.log error; 14 | 15 | ssl_certificate %ssl_pem%; 16 | ssl_certificate_key %ssl_key%; 17 | ssl_stapling on; 18 | ssl_stapling_verify on; 19 | 20 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 21 | 22 | location = /favicon.ico { 23 | log_not_found off; 24 | access_log off; 25 | } 26 | 27 | location = /robots.txt { 28 | allow all; 29 | log_not_found off; 30 | access_log off; 31 | } 32 | 33 | location / { 34 | try_files $uri $uri/ /index.php?$args; 35 | 36 | if (!-e $request_filename) 37 | { 38 | rewrite ^(.+)$ /index.php?q=$1 last; 39 | } 40 | 41 | location ~* ^.+\.(mp4|webm|mp3|ogg|ogv)$ { 42 | secure_link $arg_md5,$arg_expires; 43 | secure_link_md5 "$secure_link_expires$uri %user%"; 44 | if ($secure_link = "") { 45 | return 403; 46 | } 47 | if ($secure_link = "0") { 48 | return 403; 49 | } 50 | expires max; 51 | fastcgi_hide_header "Set-Cookie"; 52 | } 53 | 54 | location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { 55 | expires max; 56 | fastcgi_hide_header "Set-Cookie"; 57 | } 58 | 59 | location ~ [^/]\.php(/|$) { 60 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 61 | if (!-f $document_root$fastcgi_script_name) { 62 | return 404; 63 | } 64 | 65 | fastcgi_pass %backend_lsnr%; 66 | fastcgi_index index.php; 67 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 68 | include /etc/nginx/fastcgi_params; 69 | } 70 | } 71 | 72 | location /error/ { 73 | alias %home%/%user%/web/%domain%/document_errors/; 74 | } 75 | 76 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 77 | location ~ /\.(?!well-known\/) { 78 | deny all; 79 | return 404; 80 | } 81 | 82 | location /vstats/ { 83 | alias %home%/%user%/web/%domain%/stats/; 84 | include %home%/%user%/web/%domain%/stats/auth.conf*; 85 | } 86 | 87 | include /etc/nginx/conf.d/phpmyadmin.inc*; 88 | include /etc/nginx/conf.d/phppgadmin.inc*; 89 | include /etc/nginx/conf.d/webmail.inc*; 90 | 91 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 92 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/wordpress_hotlink.tpl: -------------------------------------------------------------------------------- 1 | #=======================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | #=======================================================================# 5 | 6 | server { 7 | listen %ip%:%web_port%; 8 | server_name %domain_idn% %alias_idn%; 9 | root %docroot%; 10 | index index.php index.html index.htm; 11 | access_log /var/log/nginx/domains/%domain%.log combined; 12 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 13 | error_log /var/log/nginx/domains/%domain%.error.log error; 14 | 15 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 16 | 17 | location = /favicon.ico { 18 | log_not_found off; 19 | access_log off; 20 | } 21 | 22 | location = /robots.txt { 23 | allow all; 24 | log_not_found off; 25 | access_log off; 26 | } 27 | 28 | location / { 29 | try_files $uri $uri/ /index.php?$args; 30 | 31 | if (!-e $request_filename) 32 | { 33 | rewrite ^(.+)$ /index.php?q=$1 last; 34 | } 35 | 36 | location ~* ^.+\.(mp4|webm|mp3|ogg|ogv)$ { 37 | secure_link $arg_md5,$arg_expires; 38 | secure_link_md5 "$secure_link_expires$uri %user%"; 39 | if ($secure_link = "") { 40 | return 403; 41 | } 42 | if ($secure_link = "0") { 43 | return 403; 44 | } 45 | expires max; 46 | fastcgi_hide_header "Set-Cookie"; 47 | } 48 | 49 | 50 | location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ { 51 | expires max; 52 | fastcgi_hide_header "Set-Cookie"; 53 | } 54 | 55 | location ~ [^/]\.php(/|$) { 56 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 57 | if (!-f $document_root$fastcgi_script_name) { 58 | return 404; 59 | } 60 | 61 | fastcgi_pass %backend_lsnr%; 62 | fastcgi_index index.php; 63 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 64 | include /etc/nginx/fastcgi_params; 65 | } 66 | } 67 | 68 | location /error/ { 69 | alias %home%/%user%/web/%domain%/document_errors/; 70 | } 71 | 72 | # Banned locations (only reached if the earlier PHP entry point regexes don't match) 73 | location ~ /\.(?!well-known\/) { 74 | deny all; 75 | return 404; 76 | } 77 | 78 | location /vstats/ { 79 | alias %home%/%user%/web/%domain%/stats/; 80 | include %home%/%user%/web/%domain%/stats/auth.conf*; 81 | } 82 | 83 | include /etc/nginx/conf.d/phpmyadmin.inc*; 84 | include /etc/nginx/conf.d/phppgadmin.inc*; 85 | include /etc/nginx/conf.d/webmail.inc*; 86 | 87 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 88 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/xenforo.stpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_ssl_port% ssl http2; 9 | server_name %domain_idn% %alias_idn%; 10 | root %sdocroot%; 11 | index index.php index.html index.htm; 12 | access_log /var/log/nginx/domains/%domain%.log combined; 13 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 14 | error_log /var/log/nginx/domains/%domain%.error.log error; 15 | 16 | ssl_certificate %ssl_pem%; 17 | ssl_certificate_key %ssl_key%; 18 | ssl_stapling on; 19 | ssl_stapling_verify on; 20 | 21 | include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*; 22 | 23 | location /install/data/ { 24 | internal; 25 | } 26 | location /install/templates/ { 27 | internal; 28 | } 29 | location /internal_data/ { 30 | internal; 31 | } 32 | location /library/ { #legacy 33 | internal; 34 | } 35 | location /src/ { 36 | internal; 37 | } 38 | 39 | location / { 40 | 41 | location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ { 42 | expires max; 43 | fastcgi_hide_header "Set-Cookie"; 44 | } 45 | 46 | try_files $uri $uri/ /index.php?$uri&$args; 47 | 48 | location ~ [^/]\.php(/|$) { 49 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 50 | if (!-f $document_root$fastcgi_script_name) { 51 | return 404; 52 | } 53 | 54 | fastcgi_pass %backend_lsnr%; 55 | fastcgi_index index.php; 56 | include /etc/nginx/fastcgi_params; 57 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 58 | } 59 | } 60 | 61 | location /error/ { 62 | alias %home%/%user%/web/%domain%/document_errors/; 63 | } 64 | 65 | location ~ /\.(?!well-known\/) { 66 | deny all; 67 | return 404; 68 | } 69 | 70 | location /vstats/ { 71 | alias %home%/%user%/web/%domain%/stats/; 72 | include %home%/%user%/web/%domain%/stats/auth.conf*; 73 | } 74 | 75 | proxy_hide_header Upgrade; 76 | 77 | include /etc/nginx/conf.d/phpmyadmin.inc*; 78 | include /etc/nginx/conf.d/phppgadmin.inc*; 79 | include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*; 80 | } -------------------------------------------------------------------------------- /templates/nginx/php-fpm/xenforo.tpl: -------------------------------------------------------------------------------- 1 | #=========================================================================# 2 | # Default Web Domain Template # 3 | # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS # 4 | # https://docs.hestiacp.com/admin_docs/web.html#how-do-web-templates-work # 5 | #=========================================================================# 6 | 7 | server { 8 | listen %ip%:%web_port%; 9 | server_name %domain_idn% %alias_idn%; 10 | root %docroot%; 11 | index index.php index.html index.htm; 12 | access_log /var/log/nginx/domains/%domain%.log combined; 13 | access_log /var/log/nginx/domains/%domain%.bytes bytes; 14 | error_log /var/log/nginx/domains/%domain%.error.log error; 15 | 16 | include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*; 17 | 18 | location /install/data/ { 19 | internal; 20 | } 21 | location /install/templates/ { 22 | internal; 23 | } 24 | location /internal_data/ { 25 | internal; 26 | } 27 | location /library/ { #legacy 28 | internal; 29 | } 30 | location /src/ { 31 | internal; 32 | } 33 | 34 | location / { 35 | 36 | location ~* ^.+\.(jpeg|jpg|png|webp|gif|bmp|ico|svg|css|js)$ { 37 | expires max; 38 | fastcgi_hide_header "Set-Cookie"; 39 | } 40 | 41 | try_files $uri $uri/ /index.php?$uri&$args; 42 | 43 | location ~ [^/]\.php(/|$) { 44 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 45 | if (!-f $document_root$fastcgi_script_name) { 46 | return 404; 47 | } 48 | 49 | fastcgi_pass %backend_lsnr%; 50 | fastcgi_index index.php; 51 | include /etc/nginx/fastcgi_params; 52 | include %home%/%user%/conf/web/%domain%/nginx.fastcgi_cache.conf*; 53 | } 54 | } 55 | 56 | location /error/ { 57 | alias %home%/%user%/web/%domain%/document_errors/; 58 | } 59 | 60 | location ~ /\.(?!well-known\/) { 61 | deny all; 62 | return 404; 63 | } 64 | 65 | location /vstats/ { 66 | alias %home%/%user%/web/%domain%/stats/; 67 | include %home%/%user%/web/%domain%/stats/auth.conf*; 68 | } 69 | 70 | include /etc/nginx/conf.d/phpmyadmin.inc*; 71 | include /etc/nginx/conf.d/phppgadmin.inc*; 72 | include %home%/%user%/conf/web/%domain%/nginx.conf_*; 73 | } -------------------------------------------------------------------------------- /templates/php-fpm/Magento-PHP-7_4.tpl: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/multiphp.tpl 2 | 3 | [%domain%] 4 | listen = /run/php/php%backend_version%-fpm-%domain%.sock 5 | listen.owner = %user% 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = %user% 10 | group = %user% 11 | 12 | pm = ondemand 13 | pm.max_children = 32 14 | pm.max_requests = 16000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | php_admin_value[upload_tmp_dir] = /home/%user%/tmp 19 | php_admin_value[session.save_path] = /home/%user%/tmp 20 | php_admin_value[open_basedir] = /home/%user%/web/%domain%/public_html:/home/%user%/web/%domain%/public_shtml:/home/%user%/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 21 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@%domain% 22 | 23 | env[PATH] = /usr/local/bin:/usr/bin:/bin 24 | env[TMP] = /home/%user%/tmp 25 | env[TMPDIR] = /home/%user%/tmp 26 | env[TEMP] = /home/%user%/tmp 27 | -------------------------------------------------------------------------------- /templates/php-fpm/nobase-PHP-x_x.tpl: -------------------------------------------------------------------------------- 1 | [%domain%] 2 | listen = /run/php/php%backend_version%-fpm-%domain%.sock 3 | listen.owner = www-data 4 | listen.group = www-data 5 | listen.mode = 0660 6 | 7 | user = %user% 8 | group = %user% 9 | 10 | pm = ondemand 11 | pm.max_children = 8 12 | pm.max_requests = 4000 13 | pm.process_idle_timeout = 10s 14 | pm.status_path = /status 15 | 16 | php_admin_value[upload_tmp_dir] = /home/%user%/tmp 17 | php_admin_value[session.save_path] = /home/%user%/tmp 18 | php_admin_value[open_basedir] = / 19 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@%domain% 20 | 21 | env[PATH] = /usr/local/bin:/usr/bin:/bin 22 | env[TMP] = /home/%user%/tmp 23 | env[TMPDIR] = /home/%user%/tmp 24 | env[TEMP] = /home/%user%/tmp -------------------------------------------------------------------------------- /templates/php-fpm/shopware6_PHP-8_0.tpl: -------------------------------------------------------------------------------- 1 | ; origin-src: deb/php-fpm/multiphp.tpl 2 | 3 | [%domain%] 4 | listen = /run/php/php%backend_version%-fpm-%domain%.sock 5 | listen.owner = %user% 6 | listen.group = www-data 7 | listen.mode = 0660 8 | 9 | user = %user% 10 | group = %user% 11 | 12 | pm = ondemand 13 | pm.max_children = 8 14 | pm.max_requests = 4000 15 | pm.process_idle_timeout = 10s 16 | pm.status_path = /status 17 | 18 | 19 | php_admin_value[memory_limit]=512M 20 | php_admin_value[upload_max_filesize]=128M 21 | php_admin_value[post_max_size]=128M 22 | php_admin_value[upload_tmp_dir] = /home/%user%/tmp 23 | php_admin_value[session.save_path] = /home/%user%/tmp 24 | php_admin_value[open_basedir] = /home/%user%/.composer:/home/%user%/web/%domain%/public_html:/home/%user%/web/%domain%/private:/home/%user%/web/%domain%/public_shtml:/home/%user%/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt 25 | php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f admin@%domain% 26 | 27 | env[PATH] = /usr/local/bin:/usr/bin:/bin 28 | env[TMP] = /home/%user%/tmp 29 | env[TMPDIR] = /home/%user%/tmp 30 | env[TEMP] = /home/%user%/tmp 31 | -------------------------------------------------------------------------------- /tools/install_magento.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Country / Lang settings 4 | language="en_US" 5 | currency="GBP" 6 | timezone="Europe/London" 7 | searchengine="elasticsearch7" 8 | 9 | source /etc/profile.d/hestia.sh 10 | 11 | # magent_keys.sh located in /root/ should contain the ssh files 12 | # format (With out #) 13 | # public='public_key_here'; 14 | # private='private_key_here'; 15 | 16 | if [ ! -e "/root/keys.sh" ]; then 17 | echo "/root/keys.sh missing" 18 | exit; 19 | fi 20 | source /root/keys.sh 21 | # Version / composer are optional 22 | while [ "$1" != "" ]; do 23 | case $1 in 24 | -u | --user ) shift 25 | user="$1" 26 | ;; 27 | -d | --domain ) shift 28 | domain="$1" 29 | ;; 30 | -f | --fname ) shift 31 | fname="$1" 32 | ;; 33 | -l | --lname ) shift 34 | lname="$1" 35 | ;; 36 | 37 | -a | --admin ) shift 38 | admin="$1" 39 | ;; 40 | -p | --password ) shift 41 | password="$1" 42 | ;; 43 | -e | --email ) shift 44 | email="$1" 45 | ;; 46 | -r | --redis ) shift 47 | redis="$1" 48 | ;; 49 | -b | --backend ) shift 50 | backend="$1" 51 | ;; 52 | -v | --version ) shift 53 | version="$1" 54 | ;; 55 | -c | --composer ) shift 56 | composer="$1" 57 | ;; 58 | -w | --php ) shift 59 | php="$1" 60 | ;; 61 | esac 62 | shift 63 | done 64 | 65 | ############### 66 | 67 | ############### 68 | 69 | # check php version is set if not set 7.4 as default 70 | if [ -z "$php" ]; then 71 | php="8.3" 72 | fi 73 | # Check if user exists 74 | if [ ! -e /usr/local/hestia/data/users/$user/user.conf ]; then 75 | echo "$user does not exits"; 76 | exit; 77 | fi 78 | 79 | test=$(redis-cli INFO | grep ^db$redis:) 80 | if [ ! -z "$test" ]; then 81 | echo "Redis Database $redis already exists" 82 | exit; 83 | fi 84 | 85 | test=$(redis-cli INFO | grep ^db$backend:) 86 | if [ ! -z "$test" ]; then 87 | echo "Redis Database $backend already exists" 88 | exit; 89 | fi 90 | 91 | # Create composer folders 92 | v-add-user-composer $user 93 | rm /home/$user/.composer/composer 94 | if [ -z $composer ]; then 95 | wget --tries=3 --timeout=15 --read-timeout=15 --waitretry=3 --no-dns-cache https://getcomposer.org/composer-2.phar --quiet -O /home/$user/.composer/composer 96 | else 97 | wget --tries=3 --timeout=15 --read-timeout=15 --waitretry=3 --no-dns-cache https://getcomposer.org/composer-$composer.phar --quiet -O /home/$user/.composer/composer 98 | fi 99 | chmod +x /home/$user/.composer/composer 100 | chown $user:$user /home/$user/.composer/composer 101 | 102 | v-change-user-shell $user 'bash' 103 | 104 | 105 | web=$(grep -F -H "DOMAIN='$domain'" /usr/local/hestia/data/users/$user/web.conf); 106 | 107 | if [ -z "$web" ]; then 108 | #echo "Domain doesn't exits" 109 | domain2=${domain//www./} 110 | web=$(grep -F -H "DOMAIN='$domain2'" /usr/local/hestia/data/users/$user/web.conf); 111 | if [ -z "$web" ]; then 112 | echo "Domain doesn't exits" 113 | exit; 114 | fi 115 | fi 116 | # Create auth.json for composer 117 | mkdir -p /home/$user/.config/composer 118 | echo -e "{\n\t\"http-basic\":\n\t\t{\n\t\t\"repo.magento.com\": {\n\t\t\t\"username\": \"$public\",\n\t\t\t\"password\": \"$private\"\n\t\t}\n\t}\n}" > /home/$user/.config/composer/auth.json 119 | chown $user:$user /home/$user/.config/composer/auth.json 120 | 121 | domain2=${domain//www./} 122 | 123 | runuser -l $user -c "rm -f -r ~/web/$domain2/public_html/index.html" 124 | runuser -l $user -c "rm -f -r ~/web/$domain2/public_html/robots.txt" 125 | 126 | #cd /home/$user/web/$domain2/public_html/ 127 | echo "/home/$user/web/$domain2/public_html/." 128 | 129 | 130 | if [ -z $version ]; then 131 | runuser -l $user -c "/usr/bin/php$php /home/$user/.composer/composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /home/$user/web/$domain2/public_html/" 132 | else 133 | runuser -l $user -c "/usr/bin/php$php /home/$user/.composer/composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=$version /home/$user/web/$domain2/public_html/" 134 | 135 | fi 136 | 137 | 138 | db_user=$( head /dev/urandom | tr -dc a-z0-9 | head -c 6); 139 | db_password=$( head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16); 140 | fdb_user=$(echo "$user"_"$db_user"); 141 | 142 | echo "$user"_"$db_user" 143 | 144 | v-add-database $user $db_user $db_user $db_password "mysql" "localhost" 145 | 146 | runuser -l $user -c "/home/$user/web/$domain2/public_html/bin/magento setup:install --base-url=https://$domain/ \ 147 | --base-url-secure=https://$domain/ \ 148 | --db-host=localhost --db-name=$fdb_user --db-user=$fdb_user --db-password=$db_password \ 149 | --admin-firstname=$fname --admin-lastname=$lname --admin-email=$email \ 150 | --admin-user=$admin --admin-password=$password --language=$language \ 151 | --currency=$currency --timezone=$timezone --use-rewrites=1 \ 152 | --search-engine=elasticsearch7 --use-secure-admin=1 --use-secure=1 \ 153 | --cache-backend=redis --cache-backend-redis-server=127.0.0.1 --cache-backend-redis-db=$backend \ 154 | --page-cache=redis --page-cache-redis-server=127.0.0.1 --page-cache-redis-db=$redis --elasticsearch-index-prefix $user" 155 | 156 | 157 | v-add-cron-job $user "*/5" "*" "*" "*" "*" "/usr/bin/php$php /home/$user/web/$domain2/public_html/bin/magento cron:run" 158 | 159 | #if [ "$php" = '7.4' ]; then 160 | template="Magento-PHP-8.3" 161 | 162 | v-change-web-domain-backend-tpl $user $domain $template 163 | --------------------------------------------------------------------------------