Skip to content
Browse files

Update site

  • Loading branch information...
1 parent 73b5716 commit 4680751cdfd7ec15ddac1ffdde14acc0e0329492 @davidjb committed Apr 11, 2013
View
15 blog/2013/04/serving-uwsgi-apps-on-a-sub-directory-with-nginx/index.html
@@ -60,14 +60,15 @@ <h1 class="entry-title">
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value <tt class="docutils literal">30</tt> as <tt class="docutils literal">modifier1</tt>
to uWSGI like&nbsp;so:</p>
-<pre class="literal-block">
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+<pre class="code nginx literal-block">
+<span class="k">location</span> <span class="s">/myapp</span> <span class="p">{</span>
+ <span class="kn">include</span> <span class="s">uwsgi_params</span><span class="p">;</span>
+ <span class="kn">uwsgi_pass</span> <span class="s">unix:/opt/myapp.sock</span><span class="p">;</span>
+ <span class="kn">uwsgi_param</span> <span class="s">SCRIPT_NAME</span> <span class="s">/myapp</span><span class="p">;</span>
+ <span class="kn">uwsgi_modifier1</span> <span class="mi">30</span><span class="p">;</span>
+<span class="p">}</span>
</pre>
+<p>(<a class="reference external" href="http://pygments.org/docs/lexers/">Pygments</a> has an Ngnix lexer, who&nbsp;knew?)</p>
<p>From the documentation
<a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps</a>:</p>
<blockquote>
View
15 category/web.html
@@ -56,14 +56,15 @@ <h1 class="entry-title"><a href="http://davidjb.com/blog/2013/04/serving-uwsgi-a
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value <tt class="docutils literal">30</tt> as <tt class="docutils literal">modifier1</tt>
to uWSGI like&nbsp;so:</p>
-<pre class="literal-block">
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+<pre class="code nginx literal-block">
+<span class="k">location</span> <span class="s">/myapp</span> <span class="p">{</span>
+ <span class="kn">include</span> <span class="s">uwsgi_params</span><span class="p">;</span>
+ <span class="kn">uwsgi_pass</span> <span class="s">unix:/opt/myapp.sock</span><span class="p">;</span>
+ <span class="kn">uwsgi_param</span> <span class="s">SCRIPT_NAME</span> <span class="s">/myapp</span><span class="p">;</span>
+ <span class="kn">uwsgi_modifier1</span> <span class="mi">30</span><span class="p">;</span>
+<span class="p">}</span>
</pre>
+<p>(<a class="reference external" href="http://pygments.org/docs/lexers/">Pygments</a> has an Ngnix lexer, who&nbsp;knew?)</p>
<p>From the documentation
<a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps</a>:</p>
<blockquote>
View
15 feeds/all-en.atom.xml
@@ -12,14 +12,15 @@ the same thing that I configure Nginx to do explicitly. Anyway, Nginx on
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value &lt;tt class="docutils literal"&gt;30&lt;/tt&gt; as &lt;tt class="docutils literal"&gt;modifier1&lt;/tt&gt;
to uWSGI like&amp;nbsp;so:&lt;/p&gt;
-&lt;pre class="literal-block"&gt;
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+&lt;pre class="code nginx literal-block"&gt;
+&lt;span class="k"&gt;location&lt;/span&gt; &lt;span class="s"&gt;/myapp&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
+ &lt;span class="kn"&gt;include&lt;/span&gt; &lt;span class="s"&gt;uwsgi_params&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_pass&lt;/span&gt; &lt;span class="s"&gt;unix:/opt/myapp.sock&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_param&lt;/span&gt; &lt;span class="s"&gt;SCRIPT_NAME&lt;/span&gt; &lt;span class="s"&gt;/myapp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_modifier1&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;
+&lt;p&gt;(&lt;a class="reference external" href="http://pygments.org/docs/lexers/"&gt;Pygments&lt;/a&gt; has an Ngnix lexer, who&amp;nbsp;knew?)&lt;/p&gt;
&lt;p&gt;From the documentation
&lt;a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps"&gt;http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
View
15 feeds/all.atom.xml
@@ -12,14 +12,15 @@ the same thing that I configure Nginx to do explicitly. Anyway, Nginx on
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value &lt;tt class="docutils literal"&gt;30&lt;/tt&gt; as &lt;tt class="docutils literal"&gt;modifier1&lt;/tt&gt;
to uWSGI like&amp;nbsp;so:&lt;/p&gt;
-&lt;pre class="literal-block"&gt;
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+&lt;pre class="code nginx literal-block"&gt;
+&lt;span class="k"&gt;location&lt;/span&gt; &lt;span class="s"&gt;/myapp&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
+ &lt;span class="kn"&gt;include&lt;/span&gt; &lt;span class="s"&gt;uwsgi_params&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_pass&lt;/span&gt; &lt;span class="s"&gt;unix:/opt/myapp.sock&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_param&lt;/span&gt; &lt;span class="s"&gt;SCRIPT_NAME&lt;/span&gt; &lt;span class="s"&gt;/myapp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_modifier1&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;
+&lt;p&gt;(&lt;a class="reference external" href="http://pygments.org/docs/lexers/"&gt;Pygments&lt;/a&gt; has an Ngnix lexer, who&amp;nbsp;knew?)&lt;/p&gt;
&lt;p&gt;From the documentation
&lt;a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps"&gt;http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
View
15 feeds/web.atom.xml
@@ -12,14 +12,15 @@ the same thing that I configure Nginx to do explicitly. Anyway, Nginx on
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value &lt;tt class="docutils literal"&gt;30&lt;/tt&gt; as &lt;tt class="docutils literal"&gt;modifier1&lt;/tt&gt;
to uWSGI like&amp;nbsp;so:&lt;/p&gt;
-&lt;pre class="literal-block"&gt;
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+&lt;pre class="code nginx literal-block"&gt;
+&lt;span class="k"&gt;location&lt;/span&gt; &lt;span class="s"&gt;/myapp&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
+ &lt;span class="kn"&gt;include&lt;/span&gt; &lt;span class="s"&gt;uwsgi_params&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_pass&lt;/span&gt; &lt;span class="s"&gt;unix:/opt/myapp.sock&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_param&lt;/span&gt; &lt;span class="s"&gt;SCRIPT_NAME&lt;/span&gt; &lt;span class="s"&gt;/myapp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+ &lt;span class="kn"&gt;uwsgi_modifier1&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
+&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;
+&lt;p&gt;(&lt;a class="reference external" href="http://pygments.org/docs/lexers/"&gt;Pygments&lt;/a&gt; has an Ngnix lexer, who&amp;nbsp;knew?)&lt;/p&gt;
&lt;p&gt;From the documentation
&lt;a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps"&gt;http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
View
15 index.html
@@ -56,14 +56,15 @@ <h1 class="entry-title"><a href="http://davidjb.com/blog/2013/04/serving-uwsgi-a
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value <tt class="docutils literal">30</tt> as <tt class="docutils literal">modifier1</tt>
to uWSGI like&nbsp;so:</p>
-<pre class="literal-block">
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+<pre class="code nginx literal-block">
+<span class="k">location</span> <span class="s">/myapp</span> <span class="p">{</span>
+ <span class="kn">include</span> <span class="s">uwsgi_params</span><span class="p">;</span>
+ <span class="kn">uwsgi_pass</span> <span class="s">unix:/opt/myapp.sock</span><span class="p">;</span>
+ <span class="kn">uwsgi_param</span> <span class="s">SCRIPT_NAME</span> <span class="s">/myapp</span><span class="p">;</span>
+ <span class="kn">uwsgi_modifier1</span> <span class="mi">30</span><span class="p">;</span>
+<span class="p">}</span>
</pre>
+<p>(<a class="reference external" href="http://pygments.org/docs/lexers/">Pygments</a> has an Ngnix lexer, who&nbsp;knew?)</p>
<p>From the documentation
<a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps</a>:</p>
<blockquote>
View
15 tag/nginx.html
@@ -56,14 +56,15 @@ <h1 class="entry-title"><a href="http://davidjb.com/blog/2013/04/serving-uwsgi-a
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value <tt class="docutils literal">30</tt> as <tt class="docutils literal">modifier1</tt>
to uWSGI like&nbsp;so:</p>
-<pre class="literal-block">
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+<pre class="code nginx literal-block">
+<span class="k">location</span> <span class="s">/myapp</span> <span class="p">{</span>
+ <span class="kn">include</span> <span class="s">uwsgi_params</span><span class="p">;</span>
+ <span class="kn">uwsgi_pass</span> <span class="s">unix:/opt/myapp.sock</span><span class="p">;</span>
+ <span class="kn">uwsgi_param</span> <span class="s">SCRIPT_NAME</span> <span class="s">/myapp</span><span class="p">;</span>
+ <span class="kn">uwsgi_modifier1</span> <span class="mi">30</span><span class="p">;</span>
+<span class="p">}</span>
</pre>
+<p>(<a class="reference external" href="http://pygments.org/docs/lexers/">Pygments</a> has an Ngnix lexer, who&nbsp;knew?)</p>
<p>From the documentation
<a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps</a>:</p>
<blockquote>
View
15 tag/uwsgi.html
@@ -56,14 +56,15 @@ <h1 class="entry-title"><a href="http://davidjb.com/blog/2013/04/serving-uwsgi-a
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value <tt class="docutils literal">30</tt> as <tt class="docutils literal">modifier1</tt>
to uWSGI like&nbsp;so:</p>
-<pre class="literal-block">
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+<pre class="code nginx literal-block">
+<span class="k">location</span> <span class="s">/myapp</span> <span class="p">{</span>
+ <span class="kn">include</span> <span class="s">uwsgi_params</span><span class="p">;</span>
+ <span class="kn">uwsgi_pass</span> <span class="s">unix:/opt/myapp.sock</span><span class="p">;</span>
+ <span class="kn">uwsgi_param</span> <span class="s">SCRIPT_NAME</span> <span class="s">/myapp</span><span class="p">;</span>
+ <span class="kn">uwsgi_modifier1</span> <span class="mi">30</span><span class="p">;</span>
+<span class="p">}</span>
</pre>
+<p>(<a class="reference external" href="http://pygments.org/docs/lexers/">Pygments</a> has an Ngnix lexer, who&nbsp;knew?)</p>
<p>From the documentation
<a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps</a>:</p>
<blockquote>
View
15 tag/web.html
@@ -56,14 +56,15 @@ <h1 class="entry-title"><a href="http://davidjb.com/blog/2013/04/serving-uwsgi-a
the other hand operates slightly differently - so in order to have the
parameters automatically modified, you pass the value <tt class="docutils literal">30</tt> as <tt class="docutils literal">modifier1</tt>
to uWSGI like&nbsp;so:</p>
-<pre class="literal-block">
-location /myapp {
- include uwsgi_params;
- uwsgi_pass unix:/opt/myapp.sock;
- uwsgi_param SCRIPT_NAME /myapp;
- uwsgi_modifier1 30;
-}
+<pre class="code nginx literal-block">
+<span class="k">location</span> <span class="s">/myapp</span> <span class="p">{</span>
+ <span class="kn">include</span> <span class="s">uwsgi_params</span><span class="p">;</span>
+ <span class="kn">uwsgi_pass</span> <span class="s">unix:/opt/myapp.sock</span><span class="p">;</span>
+ <span class="kn">uwsgi_param</span> <span class="s">SCRIPT_NAME</span> <span class="s">/myapp</span><span class="p">;</span>
+ <span class="kn">uwsgi_modifier1</span> <span class="mi">30</span><span class="p">;</span>
+<span class="p">}</span>
</pre>
+<p>(<a class="reference external" href="http://pygments.org/docs/lexers/">Pygments</a> has an Ngnix lexer, who&nbsp;knew?)</p>
<p>From the documentation
<a class="reference external" href="http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps">http://uwsgi-docs.readthedocs.org/en/latest/Nginx.html#dynamic-apps</a>:</p>
<blockquote>

0 comments on commit 4680751

Please sign in to comment.
Something went wrong with that request. Please try again.