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

Directory browse under Apache?

Thread Tools
 
Search this Thread
 
Old May 12, 2006 | 04:08 PM
  #1  
midiwall's Avatar
Thread Starter
Registered User
 
Joined: Dec 2002
Posts: 9,048
Likes: 2
From: Seattleish, WA
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!
Reply
Old May 12, 2006 | 04:20 PM
  #2  
Corey's Avatar
Co-Founder/Administrator
iTrader: (1)
 
Joined: May 2002
Posts: 32,242
Likes: 21
From: Auburn, Washington
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.
Reply
Old May 12, 2006 | 04:23 PM
  #3  
91_4x4runner's Avatar
Contributing Member
 
Joined: Dec 2005
Posts: 1,072
Likes: 0
From: San Antonio, TX
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.
Reply
Old May 12, 2006 | 04:27 PM
  #4  
midiwall's Avatar
Thread Starter
Registered User
 
Joined: Dec 2002
Posts: 9,048
Likes: 2
From: Seattleish, WA
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!
Reply
Old May 12, 2006 | 04:30 PM
  #5  
91_4x4runner's Avatar
Contributing Member
 
Joined: Dec 2005
Posts: 1,072
Likes: 0
From: San Antonio, TX
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.
Reply
Old May 12, 2006 | 04:36 PM
  #6  
midiwall's Avatar
Thread Starter
Registered User
 
Joined: Dec 2002
Posts: 9,048
Likes: 2
From: Seattleish, WA
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!
Reply
Old May 12, 2006 | 04:54 PM
  #7  
Corey's Avatar
Co-Founder/Administrator
iTrader: (1)
 
Joined: May 2002
Posts: 32,242
Likes: 21
From: Auburn, Washington
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.
Reply
Old May 12, 2006 | 10:07 PM
  #8  
91_4x4runner's Avatar
Contributing Member
 
Joined: Dec 2005
Posts: 1,072
Likes: 0
From: San Antonio, TX
[hijack] Sad thing is I'm only 16. [/hijack]
Reply
Old May 15, 2006 | 09:26 AM
  #9  
midiwall's Avatar
Thread Starter
Registered User
 
Joined: Dec 2002
Posts: 9,048
Likes: 2
From: Seattleish, WA
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.
Reply
Old May 17, 2006 | 12:12 AM
  #10  
ldivinag's Avatar
Registered User
 
Joined: Dec 2003
Posts: 1,526
Likes: 0
From: N37 39* W122 3*
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
Reply
Old May 17, 2006 | 06:00 AM
  #11  
midiwall's Avatar
Thread Starter
Registered User
 
Joined: Dec 2002
Posts: 9,048
Likes: 2
From: Seattleish, WA
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; May 17, 2006 at 06:02 AM.
Reply
Old May 17, 2006 | 10:05 AM
  #12  
ldivinag's Avatar
Registered User
 
Joined: Dec 2003
Posts: 1,526
Likes: 0
From: N37 39* W122 3*
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.
Reply
Old May 17, 2006 | 02:01 PM
  #13  
midiwall's Avatar
Thread Starter
Registered User
 
Joined: Dec 2002
Posts: 9,048
Likes: 2
From: Seattleish, WA
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.
Reply
Old May 17, 2006 | 05:04 PM
  #14  
91_4x4runner's Avatar
Contributing Member
 
Joined: Dec 2005
Posts: 1,072
Likes: 0
From: San Antonio, TX
I love sftp, it works so well and is semi-secure.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Big Little Bear
Pre 84 Trucks (Build-Up Section)
230
Nov 13, 2023 11:42 AM
elaketiger
86-95 Trucks & 4Runners
5
Sep 14, 2015 09:58 AM
88yodabasket
86-95 Trucks & 4Runners
15
Jul 13, 2015 01:32 PM




All times are GMT -8. The time now is 02:11 AM.