<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://wiki.oxwall.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.oxwall.com/feed.php">
        <title>Oxwall Software Documentation install:performance</title>
        <description></description>
        <link>https://wiki.oxwall.com/</link>
        <image rdf:resource="https://wiki.oxwall.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-24T06:48:14+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.oxwall.com/install:performance:nginx"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.oxwall.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Oxwall Software Documentation</title>
        <link>https://wiki.oxwall.com/</link>
        <url>https://wiki.oxwall.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.oxwall.com/install:performance:nginx">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-11T09:41:04+00:00</dc:date>
        <title>install:performance:nginx</title>
        <link>https://wiki.oxwall.com/install:performance:nginx</link>
        <description>
&lt;p&gt;
Configure nginx with Apache
&lt;/p&gt;

&lt;p&gt;
&lt;pre class=&quot;code php&quot;&gt; server &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		listen       &lt;span class=&quot;nu0&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
        location &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            proxy_pass         http&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;//123.45.67.89:85/;&lt;/span&gt;
			proxy_redirect     off&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
			proxy_set_header X&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;Forwarded&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$proxy_add_x_forwarded_for&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			proxy_set_header   Host             &lt;span class=&quot;re0&quot;&gt;$host&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			proxy_set_header   X&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;Real&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;IP        &lt;span class=&quot;re0&quot;&gt;$remote_addr&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
	    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;/p&gt;

&lt;p&gt;
Configure nginx without Apache
&lt;/p&gt;

&lt;p&gt;
&lt;pre class=&quot;code php&quot;&gt;server &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		listen       123&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;45&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;67&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;89&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; 
&amp;nbsp;
		root &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;user&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;public_html&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		server_name  example&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;com&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;#######################################################################
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;#RewriteCond %{REQUEST_URI} !^/index\.php
&lt;/span&gt;&lt;span class=&quot;co2&quot;&gt;#RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
&lt;/span&gt;&lt;span class=&quot;co2&quot;&gt;#RewriteCond %{REQUEST_URI} !/ow_updates/
&lt;/span&gt;&lt;span class=&quot;co2&quot;&gt;#RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
&lt;/span&gt;&lt;span class=&quot;co2&quot;&gt;#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
&lt;/span&gt;&lt;span class=&quot;co2&quot;&gt;#RewriteRule (.*) index.php
&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;~ &lt;span class=&quot;st0&quot;&gt;&amp;quot;^/index.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		set &lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;~ &lt;span class=&quot;st0&quot;&gt;&amp;quot;/ow_updates/index.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		set &lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;~ &lt;span class=&quot;st0&quot;&gt;&amp;quot;/ow_updates/&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		set &lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;~ &lt;span class=&quot;st0&quot;&gt;&amp;quot;/ow_cron/run.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		set &lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt; ~ &lt;span class=&quot;st0&quot;&gt;&amp;quot;(/|.php|.html|.htm|.xml|.feed|robots.txt|.raw|/[^.]*)$&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		set &lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rule&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;54321&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		rewrite &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.*&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;index&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;php last&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
	location &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		index index&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;php&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	location ~ \&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;php$ &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;        fastcgi_params&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		try_files &lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$uri&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;index&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;php&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;#		fastcgi_pass   127.0.0.1:9000;
&lt;/span&gt;		fastcgi_pass unix&lt;span class=&quot;sy0&quot;&gt;:/&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;run&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;php5&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;fpm&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;sock&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		fastcgi_index  index&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;php&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		fastcgi_param  SCRIPT_FILENAME  &lt;span class=&quot;re0&quot;&gt;$document_root&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$fastcgi_script_name&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		fastcgi_param  HTTP_HOST  &lt;span class=&quot;re0&quot;&gt;$host&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;co2&quot;&gt;# Cache static content
&lt;/span&gt;	location ~&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; ^&lt;span class=&quot;sy0&quot;&gt;.+&lt;/span&gt;\&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;jpg&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;jpeg&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;gif&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;png&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;ico&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;css&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;mp3&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;zip&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;tgz&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;rar&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;bz2&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;doc&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;xls&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;exe&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;pdf&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;ppt&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;txt&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;tar&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;mid&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;midi&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;flv&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;bmp&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;rtf&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;js&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;swf&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;$ &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		access_log off&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		root &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;user&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;public_html&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		expires 720h&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		add_header  Last&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;Modified&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$date_gmt&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	location ~ \&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;js&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;gz&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;js&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;gzip&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;$
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		access_log off&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		add_header Content&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;Type ‘text&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;javascript’&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		add_header Content&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;Encoding ‘gzip’&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		expires	&lt;a href=&quot;http://www.php.net/max&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;max&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	location ~ \&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;css&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;gz&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;css&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;gzip&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;$
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		access_log off&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		add_header Content&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;Type ‘text&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;css’&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		expires	&lt;a href=&quot;http://www.php.net/max&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;max&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;

&lt;/p&gt;
</description>
    </item>
</rdf:RDF>
