User Tools

Site Tools


servers:bsd:nginx:wordpress

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
servers:bsd:nginx:wordpress [2026/01/15 03:41] – [Database] Sean Rhoneservers:bsd:nginx:wordpress [2026/03/05 16:08] (current) Sean Rhone
Line 76: Line 76:
 ; General ; General
 php_value[date.timezone] = "America/New_York" php_value[date.timezone] = "America/New_York"
- 
-; WordPress 
-php_value[post_max_size] = "10M" 
-php_value[upload_max_filesize] = "10M" 
  
 ; End</code> ; End</code>
Line 101: Line 97:
  fastcgi_pass '127.0.0.1:9004';  fastcgi_pass '127.0.0.1:9004';
 } }
 +
 +# End</code>
 +
 +===== Themes Deny =====
 +
 +  * https://github.com/WordPress/WordPress/tree/master/wp-content/themes
 +  * Deny all except ''twentytwentyfive''
 +
 +  su -
 +
 +  ee '/usr/local/etc/freenginx/default.d/wp-themes-deny.conf'
 +
 +<code>
 + location '~' '/wp-content/themes/(twentyeleven|twentyfifteen|twentyfourteen|twentynineteen|twentyseventeen|twentysixteen|twentyten|twentythirteen|twentytwelve|twentytwentyfour|twentytwentyone|twentytwentythree|twentytwentytwo|twentytwenty)/' {
 +  deny 'all';
 + }
  
 # End</code> # End</code>
Line 120: Line 132:
  include '/usr/local/etc/freenginx/default.d/blog.conf';  include '/usr/local/etc/freenginx/default.d/blog.conf';
  include '/usr/local/etc/freenginx/default.d/headers.conf';  include '/usr/local/etc/freenginx/default.d/headers.conf';
- + include '/usr/local/etc/freenginx/default.d/wp-themes-deny.conf';
- client_max_body_size '10M';+
  
 # access_log '/var/log/nginx/blog-access.log'; # access_log '/var/log/nginx/blog-access.log';
/usr/local/www/wiki/data/pages/servers/bsd/nginx/wordpress.txt · Last modified: by Sean Rhone