Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - devius

Pages: [1]
1
Nginx / Updating failed. The response is not a valid JSON response.
« on: October 23, 2020, 09:15:55 PM »
Centos 8
CWP Pro

Nginx+PHP-FPM

Wordpress

Updating failed. The response is not a valid JSON response.



Code: [Select]
server {
listen 195.69.140.226:443 ssl ;
server_name glitechs.com  www.glitechs.com;
root /home/glitech/public_html;
index index.php index.html index.htm;
access_log /usr/local/apache/domlogs/glitechs.com.bytes bytes;
access_log /usr/local/apache/domlogs/glitechs.com.log combined;
error_log /usr/local/apache/domlogs/glitechs.com.error.log error;

ssl_certificate      /etc/pki/tls/certs/glitechs.com.bundle;
ssl_certificate_key  /etc/pki/tls/private/glitechs.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
ssl_prefer_server_ciphers   on;

ssl_session_cache   shared:SSL:10m;
ssl_session_timeout 60m;


location / {

add_header Strict-Transport-Security "max-age=31536000";
add_header X-Content-Type-Options nosniff;

location ~.*\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}

location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return  404;
}

fastcgi_pass    unix:/opt/alt/php-fpm74/usr/var/sockets/glitech.sock;
fastcgi_index   index.php;
include         /etc/nginx/fastcgi_params;
}

}

location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;}

disable_symlinks if_not_owner from=/home/glitech/public_html;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 195.69.140.226:443 ssl ;
server_name webmail.glitechs.com;

access_log /usr/local/apache/domlogs/glitechs.com.bytes bytes;
access_log /usr/local/apache/domlogs/glitechs.com.log combined;
error_log /usr/local/apache/domlogs/glitechs.com.error.log error;

ssl_certificate      /etc/pki/tls/certs/glitechs.com.bundle;
ssl_certificate_key  /etc/pki/tls/private/glitechs.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
ssl_prefer_server_ciphers   on;

ssl_session_cache   shared:SSL:10m;
ssl_session_timeout 60m;

location / {
proxy_pass  http://127.0.0.1:2095;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/glitech/public_html;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 195.69.140.226:443 ssl ;
server_name mail.glitechs.com;

access_log /usr/local/apache/domlogs/glitechs.com.bytes bytes;
access_log /usr/local/apache/domlogs/glitechs.com.log combined;
error_log /usr/local/apache/domlogs/glitechs.com.error.log error;

ssl_certificate      /etc/pki/tls/certs/glitechs.com.bundle;
ssl_certificate_key  /etc/pki/tls/private/glitechs.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
ssl_prefer_server_ciphers   on;

ssl_session_cache   shared:SSL:10m;
ssl_session_timeout 60m;

location / {
proxy_pass  http://127.0.0.1:2095;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/glitech/public_html;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}

server {
listen 195.69.140.226:443 ssl ;
server_name cpanel.glitechs.com;

access_log /usr/local/apache/domlogs/glitechs.com.bytes bytes;
access_log /usr/local/apache/domlogs/glitechs.com.log combined;
error_log /usr/local/apache/domlogs/glitechs.com.error.log error;

ssl_certificate      /etc/pki/tls/certs/glitechs.com.bundle;
ssl_certificate_key  /etc/pki/tls/private/glitechs.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+aRSA!RC4:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS;
ssl_prefer_server_ciphers   on;

ssl_session_cache   shared:SSL:10m;
ssl_session_timeout 60m;

location / {
proxy_pass  https://127.0.0.1:2083;
include proxy.inc;
}

location /pma {
proxy_pass  https://127.0.0.1:2031;
include proxy.inc;
}

location /roundcube {
proxy_pass  https://127.0.0.1:2031;
include proxy.inc;
}

location ~ /\.ht    {deny all;}
location ~ /\.svn/  {deny all;}
location ~ /\.git/  {deny all;}
location ~ /\.hg/   {deny all;}
location ~ /\.bzr/  {deny all;}

disable_symlinks if_not_owner from=/home/glitech/public_html;

location /.well-known/acme-challenge {
default_type "text/plain";
alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
}
}


Pages: [1]