Commit 6e9bffb04f1bae3fb67829189778e107ff5c902a

Golmote 2014-12-21T19:48:03

Added apacheconf examples

diff --git a/examples/prism-apacheconf.html b/examples/prism-apacheconf.html
new file mode 100644
index 0000000..2b0cc1b
--- /dev/null
+++ b/examples/prism-apacheconf.html
@@ -0,0 +1,60 @@
+<h1>Apache Configuration</h1>
+<p>To use this language, use the class "language-apacheconf".</p>
+
+<h2>Comments</h2>
+<pre><code># This is a comment
+# &lt;VirtualHost *:80>
+</code></pre>
+
+<h2>Directives</h2>
+<pre><code>&lt;Files .htaccess>
+	Order allow,deny
+	Deny from all
+&lt;/Files>
+</code></pre>
+
+<h2>Variables</h2>
+<pre><code>RewriteCond %{REQUEST_FILENAME}.php -f</code></pre>
+
+<h2>Regex</h2>
+<pre><code>^(.*)$
+!^www\.</code></pre>
+
+<h2>Directive flags</h2>
+<pre><code>[NC]
+[RC=301,L]</code></pre>
+
+<h2>Strings</h2>
+<pre><code>AuthName "Fichiers réservés"</code></pre>
+
+<h2>Full example</h2>
+<pre><code>## BASIC PASSWORD PROTECTION
+AuthType basic
+AuthName "prompt"
+AuthUserFile /.htpasswd
+AuthGroupFile /dev/null
+Require valid-user
+
+
+## ALLOW FROM IP OR VALID PASSWORD
+Require valid-user
+Allow from 192.168.1.23
+Satisfy Any
+
+
+## PROTECT FILES
+
+  Order Allow,Deny
+  Deny from all
+
+
+
+## PREVENT HOTLINKING
+SetEnvIfNoCase Referer "^http://subdomain.domain.tld/" good
+SetEnvIfNoCase Referer "^$" good
+
+   Order Deny,Allow
+   Deny from all
+   Allow from env=good
+   ErrorDocument 403 http://www.google.com/intl/en_ALL/images/logo.gif
+   ErrorDocument 403 /images/you_bad_hotlinker.gif</code></pre>