LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-17-2008, 12:44 AM   #1
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Rep: Reputation: 15
httpd - directory listings


hi,

I have a server on which httpd is configured. The telnet,ssh are blocked. I don't have permission to log on that server except thru. ftp and that too in my area only.

Through browser i am not able to view the directories within my area. This is also blocked. Is there any way through which i can view the directories within my area only ?

- JAGDISH.
 
Old 10-17-2008, 12:55 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Are you saying you do have ftp access to your area? If so, ftp does allows cmds like ls.
See

man ftp
 
Old 10-17-2008, 12:58 AM   #3
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Original Poster
Rep: Reputation: 15
httpd - directory listings

hi,

yes thru. ftp i can login to that server. After loggin thru. ftp also i have access to few commands like ls,pwd...etc.

- JAGDISH.
 
Old 10-17-2008, 01:06 AM   #4
cjagdish69
Member
 
Registered: Oct 2003
Location: Bombay,Maharashtra,India
Posts: 60

Original Poster
Rep: Reputation: 15
httpd - directory listings

hi,

thru. ls i can have the directory listing but that i don't want. I want the directory listing in browser only.

The directory listings are banned in httpd.conf file. How to override this ?

- JAGDISH.
 
Old 10-17-2008, 02:00 AM   #5
h725
Member
 
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
Quote:
Originally Posted by cjagdish69 View Post
hi,

thru. ls i can have the directory listing but that i don't want. I want the directory listing in browser only.

The directory listings are banned in httpd.conf file. How to override this ?

- JAGDISH.
You must create an .htaccess file and put this:

<Directory /yourpath>
...
Options +Indexes
...
</Directory>

p.s. override must be permitted or this file will not have any effect
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proftpd Limiting Directory Listings blither Linux - Networking 0 08-27-2007 06:04 PM
directory listings aarulan Linux - Newbie 4 03-27-2006 07:49 PM
Directory/File Listings AndeAnderson Debian 7 02-24-2005 12:59 AM
Stop directory listings in Apache lothario Linux - Software 2 05-23-2004 09:17 AM
Apache directory listings Boffy Linux - Networking 8 04-30-2004 04:47 AM


All times are GMT -5. The time now is 02:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration