Directory for Apache!

Hi all,

I'm have spent the 2 weeks playing around with PHP using Apache 2 for Windows & MySQL. Due to other problems with my computer I had to reinstall the 3 programs again. All seems fine except for one thing.

When I view the http://localhost I don't get the list of my directory i.e. I used to get the contents of htdocs which I used to. I wrote a test html file & called it index & I can view that OK. But I really want to view my dirctory instead and I can't remember what if anything I did last time.

Please help, Red.

Comments

  • : Hi all,
    :
    : I'm have spent the 2 weeks playing around with PHP using Apache 2 for Windows & MySQL. Due to other problems with my computer I had to reinstall the 3 programs again. All seems fine except for one thing.
    :
    : When I view the http://localhost I don't get the list of my directory i.e. I used to get the contents of htdocs which I used to. I wrote a test html file & called it index & I can view that OK. But I really want to view my dirctory instead and I can't remember what if anything I did last time.
    :
    Look in your httpd.conf for the section about your htdocs directory. You'll probably see a line that starts with the word Options and it'll have a list of options. Add the word "Indexes" to that list. Or if the line isn't there, just add it.

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

  • Not sure but it looks ok. Might help if I show the more appropriate part of the file. Here it is: (Need anymore just ask!


    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

    #
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    #
    # First, we configure the "default" to be a very restrictive set of
    # features.
    #

    Options FollowSymLinks
    AllowOverride None


    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    #
    # This should be changed to whatever you set DocumentRoot to.
    #


    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
  • : # First, we configure the "default" to be a very restrictive set of
    : # features.
    : #
    :
    : Options FollowSymLinks
    : AllowOverride None
    :
    :
    Myabe you need Indexes there.

    : #
    : # Note that from this point forward you must specifically allow
    : # particular features to be enabled - so if something's not working as
    : # you might expect, make sure that you have specifically enabled it
    : # below.
    : #
    :
    : #
    : # This should be changed to whatever you set DocumentRoot to.
    : #
    :
    :
    : #
    : # Possible values for the Options directive are "None", "All",
    : # or any combination of:
    : # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    : #
    : # Note that "MultiViews" must be named *explicitly* --- "Options All"
    : # doesn't give it to you.
    : #
    : # The Options directive is both complicated and important. Please see
    : # http://httpd.apache.org/docs-2.0/mod/core.html#options
    : # for more information.
    : #
    : Options Indexes FollowSymLinks
    :
    But all the same, I'd expect that to work too...

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories