Allow directory listing of folder

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Kanoner
Posts: 3
Joined: Sun Aug 05, 2007 11:35 pm
Location: Bergen, Norway
Contact:

Allow directory listing of folder

Post by Kanoner »

I would like to allow directory listing of a folder in my webroot. This is where i installed serendipity. www.kanoner.org. I would like to allow dir listing in www.kanoner.org/smil

I put a htaccess file with "Options +Indexes" in it and saved it without any extension (like txt) in ultraedit.

But when i open www.kanoner.org/smil it directs me to my blogg.

Any idea how I can solve this.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Allow directory listing of folder

Post by garvinhicking »

Hi!

If you use mod_Rewrite, you also need to enter "RewriteEngine Off" inside your .htaccess. You might also needto set "DirectoryIndex none.php" or sth like that to prevent that s9y uses the /index.php file.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Allow directory listing of folder

Post by ed587 »

Hello All,

Seemingly just after writing to my .htaccess file and uploading it to the server I got the following when trying to access my blog:

Forbidden
You don't have permission to access /serendipity/ on this server.
You may need to create an index.html page or enable the directory browsing by creating an .htaccess file containing "Options +Indexes".
--------------------------------------------------------------------------------
Apache/1.3.39 Server at http://www.neterm.net Port 80

What I wrote in my .htaccess file was:
deny from 76.112.58.214
deny from 76.112.58.

Adding "Options +Indexes" didn't help. In the meantime spam is being written to my guestbook. Help.

~Ed587
The best,

~Ed
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Allow directory listing of folder

Post by ed587 »

ed587 wrote:Hello All,

Seemingly just after writing to my .htaccess file and uploading it to the server I got the following when trying to access my blog:

Forbidden
You don't have permission to access /serendipity/ on this server.
You may need to create an index.html page or enable the directory browsing by creating an .htaccess file containing "Options +Indexes".
--------------------------------------------------------------------------------
Apache/1.3.39 Server at http://www.neterm.net Port 80

What I wrote in my .htaccess file was:
deny from 76.112.58.214
deny from 76.112.58.

Adding "Options +Indexes" didn't help. In the meantime spam is being written to my guestbook. Help.

~Ed587
sorry about the double post, I requoted so I could be notified when there is a reply
The best,

~Ed
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Allow directory listing of folder

Post by garvinhicking »

Hi!

It seems the "Deny" option is not allowed from your server config. The "options +indexes" must be written to your VHost configuration file, it cannot be done within the .htaccess.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Allow directory listing of folder

Post by ed587 »

garvinhicking wrote:Hi!

It seems the "Deny" option is not allowed from your server config. The "options +indexes" must be written to your VHost configuration file, it cannot be done within the .htaccess.

Regards,
Garvin
Hiya Garvin,

I appreciate your reply. I assume this is something my hosting company admin will have to write? What has caused the files to be Forbidden all of a sudden? It can't be what I wrote in .htaccess can it?

Would they have locked the files if I was being attacked by spammers?

What does anyone suggest I do at this point to get things working again?
The best,

~Ed
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Allow directory listing of folder

Post by garvinhicking »

Hi!

Indeed this should be caused by your "Deny" rule. If you remove that from .htaccess, it should work again!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Allow directory listing of folder

Post by ed587 »

garvinhicking wrote:Hi!

Indeed this should be caused by your "Deny" rule. If you remove that from .htaccess, it should work again!

Regards,
Garvin
Thanks again Garvin, removed the last two of my Deny statements and things are working again. Was it the syntax I was using because in the body of my .htacess I have the following: deny from .stade.fr deny from 194.116.143.25
Things are working with these statements in the .htaccess.

I decided to remove my guestbook. I have Spam Protector plugin working and Spam Protector (RBL) working but I'm still getting blasted. Bummer.

~Ed587
The best,

~Ed
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Allow directory listing of folder

Post by garvinhicking »

Hi!

Ah, this can be. IP adre
Thanks again Garvin, removed the last two of my Deny statements and things are working again. Was it the syntax I was using because in the body of my .htacess I have the following: deny from .stade.fr deny from 194.116.143.25
Things are working with these statements in the .htaccess.
Phew, sadly I don'T use those Deny rules that often; i don't know if wildcard matching through X.X.X. is allowed...?!
I decided to remove my guestbook. I have Spam Protector plugin working and Spam Protector (RBL) working but I'm still getting blasted. Bummer.
Did you enable the Captcha option of the spam protector? That should usually get rid of it!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ed587
Regular
Posts: 75
Joined: Thu Feb 12, 2009 3:26 pm

Re: Allow directory listing of folder

Post by ed587 »

garvinhicking wrote:Hi!

Ah, this can be. IP adre
Thanks again Garvin, removed the last two of my Deny statements and things are working again. Was it the syntax I was using because in the body of my .htacess I have the following: deny from .stade.fr deny from 194.116.143.25
Things are working with these statements in the .htaccess.
Phew, sadly I don'T use those Deny rules that often; i don't know if wildcard matching through X.X.X. is allowed...?!
I decided to remove my guestbook. I have Spam Protector plugin working and Spam Protector (RBL) working but I'm still getting blasted. Bummer.
Did you enable the Captcha option of the spam protector? That should usually get rid of it!

Regards,
Garvin
Garvin,
I've put a month of Sundays into trying to get the Captcha option working with no luck. I will try again today. I'll start fairly fresh and uninstall/reinstall the plugins and see what happens. Thanks for the help.

The best,
~Ed587
The best,

~Ed
Post Reply