Ajout : vm_hosted : rule_apache2_configure .
[lhc/ateliers.git] / etc / apache2 / site.d / hc.80.www.heureux-cyclage.org / VirtualHost.conf
diff --git a/etc/apache2/site.d/hc.80.www.heureux-cyclage.org/VirtualHost.conf b/etc/apache2/site.d/hc.80.www.heureux-cyclage.org/VirtualHost.conf
new file mode 100644 (file)
index 0000000..c027e7d
--- /dev/null
@@ -0,0 +1,49 @@
+<Directory /home/hc/pub/www/www.heureux-cyclage.org>
+       Allow         From All
+       AllowOverride None
+       Options       Indexes FollowSymlinks
+       Order         Allow,Deny
+ </Directory>
+<Directory /home/hc/pub/www/www.heureux-cyclage.org/cgi>
+       AddHandler    cgi-script .cgi
+       Allow         From All
+       AllowOverride None
+       Options       +ExecCGI
+       Order         Allow,Deny
+ </Directory>
+<IfModule mod_userdir.c>
+       <Directory /home/*/pub/www>
+               AllowOverride All
+               ErrorDocument 404 default
+               <Limit GET POST OPTIONS PROPFIND>
+                       Allow From All
+                       Order Allow,Deny
+                </Limit>
+               <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
+                       Deny  From All
+                       Order Deny,Allow
+                </Limit>
+               Options MultiViews Indexes FollowSymLinks IncludesNoExec
+        </Directory>
+       <Directory /home/*/pub/www/cgi/>
+               AddHandler cgi-script .cgi
+               Options    +ExecCGI
+        </Directory>
+       <Directory "/usr/lib/cgi-bin">
+               Allow         From all
+               AllowOverride None
+               Options       +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+               Order         Allow,Deny
+        </Directory>
+       RewriteCond %{ENV:REDIRECT_PHPRC} (.+)
+       RewriteRule .* - [E=PHPRC:%1]
+        # NOTE: permet de faire un SetEnv PHPRC dans les .htaccess
+        # SEE: http://stackoverflow.com/questions/3050444/when-setting-environment-variables-in-apache-rewriterule-directives-what-causes
+       UserDir pub/www
+       UserDir disabled root
+       UserDir disabled
+       UserDir enabled julm lchevalier
+ </IfModule>
+ServerAdmin contact+www@heureux-cyclage.org
+ServerAlias heureux-cyclage.org
+ServerAlias ateliers