Решено: Apache | DirectorySlash Directive

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

Аватара пользователя
Karen
Сообщения: 160
ОС: Slackware 11.0

Решено: Apache | DirectorySlash Directive

Сообщение Karen »

Доброе время суток уважаемые форумчане,


По требованию программистов в конфиге алиаса пришлось отключить директиву < DirectorySlash >,

Код: Выделить всё

DirectorySlash OFF



Меня интересует чем это чревато? ( особенно с точки зрения безопасности )
Спасибо сказали:
BigBrother
Сообщения: 436
Статус: ¯\_(ツ)_/¯
ОС: linux based

Re: Решено: Apache | DirectorySlash Directive

Сообщение BigBrother »

Security Warning

Turning off the trailing slash redirect may result in an information disclosure. Consider a situation where mod_autoindex is active (Options +Indexes) and DirectoryIndex is set to a valid resource (say, index.html) and there's no other special handler defined for that URL. In this case a request with a trailing slash would show the index.html file. But a request without trailing slash would list the directory contents.


http://httpd.apache.org/docs/2.2/mod/mod_dir.html
Спасибо сказали:
Аватара пользователя
Karen
Сообщения: 160
ОС: Slackware 11.0

Re: Решено: Apache | DirectorySlash Directive

Сообщение Karen »

То что надо! ;)


Большое спасибо!
Спасибо сказали: