Skip to content

Instantly share code, notes, and snippets.

View kanibaspinar's full-sized avatar
🏠
Working from home

Kani kanibaspinar

🏠
Working from home
View GitHub Profile
@kanibaspinar
kanibaspinar / nginx.conf
Created February 14, 2017 11:13
Nginx - HTTP2.0 Performance Configuration
# Please do not use http2 integration with nginx. Available in http and server ranges.
# Bu ayarları http2 etkin edilmeden kullanmayın. Aksi durumda performans ve erişim sorunları yaşarsınız.
http2_chunk_size 8k;
http2_body_preread_size 64k;
http2_idle_timeout 3m;
http2_max_concurrent_streams 128;
http2_max_header_size 16k;
http2_max_field_size 4k;
http2_recv_buffer_size 256k;
http2_max_requests 100000;
@kanibaspinar
kanibaspinar / wordpress.conf
Created June 18, 2016 09:11
Wordpress security and performance optimization with Nginx
##Please create a file folder named wordpress.conf in /etc/nginx/conf.d insert into these codes##
# Common deny or internal locations, to help prevent access to not-public areas
location ~* wp-admin/includes { deny all; }
location ~* wp-includes/theme-compat/ { deny all; }
location ~* wp-includes/js/tinymce/langs/.*\.php { deny all; }
location /wp-content/ { internal; }
location /wp-includes/ { internal; }
location ~ /(\.|wp-config.php|readme.html|license.txt) { deny all; }
# Add trailing slash to */wp-admin requests.