• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Browser Caching dont working

Marcseeber

New Pleskian
i use this

gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
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 image/svg+xml application/x-font-ttf font/opentype;
location ~* \.(jpg|png|gif|jpeg|css|js)$ {
Expires 1h;
add_header Pragma public;
add_header Cache-Control "public";
}

all Picture and css have error 500 Header
 
nginx: [emerg] "gzip" directive is duplicate in /etc/nginx/conf.d/gzip.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
________________________________________________________

#user nginx;
worker_processes 1;
#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
#pid /var/run/nginx.pid;
include /etc/nginx/modules.conf.d/*.conf;
events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server_tokens off;
include /etc/nginx/conf.d/*.conf;
}
# override global parameters e.g. worker_rlimit_nofile
include /etc/nginx/*global_params;
 
Last edited:
gzip options can be duplicated in /etc/nginx/nginx.conf
Check it.
 
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

remove form the nginx.conf

and testet


nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/gzip.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
 
Try to remove /etc/nginx/conf.d/gzip.conf and add necessary parameters for gzip directly to /etc/nginx/nginx.conf
 
http://www.metasearch.eu/?q=reisen

css and Picture don't working

http://www.metasearch.eu/php.PNG

error

http://www.seebi.net/php.PNG


remove this form .htaccess

all working

gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
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 image/svg+xml application/x-font-ttf font/opentype;

location ~* \.(jpg|png|gif|jpeg|css|js)$ {
Expires 1h;
add_header Pragma public;
add_header Cache-Control "public";
}


Browser Caching disable and not working
 
Last edited:
Back
Top