-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #776 from westonganger/master
Add Nginx
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<h1>Nginx</h1> | ||
<p>To use this language, use the class "language-nginx".</p> | ||
|
||
<h2>Single-line comments</h2> | ||
<pre><code># This is a comment</code></pre> | ||
|
||
<h2>Strings</h2> | ||
<pre><code>"foo \"bar\" baz" | ||
'foo \'bar\' baz'</code></pre> | ||
|
||
<h2>Regular expressions</h2> | ||
<pre><code>/foo?[ ]*bar/</code></pre> | ||
|
||
<h2>Variables</h2> | ||
<pre><code> | ||
fastcgi_param SERVER_NAME $server_name;</code></pre> | ||
|
||
<h2>Server Block</h2> | ||
<pre><code> | ||
server { # simple reverse-proxy | ||
listen 80; | ||
server_name domain2.com www.domain2.com; | ||
access_log logs/domain2.access.log main; | ||
|
||
# serve static files | ||
|
||
location ~ ^/(images|javascript|js|css|flash|media|static)/ { | ||
root /var/www/virtual/big.server.com/htdocs; | ||
expires 30d; | ||
} | ||
|
||
# pass requests for dynamic content to rails/turbogears/zope, et al | ||
location / { | ||
proxy_pass http://127.0.0.1:8080; | ||
} | ||
}</code></pre> | ||
|
||
<h2>Known failures</h2> | ||
<p>N/A</p> |