<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rhomicom.com/index.php?action=history&amp;feed=atom&amp;title=Sample_full_nginx.conf_file</id>
	<title>Sample full nginx.conf file - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rhomicom.com/index.php?action=history&amp;feed=atom&amp;title=Sample_full_nginx.conf_file"/>
	<link rel="alternate" type="text/html" href="https://wiki.rhomicom.com/index.php?title=Sample_full_nginx.conf_file&amp;action=history"/>
	<updated>2026-04-04T09:06:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.rhomicom.com/index.php?title=Sample_full_nginx.conf_file&amp;diff=180&amp;oldid=prev</id>
		<title>Admin at 17:35, 31 January 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.rhomicom.com/index.php?title=Sample_full_nginx.conf_file&amp;diff=180&amp;oldid=prev"/>
		<updated>2021-01-31T17:35:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:35, 31 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;syntaxhighlight lang=&amp;quot;nginx&amp;quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# For more information on configuration, see:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# For more information on configuration, see:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#   * Official English Documentation: http://nginx.org/en/docs/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#   * Official English Documentation: http://nginx.org/en/docs/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l213&quot; &gt;Line 213:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 213:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key rho_wiki-rho:diff::1.12:old-179:rev-180 --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.rhomicom.com/index.php?title=Sample_full_nginx.conf_file&amp;diff=179&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;&lt;code&gt; # For more information on configuration, see: #   * Official English Documentation: http://nginx.org/en/docs/ #   * Official Russian Documentation: http://nginx.org/ru/...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rhomicom.com/index.php?title=Sample_full_nginx.conf_file&amp;diff=179&amp;oldid=prev"/>
		<updated>2021-01-31T17:32:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;code&amp;gt; # For more information on configuration, see: #   * Official English Documentation: http://nginx.org/en/docs/ #   * Official Russian Documentation: http://nginx.org/ru/...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;code&amp;gt;&lt;br /&gt;
# For more information on configuration, see:&lt;br /&gt;
#   * Official English Documentation: http://nginx.org/en/docs/&lt;br /&gt;
#   * Official Russian Documentation: http://nginx.org/ru/docs/&lt;br /&gt;
&lt;br /&gt;
user nginx;&lt;br /&gt;
worker_processes auto;&lt;br /&gt;
error_log /var/log/nginx/error.log;&lt;br /&gt;
pid /run/nginx.pid;&lt;br /&gt;
&lt;br /&gt;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.&lt;br /&gt;
include /usr/share/nginx/modules/*.conf;&lt;br /&gt;
&lt;br /&gt;
events {&lt;br /&gt;
    worker_connections 1024;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
http {&lt;br /&gt;
    log_format  main  '$remote_addr - $remote_user [$time_local] &amp;quot;$request&amp;quot; '&lt;br /&gt;
                      '$status $body_bytes_sent &amp;quot;$http_referer&amp;quot; '&lt;br /&gt;
                      '&amp;quot;$http_user_agent&amp;quot; &amp;quot;$http_x_forwarded_for&amp;quot;';&lt;br /&gt;
&lt;br /&gt;
    access_log  /var/log/nginx/access.log  main;&lt;br /&gt;
&lt;br /&gt;
    sendfile            on;&lt;br /&gt;
    tcp_nopush          on;&lt;br /&gt;
    tcp_nodelay         on;&lt;br /&gt;
    keepalive_timeout   65;&lt;br /&gt;
    types_hash_max_size 2048;&lt;br /&gt;
&lt;br /&gt;
    include             /etc/nginx/mime.types;&lt;br /&gt;
    default_type        application/octet-stream;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    server_names_hash_bucket_size 128;&lt;br /&gt;
    server_tokens off;&lt;br /&gt;
    autoindex off;&lt;br /&gt;
    client_max_body_size 100M;&lt;br /&gt;
&lt;br /&gt;
 #   gzip on;&lt;br /&gt;
#    gzip_proxied any;&lt;br /&gt;
 #   gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;&lt;br /&gt;
  #  gzip_vary on;&lt;br /&gt;
   # gzip_disable &amp;quot;msie6&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# BEGIN W3TC Browser Cache&lt;br /&gt;
gzip on;&lt;br /&gt;
gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword $&lt;br /&gt;
add_header Referrer-Policy &amp;quot;no-referrer-when-downgrade&amp;quot;;&lt;br /&gt;
# END W3TC Browser Cache&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    # Load modular configuration files from the /etc/nginx/conf.d directory.&lt;br /&gt;
    # See http://nginx.org/en/docs/ngx_core_module.html#include&lt;br /&gt;
    # for more information.&lt;br /&gt;
    include /etc/nginx/conf.d/*.conf;&lt;br /&gt;
&lt;br /&gt;
    server {&lt;br /&gt;
           listen       80 default_server;&lt;br /&gt;
           listen       [::]:80 default_server;&lt;br /&gt;
           server_name  _;&lt;br /&gt;
           root         /usr/share/nginx/html;&lt;br /&gt;
&lt;br /&gt;
           # Load configuration files for the default server block.&lt;br /&gt;
           include /etc/nginx/default.d/*.conf;&lt;br /&gt;
   index  index.php index.html index.htm;&lt;br /&gt;
&lt;br /&gt;
   #Serve content in these writable folders as static files&lt;br /&gt;
       #Don't execute any scripts within&lt;br /&gt;
       location ^~ /wp-content/ {&lt;br /&gt;
       }&lt;br /&gt;
       location ^~ /pem/ {&lt;br /&gt;
       }&lt;br /&gt;
       location ^~ /tmp/ {&lt;br /&gt;
       }&lt;br /&gt;
       location ^~ /samples/ {&lt;br /&gt;
       }&lt;br /&gt;
       location ^~ /images/ {&lt;br /&gt;
       }&lt;br /&gt;
&lt;br /&gt;
       location ~ &amp;quot;^.*/wp-content/.*$&amp;quot; {&lt;br /&gt;
       }&lt;br /&gt;
       location ~ &amp;quot;^.*/pem/.*$&amp;quot; {&lt;br /&gt;
       }&lt;br /&gt;
       location ~ &amp;quot;^.*/tmp/.*$&amp;quot; {&lt;br /&gt;
       }&lt;br /&gt;
       location ~ &amp;quot;^.*/samples/.*$&amp;quot; {&lt;br /&gt;
       }&lt;br /&gt;
       location ~ &amp;quot;^.*/images/.*$&amp;quot; {&lt;br /&gt;
       }&lt;br /&gt;
&lt;br /&gt;
           location / {&lt;br /&gt;
                   try_files $uri $uri/ /index.php$is_args$args;&lt;br /&gt;
           }&lt;br /&gt;
&lt;br /&gt;
   location ~ [^/]\.php(.*) {&lt;br /&gt;
              fastcgi_split_path_info ^(.+\.php)(/.*)$;&lt;br /&gt;
              set $path_info $fastcgi_path_info;&lt;br /&gt;
              fastcgi_index index.php;&lt;br /&gt;
              fastcgi_pass unix:/run/php-fpm/www.sock;&lt;br /&gt;
              include /etc/nginx/mime.types;&lt;br /&gt;
              include fastcgi_params;&lt;br /&gt;
              fastcgi_param PATH_INFO  $path_info;&lt;br /&gt;
              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
              fastcgi_read_timeout 600s;&lt;br /&gt;
          }&lt;br /&gt;
          # Deny access to . files, for security&lt;br /&gt;
           location ~ /\. {&lt;br /&gt;
               log_not_found off;&lt;br /&gt;
               deny all;&lt;br /&gt;
           }&lt;br /&gt;
           error_page 404 /404.html;&lt;br /&gt;
               location = /40x.html {&lt;br /&gt;
               }&lt;br /&gt;
&lt;br /&gt;
       error_page 500 502 503 504 /50x.html;&lt;br /&gt;
           location = /50x.html {&lt;br /&gt;
       }&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
# Settings for a TLS enabled server.&lt;br /&gt;
&lt;br /&gt;
   server {&lt;br /&gt;
       listen       443 ssl http2 default_server;&lt;br /&gt;
       listen       [::]:443 ssl http2 default_server;&lt;br /&gt;
       server_name  _;&lt;br /&gt;
       root         /usr/share/nginx/html;&lt;br /&gt;
&lt;br /&gt;
       ssl_certificate &amp;quot;/etc/pki/nginx/server.crt&amp;quot;;&lt;br /&gt;
       ssl_certificate_key &amp;quot;/etc/pki/nginx/private/server.key&amp;quot;;&lt;br /&gt;
       ssl_session_cache shared:SSL:1m;&lt;br /&gt;
       ssl_session_timeout  10m;&lt;br /&gt;
       ssl_ciphers PROFILE=SYSTEM;&lt;br /&gt;
       ssl_prefer_server_ciphers on;&lt;br /&gt;
&lt;br /&gt;
       # Add DH parameters&lt;br /&gt;
       ssl_dhparam /etc/pki/nginx/dhparam.pem;&lt;br /&gt;
       # Load configuration files for the default server block.&lt;br /&gt;
       include /etc/nginx/default.d/*.conf;&lt;br /&gt;
index  index.php index.html index.htm;&lt;br /&gt;
&lt;br /&gt;
#Serve content in these writable folders as static files&lt;br /&gt;
#Don't execute any scripts within&lt;br /&gt;
location ^~ /wp-content/ {&lt;br /&gt;
}&lt;br /&gt;
location ^~ /pem/ {&lt;br /&gt;
}&lt;br /&gt;
location ^~ /tmp/ {&lt;br /&gt;
}&lt;br /&gt;
location ^~ /samples/ {&lt;br /&gt;
}&lt;br /&gt;
location ^~ /images/ {&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
location ~ &amp;quot;^.*/wp-content/.*$&amp;quot; {&lt;br /&gt;
}&lt;br /&gt;
location ~ &amp;quot;^.*/pem/.*$&amp;quot; {&lt;br /&gt;
}&lt;br /&gt;
location ~ &amp;quot;^.*/tmp/.*$&amp;quot; {&lt;br /&gt;
}&lt;br /&gt;
location ~ &amp;quot;^.*/samples/.*$&amp;quot; {&lt;br /&gt;
}&lt;br /&gt;
location ~ &amp;quot;^.*/images/.*$&amp;quot; {&lt;br /&gt;
}&lt;br /&gt;
location / {&lt;br /&gt;
            try_files $uri $uri/ /index.php$is_args$args;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
location ~ [^/]\.php(.*) {&lt;br /&gt;
       fastcgi_split_path_info ^(.+\.php)(/.*)$;&lt;br /&gt;
       set $path_info $fastcgi_path_info;&lt;br /&gt;
       fastcgi_index index.php;&lt;br /&gt;
fastcgi_pass unix:/run/php-fpm/www.sock;&lt;br /&gt;
include /etc/nginx/mime.types;&lt;br /&gt;
include fastcgi_params;&lt;br /&gt;
fastcgi_param PATH_INFO  $path_info;&lt;br /&gt;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
fastcgi_read_timeout 600s;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
location ~ \.(css|htc|less|js|js2|js3|js4)$ {&lt;br /&gt;
expires 31536000s;&lt;br /&gt;
etag on;&lt;br /&gt;
if_modified_since exact;&lt;br /&gt;
try_files $uri $uri/ /index.php?$args;&lt;br /&gt;
}&lt;br /&gt;
location ~ \.(html|htm|rtf|rtx|txt|xsd|xsl|xml)$ {&lt;br /&gt;
etag on;&lt;br /&gt;
if_modified_since exact;&lt;br /&gt;
try_files $uri $uri/ /index.php?$args;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|_ttf|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ {&lt;br /&gt;
expires 31536000s;&lt;br /&gt;
etag on;&lt;br /&gt;
if_modified_since exact;&lt;br /&gt;
try_files $uri $uri/ /index.php?$args;&lt;br /&gt;
}&lt;br /&gt;
# Deny access to . files, for security&lt;br /&gt;
location ~ /\. {&lt;br /&gt;
log_not_found off;&lt;br /&gt;
          deny all;&lt;br /&gt;
      }&lt;br /&gt;
      error_page 404 /404.html;&lt;br /&gt;
          location = /40x.html {&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
      error_page 500 502 503 504 /50x.html;&lt;br /&gt;
          location = /50x.html {&lt;br /&gt;
      }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>