Directory Listing Denied (map.connect '')

Topics: Developer Forum
Mar 8, 2007 at 11:51 PM
Hello,

First off, this is a pretty great installer, thank you!

After getting through my setup (had to fix a few permissions, etc), I can access the application just fine if I go to http://localhost:8080/controller/, but when I try to hit http://localhost:8080/, I get a directory listing denied issue. Is this something that I need to fix in the FastCGI setup? How can I make a request to the public directory use the map.connect '', :controller=>'controller' line in my routes.rb?

Thanks in advance,
Warren Wessels
Mar 9, 2007 at 2:16 AM
Hi Warren,

Under IIS you can specify a default document. IIS -> website properties -> documents tab.

Add a new document = "dispatch.fcgi?opnq=/controller
Remove any existing default documents.

I haven't tested this procedure but I think it should do the trick. You might also be able to just add dispatch.fcgi and in your routes.rb add a default path of "/" to point to your default controller...

Try these out and please post your results for others.

Thanks,
Brent
Mar 12, 2007 at 5:00 PM
Brent,

Awesome suggestion. The default document procedure did work as you suspected it would, thank you!

-Warren