Ajout : vm_hosted : rule_apache2_configure .
[lhc/ateliers.git] / etc / apache2 / site.d / hc.80.www.heureux-cyclage.org / VirtualHost.conf
1 <Directory /home/hc/pub/www/www.heureux-cyclage.org>
2 Allow From All
3 AllowOverride None
4 Options Indexes FollowSymlinks
5 Order Allow,Deny
6 </Directory>
7 <Directory /home/hc/pub/www/www.heureux-cyclage.org/cgi>
8 AddHandler cgi-script .cgi
9 Allow From All
10 AllowOverride None
11 Options +ExecCGI
12 Order Allow,Deny
13 </Directory>
14 <IfModule mod_userdir.c>
15 <Directory /home/*/pub/www>
16 AllowOverride All
17 ErrorDocument 404 default
18 <Limit GET POST OPTIONS PROPFIND>
19 Allow From All
20 Order Allow,Deny
21 </Limit>
22 <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
23 Deny From All
24 Order Deny,Allow
25 </Limit>
26 Options MultiViews Indexes FollowSymLinks IncludesNoExec
27 </Directory>
28 <Directory /home/*/pub/www/cgi/>
29 AddHandler cgi-script .cgi
30 Options +ExecCGI
31 </Directory>
32 <Directory "/usr/lib/cgi-bin">
33 Allow From all
34 AllowOverride None
35 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
36 Order Allow,Deny
37 </Directory>
38 RewriteCond %{ENV:REDIRECT_PHPRC} (.+)
39 RewriteRule .* - [E=PHPRC:%1]
40 # NOTE: permet de faire un SetEnv PHPRC dans les .htaccess
41 # SEE: http://stackoverflow.com/questions/3050444/when-setting-environment-variables-in-apache-rewriterule-directives-what-causes
42 UserDir pub/www
43 UserDir disabled root
44 UserDir disabled
45 UserDir enabled julm lchevalier
46 </IfModule>
47 ServerAdmin contact+www@heureux-cyclage.org
48 ServerAlias heureux-cyclage.org
49 ServerAlias ateliers