View Issue Details

IDProjectCategoryView StatusLast Update
0026669mantisbtcode cleanuppublic2020-02-04 04:06
ReporterCamille Desmots Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version2.22.2 
Summary0026669: Cleaning .htaccess and Web.config
Description

Nowadays in Apache the prefered method for the configuration is the vhost.conf file and not anymore the .htaccess in every directory.
I suggest to delete all the .htaccess file and Web.config (Microsoft Server) and create a basic vhost.conf like the following :
<VirtualHost *:80>
ServerAdmin admin-mantisbt@your.host
DocumentRoot /opt/mantisbt/www
ServerName mantisbt02.your.host
ErrorLog "|/usr/bin/rotatelogs /var/log/apache2/mantisbt02.dev.in.forge.education.gouv.fr_error_log.%Y.%m.%d 86400"
CustomLog "|/usr/bin/rotatelogs /var/log/apache2/mantisbt_access_log.%Y.%m.%d 86400" common
ErrorDocument 403 http:/your.host/an.error.page
Header set Content-Security-Policy "frame-ancestors your.host; navigate-to your.host"
</VirtualHost>
<Directory />
AllowOverride None
</Directory>
<Directory /api/rest>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</Directory>
<Directory /doc/en/>
DirectoryIndex administration_guide.html
DirectoryIndex developers.html
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /doc/en-US/Admin_Guide/html-desktop/>
DirectoryIndex index.html
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /doc/en-US/Admin_Guide/html-single-plain/>
DirectoryIndex index.html
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /doc/en-US/Admin_Guide/html-desktop/>
DirectoryIndex index.html
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /doc/en-US/Developers_Guide/html-single-plain/>
DirectoryIndex index.html
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-02-04 04:06 Camille Desmots New Issue