Enhancement #2649

httpd FollowSymLinks and DirectoryIndex directives

Added by Davide Principi over 7 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-httpd
Target version:v6.5-rc1
Resolution: NEEDINFO:No

Description

The legacy httpd ibay profile includes the following directives:

Options +Indexes +FollowSymLinks
        DirectoryIndex index.shtml index.htm index.html

It should be safe to add them to the default profile to simplify a web site deployment.

Associated revisions

Revision 8fbb2b2b
Added by Giacomo Sanchietti over 7 years ago

ibay-default profile: add new default options. Refs #2649

Options added: Index, FollowSymLinks and DirectoryIndex.
Configured index files are: index.shtml index.htm index.html index.php

History

#1 Updated by Filippo Carletti over 7 years ago

  • Target version set to v6.5-rc1

#2 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#3 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#4 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#5 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-httpd-2.2.2-1.0git8fbb2b2b.ns6.noarch.rpm

Also added index.php to default index files.

Test case
  • Create a test ibay with web access enabled
  • Create a file index.php in tmp directory and link it from ibay:
    echo "<?php phpinfo(); ?>" > /tmp/index.php
    ln -s /tmp/index.php /var/lib/nethserver/ibay/test/index.php
    
  • Check phpinfo is correctly displayed: curl http://localhost/test/

#6 Updated by Alessio Fattorini over 7 years ago

Installed @nethserver-file-server

 rpm -q nethserver-httpd
nethserver-httpd-2.2.2-3.0gitd795edb8.ns6.noarch

Created an index.php into tmp
[root@botolo ~]# echo "" > /tmp/index.php

link on ibay
[root@botolo ~]# ln -s /tmp/index.php /var/lib/nethserver/ibay/test/index.php

test index.php with curl

[root@botolo ~]# curl http://localhost/test/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html><head>
<style type="text/css">
body {background-color: #ffffff; color: #000000;}
body, td, th, h1, h2 {font-family: sans-serif;}
pre {margin: 0px; font-family: monospace;}
a:link {color: #000099; text-decoration: none; background-color: #ffffff;}
a:hover {text-decoration: underline;}
..

VERIFIED

#7 Updated by Alessio Fattorini over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#8 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

#9 Updated by Davide Principi over 7 years ago

In nethserver-updates:
nethserver-release-6.5-4.ns6.rc1.noarch.rpm
nethserver-devbox-1.4.0-1.ns6.noarch.rpm
nethserver-backup-data-1.0.9-1.ns6.noarch.rpm
nethserver-base-2.1.0-1.ns6.noarch.rpm
nethserver-directory-2.0.1-1.ns6.noarch.rpm
nethserver-firewall-base-1.1.0-1.ns6.noarch.rpm
nethserver-hosts-1.0.7-1.ns6.noarch.rpm
nethserver-httpd-2.3.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.2.1-1.ns6.noarch.rpm
nethserver-hylafax-1.0.5-1.ns6.noarch.rpm
nethserver-ibays-2.0.3-1.ns6.noarch.rpm
nethserver-lib-2.0.1-1.ns6.noarch.rpm
nethserver-mail-server-1.6.1-1.ns6.noarch.rpm
nethserver-nethgui-1.4.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.2-1.ns6.noarch.rpm
nethserver-nut-1.0.7-1.ns6.noarch.rpm
nethserver-openssh-1.0.5-1.ns6.noarch.rpm
nethserver-roundcubemail-0.0.2-1.ns6.noarch.rpm
nethserver-samba-1.4.2-1.ns6.noarch.rpm
nethserver-shorewall-1.0.4-1.ns6.noarch.rpm
nethserver-sogo-thunderbird-1.1.1-1.ns6.noarch.rpm
nethserver-vpn-1.1.2-1.ns6.noarch.rpm
sogo-frontends-1.3.0-1.ns6.noarch.rpm

Also available in: Atom PDF