# Uncomment this to add an alias.
# This does not work properly with virtual hosts..
#Alias /docvert /usr/share/docvert

<Directory /usr/share/docvert/>
	Options +FollowSymLinks
	AllowOverride All
	order allow,deny
	allow from all
</Directory>

# Prohibit internal directories
<Directory /usr/share/docvert/core/auto-pipelines>
	deny from all
</Directory>
<Directory /usr/share/docvert/core/config>
	deny from all
</Directory>
<Directory /usr/share/docvert/core/schemas>
	deny from all
</Directory>
<Directory /usr/share/docvert/core/transform>
	deny from all
</Directory>
<Directory /usr/share/docvert/core/themes/language>
	deny from all
</Directory>
<Directory /usr/share/docvert/generator-pipeline>
	deny from all
</Directory>
<Directory /usr/share/docvert/pipeline>
	deny from all
</Directory>

# Restrict the writable directory as much as possible
<Directory /usr/share/docvert/writable/>
	Options -Indexes -FollowSymLinks
	AllowOverride None
	order allow,deny
	allow from all

	# Only allow files generated by docvert to be served
	<Files *>
		deny from all
	</Files>
	<FilesMatch "\.(html|xml|zip|gif|jpg|png|css|js|htc)$">
		allow from all
	</FilesMatch>
</Directory>
