You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
Hi
i am running a server with nginx and page speed module and it's working great and working yesterday. Today i see my server is down, and it's not working anymore with the pagespeed module. below is my server config file .
`user www-data;
worker_processes 1;
pid /run/nginx.pid;
#include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 3096;
use epoll;
# Accept as many connections as possible, after nginx gets notification about a new connection.
multi_accept on;
accept_mutex on;
# Workflows will take turns Connection
}
http {
##
# Basic Settings
##
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
access_log off;
log_not_found off;
types_hash_max_size 2048;
types_hash_bucket_size 64;
client_max_body_size 50m;
server_tokens off;
server_name_in_redirect off;
error_log /var/log/nginx-error.log warn;
reset_timedout_connection on;
send_timeout 3m;
keepalive_timeout 300;
keepalive_requests 100000;
client_body_buffer_size 50k;
client_header_buffer_size 3k;
large_client_header_buffers 2 6k;
client_body_timeout 10;
client_header_timeout 10;
include mime.types;
default_type application/octet-stream;
# Logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
# Gzip Settings
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 32 16k;
gzip_http_version 1.1;
gzip_min_length 250;
gzip_types image/jpeg image/bmp image/svg+xml text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon font/ttf font/eot font/otf font/woff2 application/x-font application/x-font-opentype application/x-font-otf font/woff application/x-font-truetype application/x-font-ttf application/x-font-woff application/x-font-woff2 image/webp;
# Turn on caching of open files
open_file_cache max=10000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
# buffers
fastcgi_read_timeout 300;
# Connect php-fpm via socket - works faster than by tcp
upstream php-fpm {
# This must corespond to "listen" directive in php-fpm pool
server unix:/run/php-fpm/php7.4-fpm.sock;
}
Hi
i am running a server with nginx and page speed module and it's working great and working yesterday. Today i see my server is down, and it's not working anymore with the pagespeed module. below is my server config file .
`user www-data;
worker_processes 1;
pid /run/nginx.pid;
#include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 3096;
use epoll;
# Accept as many connections as possible, after nginx gets notification about a new connection.
multi_accept on;
accept_mutex on;
# Workflows will take turns Connection
}
http {
##
# Basic Settings
##
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
access_log off;
log_not_found off;
types_hash_max_size 2048;
types_hash_bucket_size 64;
client_max_body_size 50m;
server_tokens off;
server_name_in_redirect off;
error_log /var/log/nginx-error.log warn;
reset_timedout_connection on;
send_timeout 3m;
keepalive_timeout 300;
keepalive_requests 100000;
client_body_buffer_size 50k;
client_header_buffer_size 3k;
large_client_header_buffers 2 6k;
client_body_timeout 10;
client_header_timeout 10;
include mime.types;
default_type application/octet-stream;
# Logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
# Gzip Settings
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 32 16k;
gzip_http_version 1.1;
gzip_min_length 250;
gzip_types image/jpeg image/bmp image/svg+xml text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon font/ttf font/eot font/otf font/woff2 application/x-font application/x-font-opentype application/x-font-otf font/woff application/x-font-truetype application/x-font-ttf application/x-font-woff application/x-font-woff2 image/webp;
# Turn on caching of open files
open_file_cache max=10000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
# buffers
fastcgi_read_timeout 300;
# Connect php-fpm via socket - works faster than by tcp
upstream php-fpm {
# This must corespond to "listen" directive in php-fpm pool
server unix:/run/php-fpm/php7.4-fpm.sock;
}
}`
and here is domain block
`server {
listen 94.237.89.197:80;
listen [2a04:3542:1000:910:6cd2:15ff:fe93:755c]:80;
}
server {
listen 94.237.89.197:443 ssl http2;
listen [2a04:3542:1000:910:6cd2:15ff:fe93:755c]:443 ssl http2;
server_name domain.com www.domain.com *.domain.com;
root /var/www/domain;
add_header Content-Security-Policy upgrade-insecure-requests;
add_header Expect-CT 'enforce; max-age=7776000';
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
Optimize session cache
ssl_session_cache shared:SSL:50m;
ssl_session_timeout 24h;
Enable session tickets
ssl_session_tickets off;
location ~ .php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}`
The text was updated successfully, but these errors were encountered: