Computer Talk Discussions here pertain to mods, troubleshooting, and PC/console gaming

Directory browse under Apache?

Thread Tools
 
Search this Thread
 
Old 05-12-2006, 04:08 PM
  #1  
Registered User
Thread Starter
 
midiwall's Avatar
 
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,048
Likes: 0
Received 2 Likes on 2 Posts
Directory browse under Apache?

I'm having a HUGE brainfart and I can't digest the Apache instructions right now.

Can someone point me to the httpd.conf setup to allow directory browsing under Apache? Not globally at the server level, just a specific user directory.

Thanks!
Old 05-12-2006, 04:20 PM
  #2  
Co-Founder/Administrator
Staff
iTrader: (1)
 
Corey's Avatar
 
Join Date: May 2002
Location: Auburn, Washington
Posts: 32,242
Received 19 Likes on 15 Posts
Mark, do you mean this?
http://www.ccs.neu.edu/webadmin/dir_listing.html

That is what I had to do before to make my folders browsable.
I simply made a text file called
htaccess
and added
options + indexes
in it as text, uploaded, then used Cute FTP to rename the file with the . in front of it to
.htaccess

However once I renamed it, I can no longer ever see the file again.
If I use a webpage FTP interface that you can use with the server, then you can see the file.

I hope this is what you were looking for.
Old 05-12-2006, 04:23 PM
  #3  
Contributing Member
 
91_4x4runner's Avatar
 
Join Date: Dec 2005
Location: San Antonio, TX
Posts: 1,072
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by Corey
Mark, do you mean this?
http://www.ccs.neu.edu/webadmin/dir_listing.html

That is what I had to do before to make my folders browsable.
I simply made a text file called
htaccess
and added
options + indexes
in it as text, uploaded, then used Cute FTP to rename the file with the . in front of it to
.htaccess

However once I renamed it, I can no longer ever see the file again.
If I use a webpage FTP interface that you can use with the server, then you can see the file.

I hope this is what you were looking for.

On unix based systems, the ls -a flag shows all files, hidden and not hidden. You could also use vi if you wanted to change it again.
Old 05-12-2006, 04:27 PM
  #4  
Registered User
Thread Starter
 
midiwall's Avatar
 
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,048
Likes: 0
Received 2 Likes on 2 Posts
hmm... that's what I thought, but I think there's a module missing from the server config on my box.

argh.


oh, btw... the "." as the first character of a filename on a *NIX system will hide the file. As you found, an FTP program will usually show it to you (it's a config option in most) but to see if from the shell you'll have to use the "-a" param on ls:
Code:
[05:20 PM foo]$ls
weeeeeee.html

[05:20 PM foo]$ls -a
.  ..  .htaccess  weeeeeee.html
Thanks man!


Originally Posted by 91_4x4runner
You could also use vi if you wanted to change it again.
Long live joe!
Old 05-12-2006, 04:30 PM
  #5  
Contributing Member
 
91_4x4runner's Avatar
 
Join Date: Dec 2005
Location: San Antonio, TX
Posts: 1,072
Likes: 0
Received 0 Likes on 0 Posts
I just really learned how to use vi when my linux box was crashing from the GUI to the command prompt and I needed to edit files to get it working again. Ever since, I've been hooked on using it for everything.
Old 05-12-2006, 04:36 PM
  #6  
Registered User
Thread Starter
 
midiwall's Avatar
 
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,048
Likes: 0
Received 2 Likes on 2 Posts
Originally Posted by 91_4x4runner
I just really learned how to use vi when my linux box was crashing from the GUI to the command prompt and I needed to edit files to get it working again. Ever since, I've been hooked on using it for everything.
Yeah... I know "you guys".

I never got into it...I spent too many years in OLD OLD OLD DOS using edlin and once I found a page editor, I was done with line editors. I drop joe on everything I touch, even cygwin here at work (we use it for verifying ANSI compatability) and my TiVo at home.



Hey Corey... GOT IT!

I had to remember that the "plus" is a modifier for the option, so:

Code:
option +indexes
and
Code:
option + indexes
are two different things.

Thanks!
Old 05-12-2006, 04:54 PM
  #7  
Co-Founder/Administrator
Staff
iTrader: (1)
 
Corey's Avatar
 
Join Date: May 2002
Location: Auburn, Washington
Posts: 32,242
Received 19 Likes on 15 Posts
Yes, I wrote it down wrong, but it is correct on that page I used many years ago to build my site with.

The + or - must be right in front of the indexes word with no space.

Even with Cute FTP though, I can no longer see that file.
I wonder of there is a setting to change that?

Now on all of my free Comcast accounts I have, I have also uploaded that file, but it will not make the Comcast folders browsable for me.
The only way I can see the files is to view them in Cute FTP.

And as you know Mark, I like to leave my folders viewable so I can pull them up in a window, then copy & paste the URL for a file I have such as a picture, movie, or whatever to the forum here.

It is something on Comcast's end that will not allow that trick to work.
Old 05-12-2006, 10:07 PM
  #8  
Contributing Member
 
91_4x4runner's Avatar
 
Join Date: Dec 2005
Location: San Antonio, TX
Posts: 1,072
Likes: 0
Received 0 Likes on 0 Posts
[hijack] Sad thing is I'm only 16. [/hijack]
Old 05-15-2006, 09:26 AM
  #9  
Registered User
Thread Starter
 
midiwall's Avatar
 
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,048
Likes: 0
Received 2 Likes on 2 Posts
Originally Posted by Corey
Even with Cute FTP though, I can no longer see that file.
I wonder of there is a setting to change that?
Ummm, I think so... I can't remember. I ditched CuteFTP a while ago when they started getting really anal about where I could and couldn't install it. (in terms of licensing)


I re-installed it to look. The answer is in the help file (should I drop my big SEARCH post on you??? )
To see hidden files on a remote site
  • Select the Site Manager tab
  • Select the site with the hidden files
  • Choose File > Properties from the menu
  • Select the Actions tab
  • Select Filter
  • Select Enable filtering
  • Select Enable server side filtering
  • Enter -a in the Remote field
  • Select OK
  • Connect to your site
Now on all of my free Comcast accounts I have, I have also uploaded that file, but it will not make the Comcast folders browsable for me.
The only way I can see the files is to view them in Cute FTP.

It is something on Comcast's end that will not allow that trick to work.
Yeah, they can globally disable that on the server side. It's considered a security risk and can get ugly in the wrong hands.
Old 05-17-2006, 12:12 AM
  #10  
Registered User
 
ldivinag's Avatar
 
Join Date: Dec 2003
Location: N37 39* W122 3*
Posts: 1,526
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by midiwall
I'm having a HUGE brainfart and I can't digest the Apache instructions right now.

Can someone point me to the httpd.conf setup to allow directory browsing under Apache? Not globally at the server level, just a specific user directory.

Thanks!
have you folks heard of WEB DAV?

coolest thing since sliced bread...


www.webdav.org
Old 05-17-2006, 06:00 AM
  #11  
Registered User
Thread Starter
 
midiwall's Avatar
 
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,048
Likes: 0
Received 2 Likes on 2 Posts
Originally Posted by ldivinag
have you folks heard of WEB DAV?
coolest thing since sliced bread...
www.webdav.org
Hmmm... this:
"It is a set of extensions to the HTTP protocol..."
...scares me. THAT'S the kindof crap that created the living hell that's on the web now. (e.g. & aka, FrontPage)

I've been happy with FTP and telnet since day one of being online (93ish). I REALLY don't want Yet Another Frigging Protocol between me and my data.

Thanks though Leo... I'll keep reading.


edit: oh, this explains it! "...from when I worked at Microsoft..." (from the FAQ)

Last edited by midiwall; 05-17-2006 at 06:02 AM.
Old 05-17-2006, 10:05 AM
  #12  
Registered User
 
ldivinag's Avatar
 
Join Date: Dec 2003
Location: N37 39* W122 3*
Posts: 1,526
Likes: 0
Received 0 Likes on 0 Posts
scares you in what way?

protocols dont scare me. unsecured connections do.

you can SSL a webdav connection.

plus it's an open protocol vs closed for FP.

also, you know this is how apples iCal rides on, right? so you can serve your own iCal calendars using open source clients... like mozilla's CALENDAR project.

and using windows XP, you can open an explorer screen on a remote folder. that is where it really shines for me.
Old 05-17-2006, 02:01 PM
  #13  
Registered User
Thread Starter
 
midiwall's Avatar
 
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,048
Likes: 0
Received 2 Likes on 2 Posts
What scares me is that it's Yet Another Set of Extensions to HTML, and it's Yet Another Protocol On Top of a Protocol.

argh.

sftp works for me.
Old 05-17-2006, 05:04 PM
  #14  
Contributing Member
 
91_4x4runner's Avatar
 
Join Date: Dec 2005
Location: San Antonio, TX
Posts: 1,072
Likes: 0
Received 0 Likes on 0 Posts
I love sftp, it works so well and is semi-secure.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Big Little Bear
Pre 84 Trucks (Build-Up Section)
230
11-13-2023 11:42 AM
elaketiger
86-95 Trucks & 4Runners
5
09-14-2015 09:58 AM
88yodabasket
86-95 Trucks & 4Runners
15
07-13-2015 01:32 PM



Quick Reply: Directory browse under Apache?



All times are GMT -8. The time now is 06:14 PM.