<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Web-templ_wordpress-supercache</id>
	<title>Web-templ wordpress-supercache - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Web-templ_wordpress-supercache"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Web-templ_wordpress-supercache&amp;action=history"/>
	<updated>2026-05-21T04:31:05Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Web-templ_wordpress-supercache&amp;diff=559&amp;oldid=prev</id>
		<title>Sol: Новая страница: «Категория:VestaCP  http template  /usr/local/vesta/data/templates/web/nginx/php-fpm/wordpress-supercache.tpl &lt;syntaxhighlight lang=&quot;bash&quot;&gt;  server {…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Web-templ_wordpress-supercache&amp;diff=559&amp;oldid=prev"/>
		<updated>2017-07-05T12:10:46Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:VestaCP&quot; title=&quot;Категория:VestaCP&quot;&gt;Категория:VestaCP&lt;/a&gt;  http template  /usr/local/vesta/data/templates/web/nginx/php-fpm/wordpress-supercache.tpl &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;  server {…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Категория:VestaCP]]&lt;br /&gt;
&lt;br /&gt;
http template&lt;br /&gt;
 /usr/local/vesta/data/templates/web/nginx/php-fpm/wordpress-supercache.tpl&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
server {&lt;br /&gt;
        listen      %ip%:%web_port%;&lt;br /&gt;
        server_name %domain_idn% %alias_idn%;&lt;br /&gt;
        root        %docroot%;&lt;br /&gt;
        index       index.php index.html index.htm;&lt;br /&gt;
        access_log  /var/log/nginx/domains/%domain%.log combined;&lt;br /&gt;
        access_log  /var/log/nginx/domains/%domain%.bytes bytes;&lt;br /&gt;
        error_log   /var/log/nginx/domains/%domain%.error.log error;&lt;br /&gt;
&lt;br /&gt;
        location = /favicon.ico {&lt;br /&gt;
                log_not_found off;&lt;br /&gt;
                access_log off;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        location = /robots.txt {&lt;br /&gt;
                allow all;&lt;br /&gt;
                log_not_found off;&lt;br /&gt;
                access_log off;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        location ~ /\. {&lt;br /&gt;
                deny all;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        location ~* /(?:uploads|files)/.*\.php$ {&lt;br /&gt;
                deny all;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        rewrite /wp-admin$ $scheme://$host$uri/ permanent;&lt;br /&gt;
&lt;br /&gt;
        location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {&lt;br /&gt;
                access_log off;&lt;br /&gt;
                log_not_found off;&lt;br /&gt;
                expires max;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        set $cache_uri $request_uri;&lt;br /&gt;
&lt;br /&gt;
        if ($request_method = POST) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if ($query_string != &amp;quot;&amp;quot;) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if ($request_uri ~* &amp;quot;(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)&amp;quot;) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if ($http_cookie ~* &amp;quot;comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in&amp;quot;) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
         location / {&lt;br /&gt;
                try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?$args ;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~ [^/]\.php(/|$) {&lt;br /&gt;
                fastcgi_split_path_info ^(.+?\.php)(/.*)$;&lt;br /&gt;
                if (!-f $document_root$fastcgi_script_name) {&lt;br /&gt;
                        return 404;&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                include fastcgi_params;&lt;br /&gt;
                fastcgi_index index.php;&lt;br /&gt;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
                fastcgi_pass %backend_lsnr%;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~*  \.(jpg|jpeg|png|gif|ico|css|js)$ {&lt;br /&gt;
                expires 365d;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~*  \.(pdf)$ {&lt;br /&gt;
                expires 30d;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        error_page  403 /error/404.html;&lt;br /&gt;
        error_page  404 /error/404.html;&lt;br /&gt;
        error_page  500 502 503 504 /error/50x.html;&lt;br /&gt;
&lt;br /&gt;
        location /error/ {&lt;br /&gt;
                alias   %home%/%user%/web/%domain%/document_errors/;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~* &amp;quot;/\.(htaccess|htpasswd)$&amp;quot; {&lt;br /&gt;
                deny    all;&lt;br /&gt;
                return  404;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location /vstats/ {&lt;br /&gt;
                alias   %home%/%user%/web/%domain%/stats/;&lt;br /&gt;
                include %home%/%user%/web/%domain%/stats/auth.conf*;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        include     /etc/nginx/conf.d/phpmyadmin.inc*;&lt;br /&gt;
        include     /etc/nginx/conf.d/phppgadmin.inc*;&lt;br /&gt;
        include     /etc/nginx/conf.d/webmail.inc*;&lt;br /&gt;
&lt;br /&gt;
        include     %home%/%user%/conf/web/nginx.%domain_idn%.conf*;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
https template&lt;br /&gt;
 /usr/local/vesta/data/templates/web/nginx/php-fpm/wordpress-supercache.stpl&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
server {&lt;br /&gt;
    listen      %ip%:%web_ssl_port%;&lt;br /&gt;
    server_name %domain_idn% %alias_idn%;&lt;br /&gt;
    root        %docroot%;&lt;br /&gt;
    index       index.php index.html index.htm;&lt;br /&gt;
    access_log  /var/log/nginx/domains/%domain%.log combined;&lt;br /&gt;
    access_log  /var/log/nginx/domains/%domain%.bytes bytes;&lt;br /&gt;
    error_log   /var/log/nginx/domains/%domain%.error.log error;&lt;br /&gt;
&lt;br /&gt;
    ssl         on;&lt;br /&gt;
    ssl_certificate      %ssl_pem%;&lt;br /&gt;
    ssl_certificate_key  %ssl_key%;&lt;br /&gt;
&lt;br /&gt;
        location = /favicon.ico {&lt;br /&gt;
                log_not_found off;&lt;br /&gt;
                access_log off;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        location = /robots.txt {&lt;br /&gt;
                allow all;&lt;br /&gt;
                log_not_found off;&lt;br /&gt;
                access_log off;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        location ~ /\. {&lt;br /&gt;
                deny all;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        location ~* /(?:uploads|files)/.*\.php$ {&lt;br /&gt;
                deny all;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        rewrite /wp-admin$ $scheme://$host$uri/ permanent;&lt;br /&gt;
&lt;br /&gt;
        location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {&lt;br /&gt;
                access_log off;&lt;br /&gt;
                log_not_found off;&lt;br /&gt;
                expires max;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        set $cache_uri $request_uri;&lt;br /&gt;
&lt;br /&gt;
        if ($request_method = POST) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if ($query_string != &amp;quot;&amp;quot;) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        if ($request_uri ~* &amp;quot;(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)&amp;quot;) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        if ($http_cookie ~* &amp;quot;comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in&amp;quot;) {&lt;br /&gt;
                set $cache_uri 'null cache';&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location / {&lt;br /&gt;
                try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?$args ;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~ [^/]\.php(/|$) {&lt;br /&gt;
                fastcgi_split_path_info ^(.+?\.php)(/.*)$;&lt;br /&gt;
                if (!-f $document_root$fastcgi_script_name) {&lt;br /&gt;
                        return 404;&lt;br /&gt;
                }&lt;br /&gt;
&lt;br /&gt;
                include fastcgi_params;&lt;br /&gt;
                fastcgi_index index.php;&lt;br /&gt;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
                fastcgi_pass %backend_lsnr%;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~*  \.(jpg|jpeg|png|gif|ico|css|js)$ {&lt;br /&gt;
                expires 365d;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location ~*  \.(pdf)$ {&lt;br /&gt;
                expires 30d;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        error_page  403 /error/404.html;&lt;br /&gt;
        rror_page  404 /error/404.html;&lt;br /&gt;
        rror_page  500 502 503 504 /error/50x.html;&lt;br /&gt;
&lt;br /&gt;
        ocation /error/ {&lt;br /&gt;
                lias   %home%/%user%/web/%domain%/document_errors/;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        ocation ~* &amp;quot;/\.(htaccess|htpasswd)$&amp;quot; {&lt;br /&gt;
                deny    all;&lt;br /&gt;
                return  404;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        location /vstats/ {&lt;br /&gt;
                alias   %home%/%user%/web/%domain%/stats/;&lt;br /&gt;
                include %home%/%user%/web/%domain%/stats/auth.conf*;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        include     /etc/nginx/conf.d/phpmyadmin.inc*;&lt;br /&gt;
        include     /etc/nginx/conf.d/phppgadmin.inc*;&lt;br /&gt;
        include     /etc/nginx/conf.d/webmail.inc*;&lt;br /&gt;
&lt;br /&gt;
        include     %home%/%user%/conf/web/nginx.%domain_idn%.conf*;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>