Page 1 of 1

Allow directory listing of folder

Posted: Thu Sep 06, 2007 5:14 pm
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.

Re: Allow directory listing of folder

Posted: Thu Sep 06, 2007 10:50 pm
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

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 11:19 am
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

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 11:29 am
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

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 11:35 am
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

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 12:40 pm
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?

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 12:57 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 1:11 pm
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

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 2:15 pm
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

Re: Allow directory listing of folder

Posted: Tue Mar 10, 2009 2:41 pm
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