LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2014, 02:57 AM   #1
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Rep: Reputation: 1
Configure http to browse folders


Hi All,

I am very new to http configuration, I can configure the basic html site but I wanted to configure a site such that if I browse for that site it should show/list all the folders in a particular directory and I can browse those folders.


Any help will be highly appreciated.


Regards,
Yogesh
 
Old 07-23-2014, 04:13 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Make sure LoadModule mod_autoindex.so is uncommented in your httpd.conf

Then configure as:
https://wiki.apache.org/httpd/DirectoryListings
 
Old 07-24-2014, 05:10 AM   #3
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Hi Keefaz,

Thanks for the reply,

As per given document I have added below lines in the httpd.conf file

Code:
<Directory /var/log>
  Options +Indexes
</Directory>
Also LoadModule mod_autoindex.so is uncommented in the httpd.conf file. But still I am not able to browse the site.

Do I need to configure below parameters also, if what what it should be.

Code:
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

Rgards,
Yogesh
 
Old 07-24-2014, 11:43 PM   #4
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Hi All,

The issue has been resolved, edited below lines in httpd.conf file
Code:
<VirtualHost urlname:80>
    DocumentRoot /var/www/html
    ServerName urlname
</VirtualHost>
Regards,
Yogesh
 
  


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
Mint Petra- Cannot browse or open folders w/o HD going to 100% FMCDH Linux - Newbie 13 04-13-2014 07:29 PM
How to publish folders & sub folders on http server ananthkadalur Linux - Newbie 2 07-05-2011 09:19 AM
LXer: FolderView: Rhythmbox Plugin To Browse Your Music By Folders LXer Syndicated Linux News 0 09-27-2010 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration