Skip to content

Commit

Permalink
Merge pull request #776 from westonganger/master
Browse files Browse the repository at this point in the history
Add Nginx
  • Loading branch information
Golmote committed Sep 23, 2015
2 parents eadc18c + 114a6e1 commit dc4fc19
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/prism-nginx.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions examples/prism-nginx.html
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>

0 comments on commit dc4fc19

Please sign in to comment.