You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Amol Puglia <am...@yahoo.com> on 2011/02/21 15:40:41 UTC

[users@httpd] Access directory through apache

Hello Team,

I have configured apache to access directory through browser.

Whenever
i am trying to access directory using following url, i am getting
default page and unable to browse files and subdirectory under that
directory.

My configuration in httpd.conf file is as shown below.

<Directory "/var/opt/webstack/apache2/2.2/htdocs/frontend">
    Options FollowSymLinks
    AllowOverride None
    #Order deny,allow
    Order allow,deny
    Allow from all
</Directory>

I am trying to access contents under directory using following url 

http:\\server_name/frontend 

Instead of listing contents under that directory it always redirect me to default page.


kindly guide me to achieve the
 same.




      

Re: [users@httpd] Access directory through apache

Posted by Mark Watts <m....@eris.qinetiq.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/21/2011 02:40 PM, Amol Puglia wrote:
> Hello Team,
> 
> I have configured apache to access directory through browser.
> 
> Whenever i am trying to access directory using following url, i am
> getting default page and unable to browse files and subdirectory under
> that directory.
> 
> My configuration in httpd.conf file is as shown below.
> 
> <Directory "/var/opt/webstack/apache2/2.2/htdocs/frontend">
>     Options FollowSymLinks
>     AllowOverride None
>     #Order deny,allow
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> I am trying to access contents under directory using following url
> 
> http:\\server_name/frontend
> 
> Instead of listing contents under that directory it always redirect me
> to default page.
> 
> 
> kindly guide me to achieve the same.
> 
> 

I suspect you are seeing the effects of DirectoryIndex and have the file
specified [in DirectoryIndex] in that directory.

http://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex

If you wish to simply see a listing of all files, ensure mod_autoindex
is loaded and that you also specify "Options FollowSymLinks Indexes".
You would also need to ensure that you either do not have the file
specified by DirectoryIndex (It defaults to index.html) or you set
DirectoryIndex to something you don't expect to see in that directory.

- -- 
Mark Watts BSc RHCE
Senior Systems Engineer, MSS Secure Managed Hosting
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk1ik8AACgkQBn4EFUVUIO0xxwCg1BE8IPbDp2QAy5vYSOtm3WZ/
j/AAn2HcSKPxH/Ke/ImSf7QuGQdFr3M2
=WJh0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Access directory through apache

Posted by DW <xf...@hotmail.com>.
The simple way is to use "options indexes" like this:

<Directory "/var/opt/webstack/apache2/2.2/htdocs/frontend">
        *options indexes*
</Directory>

If the above doesn't work then try putting: *Options +Indexes*

Put the above in your httpd.conf, AND stop and restart the server for 
changes to take effect.

Let us know if this worked.

Good luck


Amol Puglia wrote:
> Hello Team,
>
> I have configured apache to access directory through browser.
>
> Whenever i am trying to access directory using following url, i am 
> getting default page and unable to browse files and subdirectory under 
> that directory.
>
> My configuration in httpd.conf file is as shown below.
>
> <Directory "/var/opt/webstack/apache2/2.2/htdocs/frontend">
>     Options FollowSymLinks
>     AllowOverride None
>     #Order deny,allow
>     Order allow,deny
>     Allow from all
> </Directory>
>
> I am trying to access contents under directory using following url
>
> http:\\server_name/frontend
>
> Instead of listing contents under that directory it always redirect me 
> to default page.
>
>
> kindly guide me to achieve the same.
>
>