46d4906
# TO-BE-TESTED
46d4906
# RewriteEngine On
46d4906
# RewriteCond %{HTTPS} !=on
46d4906
# RewriteRule ^/mantis(.*) https://%{SERVER_NAME}/mantis$1 [R,L]
46d4906
d67a3a7
75b6c3e
Alias /mantis /usr/share/mantis
cvsextras 6cd238d
cvsextras 6cd238d
<Directory /usr/share/mantis>
cvsextras 6cd238d
	# As passwords will be sent over the line do not allow plaintext
cvsextras 6cd238d
	# communication
cvsextras 6cd238d
	SSLRequireSSL
cvsextras 6cd238d
75b6c3e
	Options None
cvsextras 6cd238d
Johan Cwiklinski 2d5a95e
	<IfModule mod_authz_core.c>
Johan Cwiklinski 2d5a95e
		# Apache 2.4
Johan Cwiklinski 2d5a95e
		Require local
Johan Cwiklinski 2d5a95e
		# Use the following to let any client use mantis
Johan Cwiklinski 2d5a95e
		#Require all granted
Johan Cwiklinski 2d5a95e
	</IfModule>
Johan Cwiklinski 2d5a95e
	<IfModule !mod_authz_core.c>
Johan Cwiklinski 2d5a95e
		# Apache 2.2
Johan Cwiklinski 2d5a95e
		# Do not change this unless the default administrator
Johan Cwiklinski 2d5a95e
		# login was removed; see documentation for details
Johan Cwiklinski 2d5a95e
		Order   Deny,Allow
Johan Cwiklinski 2d5a95e
		Deny    from All
Johan Cwiklinski 2d5a95e
		Allow   from 127.0.0.1   # localhost
Johan Cwiklinski 2d5a95e
		Allow   from ::1         # IPv6 variant of localhost
Johan Cwiklinski 2d5a95e
		# Use the following to let any client use mantis
Johan Cwiklinski 2d5a95e
		# Allow from All
Johan Cwiklinski 2d5a95e
        </IfModule>
Johan Cwiklinski 2d5a95e
cvsextras 6cd238d
	php_flag "register_globals" "off"
75b6c3e
	SetEnv MANTIS_CONFIG /etc/mantis/config_inc.php
cvsextras 6cd238d
</Directory>
cvsextras 6cd238d
75b6c3e
75b6c3e
# Admin directory access is disabled by default; do not change this unless
75b6c3e
# you are performing the first installation or a database schema update.
75b6c3e
# See README.Fedora for more details
cvsextras 6cd238d
<Directory /usr/share/mantis/admin>
75b6c3e
	Order   Deny,Allow
75b6c3e
	Deny    from All
75b6c3e
	Allow   from None
75b6c3e
</Directory>
75b6c3e
75b6c3e
# This directory does not require access over HTTP
75b6c3e
<Directory /usr/share/mantis/core>
75b6c3e
	Order Deny,Allow
75b6c3e
	Deny from All
75b6c3e
	Allow from None
cvsextras 6cd238d
</Directory>