Find the answer to your Linux question:
Results 1 to 2 of 2
Dear all, I installed Apache webserver 2.2.3 and configured, the directories and other options as per my requirement. I have one requirement, when i browse the linux machine using any ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    2

    Help httpd filter for files how?

    Dear all,

    I installed Apache webserver 2.2.3
    and configured, the directories and other options as per my requirement.

    I have one requirement, when i browse the linux machine using any browser, it displays me all the files and folders as in the linux machine. But when anyone access the server it should display dir' and sub-dirs and only .html files no other files.

    How i can achieve it. Plz give me suggestion and ideas,

    i tried using directives in httpd.conf

    and applied login like if not *.html deny.

    <Files ~ "[^*.html]">
    Order allow,deny
    Deny from all
    </Files>

    problem is after applying thiis and restarting the httpd, am not able to access any files or directories.


    Please help me , how can i set the filter like out of all file types only .html files should be didsplayed along with directories and sub directories..


    My installed httpd details
    Server version: Apache/2.2.3
    Server built: Sep 11 2006 09:43:05
    Server's Module Magic Number: 20051115:3
    Server loaded: APR 1.2.7, APR-Util 1.2.7
    Compiled using: APR 1.2.7, APR-Util 1.2.7
    Architecture: 32-bit
    Server MPM: Prefork
    threaded: no
    forked: yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D DYNAMIC_MODULE_LIMIT=128
    -D HTTPD_ROOT="/etc/httpd"
    -D SUEXEC_BIN="/usr/sbin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"


    Thanks a lot in advance.

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Posts
    2
    Please any one can you help me, am still struck with this filter thing.
    Can anyone can suggest me something.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...