hey am also facing same problem its my .conf file any one help me to fix....
Quoteproxy_cache_path /var/nginx/cache/smithikakart levels=1 keys_zone=smithikakart:128m inactive=1h;
limit_req_zone $binary_remote_addr zone=smithikakart_smithikakart_in:1m rate=15r/m;
server {
listen xxxxxxxxx:80 ;
server_name smithikakart.in www.smithikakart.in mail.smithikakart.in;
root /home/smithikakart/public_html;gzip on;
etag on;
gzip_proxied any;
gzip_comp_level 3;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
gzip_vary on;brotli_static on;
brotli on;
brotli_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
brotli_comp_level 4;proxy_bind xxxxxxxxxxxxx;
proxy_cache smithikakart;
proxy_ignore_headers Cache-Control Expires ;
proxy_cache_valid 200 14400s;
proxy_cache_valid 406 0s;
proxy_cache_valid 404 10s;
proxy_cache_valid 500 0;
proxy_cache_use_stale updating error timeout http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_key "$scheme$request_method$host$request_uri";
proxy_cache_convert_head on;include errors.conf;
rewrite ^/cpanel/?$ https://$hostname:2083/ permanent;
rewrite ^/whm/?$ https://$hostname:2087/ permanent;
rewrite ^/webmail/?$ https://$hostname:2096/ permanent;
tcp_nodelay off;if ($request_uri ~ "^(.*/wp-admin|.*/administrator|/admin|/user|.*/wp-cron\.php|/.*login\.php|/opcache\.php|.*/xmlrpc\.php|.*/phpinfo\.php|/basket.*|/cart.*|/my-account.*|/checkout.*|/addons.*)") {
set $cache_bypass 1;
}
location ~* \.(ico|jpe?g|gif|png|bmp|svg|tiff|exe|dmg|zip|rar|7z|docx?|xlsx?|js|css|less|sass|scss|ttf|woff2?|mp3|mp4|mkv|avi|mov|mpe?g|aac|wav|flac)$ {
expires 7d;
add_header Cache-Control "public, must-revalidate";
add_header X-Proxy-Cache "STATIC/TYPE";
}location ~ "^(/wp-content/uploads)" {
expires 7d;
add_header Cache-Control "public, must-revalidate";
add_header X-Proxy-Cache "STATIC/PATH";
}if ($http_cookie ~ "(_logged_in_|items_in_cart|jsid)") {
set $cache_bypass 1;
}location ~ "^(/.*login\.php|.*/xmlrpc\.php|.*/wp-cron\.php)" {
limit_req_status 429;
limit_req zone=smithikakart_smithikakart_in burst=8 nodelay;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_no_cache 1;
proxy_cache_bypass 1;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_pass http://xxxxxxx:8080;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_no_cache $cache_bypass;
proxy_cache_bypass $cache_bypass;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_pass http://xxxxxxxxxxx:8080;
}location ~ ^/purge(/.*) {
proxy_cache_purge smithikakart "$scheme$request_method$host$1";
}
}server {
listen xxxxxxxx:80;
server_name cpanel.smithikakart.in;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxx;
proxy_pass http://xxxxxxxxxxxx/;
}
}server {
listen xxxxxxxxxxxxxx;
server_name webmail.smithikakart.in;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxxxxx;
proxy_pass http://xxxxxxxxxx:8080/;
}
}
server {listen xxxxxxxxxxxx:80;
server_name whm.smithikakart.in;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxxxxx;
proxy_pass http://xxxxxxxxxxx:2086/;
}
}server {
listen xxxxxxx:80;
server_name webdisk.smithikakart.in;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxx;
proxy_pass xxxxxxxxxxxx/;
}
}
server {listen xxxxxxxxxx:443 ssl http2 ;
server_name smithikakart.in www.smithikakart.in mail.smithikakart.in;
ssl_certificate /var/nginx/certs/smithikakart-in.pem;
ssl_certificate_key /var/nginx/certs/smithikakart-in.key;
root /home/smithikakart/public_html;gzip on;
etag on;
gzip_proxied any;
gzip_comp_level 3;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
gzip_vary on;brotli_static on;
brotli on;
brotli_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
brotli_comp_level 4;proxy_bind xxxxxxxxxxx;
proxy_cache smithikakart;
proxy_ignore_headers Cache-Control Expires ;
proxy_cache_valid 200 14400s;
proxy_cache_valid 406 0s;
proxy_cache_valid 404 10s;
proxy_cache_valid 500 0;
proxy_cache_use_stale updating error timeout http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_key "$scheme$request_method$host$request_uri";
proxy_cache_convert_head on;include errors.conf;
rewrite ^/cpanel/?$ https://$hostname:2083/ permanent;
rewrite ^/whm/?$ https://$hostname:2087/ permanent;
rewrite ^/webmail/?$ https://$hostname:2096/ permanent;
tcp_nodelay off;if ($request_uri ~ "^(.*/wp-admin|.*/administrator|/admin|/user|.*/wp-cron\.php|/.*login\.php|/opcache\.php|.*/xmlrpc\.php|.*/phpinfo\.php|/basket.*|/cart.*|/my-account.*|/checkout.*|/addons.*)") {
set $cache_bypass 1;
}
location ~* \.(ico|jpe?g|gif|png|bmp|svg|tiff|exe|dmg|zip|rar|7z|docx?|xlsx?|js|css|less|sass|scss|ttf|woff2?|mp3|mp4|mkv|avi|mov|mpe?g|aac|wav|flac)$ {
expires 7d;
add_header Cache-Control "public, must-revalidate";
add_header X-Proxy-Cache "STATIC/TYPE";
}location ~ "^(/wp-content/uploads)" {
expires 7d;
add_header Cache-Control "public, must-revalidate";
add_header X-Proxy-Cache "STATIC/PATH";
}if ($http_cookie ~ "(_logged_in_|items_in_cart|jsid)") {
set $cache_bypass 1;
}location ~ "^(/.*login\.php|.*/xmlrpc\.php|.*/wp-cron\.php)" {
limit_req_status 429;
limit_req zone=smithikakart_smithikakart_in burst=8 nodelay;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_no_cache 1;
proxy_cache_bypass 1;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ssl_verify off;
proxy_ssl_session_reuse off;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://xxxxxxxxxxx:8443;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_no_cache $cache_bypass;
proxy_cache_bypass $cache_bypass;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_ssl_verify off;
proxy_ssl_session_reuse off;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://xxxxxxxxxxxx;
}location ~ ^/purge(/.*) {
proxy_cache_purge smithikakart "$scheme$request_method$host$1";
}
}server {
listen xxxxxxxxxx:443 ssl http2;
server_name cpanel.smithikakart.in;
ssl_certificate /var/nginx/certs/smithikakart-in.pem;
ssl_certificate_key /var/nginx/certs/smithikakart-in.key;ssl_prefer_server_ciphers on;
ssl_buffer_size 8k;ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256';
ssl_ecdh_curve secp384r1;
ssl_dhparam /var/nginx/dhparams.pem;http2_idle_timeout 5m;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxx;
proxy_ssl_verify off;
proxy_ssl_session_reuse off;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_set_header X-HTTPS 1;
proxy_pass http://xxxxxxxxxxx:2082/;
}
}server {
listen xxxxxxxxxxxx:443 ssl http2;
server_name webmail.smithikakart.in;
ssl_certificate /var/nginx/certs/smithikakart-in.pem;
ssl_certificate_key /var/nginx/certs/smithikakart-in.key;ssl_prefer_server_ciphers on;
ssl_buffer_size 8k;ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256';
ssl_ecdh_curve secp384r1;
ssl_dhparam /var/nginx/dhparams.pem;http2_idle_timeout 5m;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxxxxxxx;
proxy_ssl_verify off;
proxy_ssl_session_reuse off;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_set_header X-HTTPS 1;
proxy_pass http://xxxxxxxxxxxx:8080/;
}
}
server {listen xxxxxxxxx:443 ssl http2;
server_name whm.smithikakart.in;
ssl_certificate /var/nginx/certs/smithikakart-in.pem;
ssl_certificate_key /var/nginx/certs/smithikakart-in.key;ssl_prefer_server_ciphers on;
ssl_buffer_size 8k;ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256';
ssl_ecdh_curve secp384r1;
ssl_dhparam /var/nginx/dhparams.pem;http2_idle_timeout 5m;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxxx;
proxy_ssl_verify off;
proxy_ssl_session_reuse off;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_set_header X-HTTPS 1;
proxy_pass http://xxxxxxxxxxx:2086/;
}
}server {
listen xxxxxxxxxxxxx:443 ssl http2;
server_name webdisk.smithikakart.in;
ssl_certificate /var/nginx/certs/smithikakart-in.pem;
ssl_certificate_key /var/nginx/certs/smithikakart-in.key;ssl_prefer_server_ciphers on;
ssl_buffer_size 8k;ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256';
ssl_ecdh_curve secp384r1;
ssl_dhparam /var/nginx/dhparams.pem;http2_idle_timeout 5m;
location ~ "^/(\.well-known\/|[A-Fa-f0-9]{32}.txt$)" {
root /home/smithikakart/public_html;
}location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;proxy_bind xxxxxxxxxxxxx;
proxy_ssl_verify off;
proxy_ssl_session_reuse off;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_set_header X-HTTPS 1;
proxy_pass http://xxxxxxxxxxxx:2077/;
}
}