<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://techwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Prestashop_Nginx_Config</id>
	<title>Prestashop Nginx Config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://techwiki.co.uk/index.php?action=history&amp;feed=atom&amp;title=Prestashop_Nginx_Config"/>
	<link rel="alternate" type="text/html" href="http://techwiki.co.uk/index.php?title=Prestashop_Nginx_Config&amp;action=history"/>
	<updated>2026-05-17T15:05:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://techwiki.co.uk/index.php?title=Prestashop_Nginx_Config&amp;diff=151&amp;oldid=prev</id>
		<title>Adam.birds at 17:29, 30 April 2016</title>
		<link rel="alternate" type="text/html" href="http://techwiki.co.uk/index.php?title=Prestashop_Nginx_Config&amp;diff=151&amp;oldid=prev"/>
		<updated>2016-04-30T17:29:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:29, 30 April 2016&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-l75&quot; &gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&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: #222; 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;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;&amp;lt;/pre&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: #222; 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: #222; 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 colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Prestashop]]&lt;/ins&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: #222; 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;[[Category:Nginx]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;[[Category:Nginx]]&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: #222; 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;[[Category:Linux]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;[[Category:Linux]]&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: #222; 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;[[Category:Contents]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;[[Category:Contents]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Adam.birds</name></author>
		
	</entry>
	<entry>
		<id>http://techwiki.co.uk/index.php?title=Prestashop_Nginx_Config&amp;diff=104&amp;oldid=prev</id>
		<title>Adam.birds: Created page with &quot;'''Below is the Nginx config for Prestashop:'''  &lt;pre&gt; upstream examplecombackend {         server unix:/var/run/php-fcgi-examplecom.sock;     }  server {          listen 80;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://techwiki.co.uk/index.php?title=Prestashop_Nginx_Config&amp;diff=104&amp;oldid=prev"/>
		<updated>2016-04-28T11:06:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Below is the Nginx config for Prestashop:&amp;#039;&amp;#039;&amp;#039;  &amp;lt;pre&amp;gt; upstream examplecombackend {         server unix:/var/run/php-fcgi-examplecom.sock;     }  server {          listen 80;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Below is the Nginx config for Prestashop:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
upstream examplecombackend {&lt;br /&gt;
        server unix:/var/run/php-fcgi-examplecom.sock;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
server {&lt;br /&gt;
&lt;br /&gt;
        listen 80;&lt;br /&gt;
        server_name example.com;&lt;br /&gt;
        root /var/www/vhosts/example.com/htdocs;&lt;br /&gt;
        index index.php index.html;&lt;br /&gt;
&lt;br /&gt;
        access_log /var/www/vhosts/example.com/access.log;&lt;br /&gt;
        error_log /var/www/vhosts/example.com/error.log warn;&lt;br /&gt;
&lt;br /&gt;
        location / {&lt;br /&gt;
            try_files $uri $uri/ @handler;&lt;br /&gt;
            index index.php index.html;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        # PrestaShop rewrite rules&lt;br /&gt;
        rewrite ^/([a-z0-9]+)-([a-z0-9]+)(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*).jpg$ /img/p/$1-$2$3.jpg last;&lt;br /&gt;
        rewrite ^/([0-9]+)-([0-9]+)/([_a-zA-Z0-9-]*).jpg$ /img/p/$1-$2.jpg last;&lt;br /&gt;
        rewrite ^/([0-9]+)(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*).jpg$ /img/c/$1$2.jpg last;&lt;br /&gt;
        rewrite &amp;quot;^/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$&amp;quot; /product.php?id_product=$3&amp;amp;isolang=$1$5 last;&lt;br /&gt;
        rewrite &amp;quot;^/lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$&amp;quot; /product.php?id_product=$2&amp;amp;isolang=$1$4 last;&lt;br /&gt;
        rewrite &amp;quot;^/lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]*)(.*)$&amp;quot; /category.php?id_category=$2&amp;amp;isolang=$1 last;&lt;br /&gt;
        rewrite ^/([a-zA-Z0-9-]*)/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ /product.php?id_product=$2$4 last;&lt;br /&gt;
        rewrite ^/([0-9]+)-([a-zA-Z0-9-]*).html(.*)$ /product.php?id_product=$1$3 last;&lt;br /&gt;
        rewrite ^/([0-9]+)-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 last;&lt;br /&gt;
        rewrite ^/content/([0-9]+)-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 last;&lt;br /&gt;
        rewrite ^/([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 last;&lt;br /&gt;
        rewrite ^/([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 last;&lt;br /&gt;
        rewrite &amp;quot;^/lang-([a-z]{2})/(.*)$&amp;quot; /$2?isolang=$1 last;&lt;br /&gt;
&lt;br /&gt;
        # static file cache configuration&lt;br /&gt;
        location ~* .(gif)$ {&lt;br /&gt;
                expires 2592000s;&lt;br /&gt;
        }&lt;br /&gt;
        location ~* .(jpeg|jpg)$ {&lt;br /&gt;
                expires 2592000s;&lt;br /&gt;
        }&lt;br /&gt;
        location ~* .(png)$ {&lt;br /&gt;
                expires 2592000s;&lt;br /&gt;
        }&lt;br /&gt;
        location ~* .(css)$ {&lt;br /&gt;
                expires 604800s;&lt;br /&gt;
        }&lt;br /&gt;
        location ~* .(js)$ {&lt;br /&gt;
                expires 604800s;&lt;br /&gt;
        }&lt;br /&gt;
        location ~* .(js)$ {&lt;br /&gt;
                expires 604800s;&lt;br /&gt;
        }&lt;br /&gt;
        location ~* .(ico)$ {&lt;br /&gt;
                expires 31536000s;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        # php-fpm configuration&lt;br /&gt;
        location ~ .php$ {&lt;br /&gt;
                root /var/www/vhosts/example.com/htdocs;&lt;br /&gt;
                try_files $uri =404;&lt;br /&gt;
                fastcgi_pass examplecombackend;&lt;br /&gt;
                fastcgi_index index.php;&lt;br /&gt;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;br /&gt;
                include fastcgi_params;&lt;br /&gt;
                fastcgi_buffer_size 128k;&lt;br /&gt;
                fastcgi_buffers 256 4k;&lt;br /&gt;
                fastcgi_busy_buffers_size 256k;&lt;br /&gt;
                fastcgi_temp_file_write_size 256k;&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Nginx]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Contents]]&lt;/div&gt;</summary>
		<author><name>Adam.birds</name></author>
		
	</entry>
</feed>