Blob Blame History Raw
#conf file for dedicated server installs of Zikula. 
#	v0.1 David Nalley <david@gnsa.us>  - Initial consolidation of .htaccess files from Zikulasource
#	v0.2 Remi Collet <rcollet@redhat.com> - httpd 2.2/2.4 compatibility
#
Alias /zikula /usr/share/zikula
<Directory /usr/share/zikula/>
	php_flag display_errors Off

	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require all granted
	</IfModule>
	<IfModule !mod_authz_core.c>
		order deny,allow
		allow from all
	</IfModule>
</Directory>

<Directory /usr/share/zikula/install/>
	Options -Indexes
	SetEnvIf Request_URI "\.css$" object_is_css=css
	SetEnvIf Request_URI "\.js$" object_is_js=js
	SetEnvIf Request_URI "\.jpg$" object_is_jpg=jpg
	SetEnvIf Request_URI "\.gif$" object_is_gif=gif
	SetEnvIf Request_URI "\.png$" object_is_png=png
	SetEnvIf Request_URI "\.tif$" object_is_tif=tif
	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require env object_is_css object_is_js object_is_jpg object_is_gif object_is_png object_is_tif
	</IfModule>
	<IfModule !mod_authz_core.c>
		Order deny,allow
		Deny from all
		Allow from env=object_is_css
		Allow from env=object_is_js
		Allow from env=object_is_jpg
		Allow from env=object_is_gif
		Allow from env=object_is_png
		Allow from env=object_is_tif
	</IfModule>
</Directory>

<Directory /usr/share/zikula/system/>
	Options -Indexes
	SetEnvIf Request_URI "\.css$" object_is_css=css
	SetEnvIf Request_URI "\.js$" object_is_js=js
	SetEnvIf Request_URI "\.jpg$" object_is_jpg=jpg
	SetEnvIf Request_URI "\.gif$" object_is_gif=gif
	SetEnvIf Request_URI "\.png$" object_is_png=png
	SetEnvIf Request_URI "\.tif$" object_is_tif=tif
	SetEnvIf Request_URI "\.swf$" object_is_swf=swf
	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require env object_is_css object_is_js object_is_jpg object_is_gif object_is_png object_is_tif object_is_swf
	</IfModule>
	<IfModule !mod_authz_core.c>
		Order deny,allow
		Deny from all
		Allow from env=object_is_css
		Allow from env=object_is_js
		Allow from env=object_is_jpg
		Allow from env=object_is_gif
		Allow from env=object_is_png
		Allow from env=object_is_tif
		Allow from env=object_is_swf
	</IfModule>
</Directory>

<Directory /usr/share/zikula/modules/>
	Options -Indexes
	SetEnvIf Request_URI "\.css$" object_is_css=css
	SetEnvIf Request_URI "\.js$" object_is_js=js
	SetEnvIf Request_URI "\.jpg$" object_is_jpg=jpg
	SetEnvIf Request_URI "\.gif$" object_is_gif=gif
	SetEnvIf Request_URI "\.png$" object_is_png=png
	SetEnvIf Request_URI "\.tif$" object_is_tif=tif
	SetEnvIf Request_URI "\.swf$" object_is_swf=swf
	SetEnvIf Request_URI "\.flv$" object_is_flv=flv
	SetEnvIf Request_URI "\.ico$" object_is_ico=ico
	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require env object_is_css object_is_js object_is_jpg object_is_gif object_is_png object_is_tif object_is_swf object_is_flv object_is_ico
	</IfModule>
	<IfModule !mod_authz_core.c>
		Order deny,allow
		Deny from all
		Allow from env=object_is_css
		Allow from env=object_is_js
		Allow from env=object_is_jpg
		Allow from env=object_is_gif
		Allow from env=object_is_png
		Allow from env=object_is_tif
		Allow from env=object_is_swf
		Allow from env=object_is_flv
		Allow from env=object_is_ico
	</IfModule>
</Directory>

<Directory /usr/share/zikula/config/>
	Options -Indexes
	SetEnvIf Request_URI "\.css$" object_is_css=css
	SetEnvIf Request_URI "\.js$" object_is_js=js
	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require env object_is_css object_is_js
	</IfModule>
	<IfModule !mod_authz_core.c>
		Order deny,allow
		Deny from all
		Allow from env=object_is_css
		Allow from env=object_is_js
	</IfModule>
</Directory>

<Directory /usr/share/zikula/includes/>
	Options -Indexes
	Order deny,allow
	# Works with Apache 2.2 or 2.4 (mod_access_compat)
	Deny from all
</Directory>

<Directory /usr/share/zikula/system/Theme/pnincludes/>
	Options -Indexes
	SetEnvIf Request_URI "\.html$" object_is_html=html
	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require env object_is_html
	</IfModule>
	<IfModule !mod_authz_core.c>
		Allow from env=object_is_html
	</IfModule>
</Directory>

<Directory /var/lib/zikula/pnTemp/>
	Options -Indexes
	SetEnvIf Request_URI "\.css$" object_is_css=css
	SetEnvIf Request_URI "\.js$" object_is_js=js
	<IfModule mod_authz_core.c>
		# Apache 2.4
		Require env object_is_css object_is_js
	</IfModule>
	<IfModule !mod_authz_core.c>
		Order deny,allow
		Deny from all
		Allow from env=object_is_css
		Allow from env=object_is_js
	</IfModule>
</Directory>