Error: Directory Listing Denied

Topics: Developer Forum, Project Management Forum, User Forum
Jun 28, 2010 at 1:59 PM

Dear Friends,

Following is my configuration:

  • IIS 6.0 on Windows Server 2003 (Standard Edition) running on cloud server
  • IIRF 2.1 installed using msi. IIRF is properly running since I am able to see status using http://mydomain.net/iirfstatus
  • I have created site in IIS under IP address = (All Unassigned)
  • My application is developed in VS2008. (ASP.net)
  • In IIS  I have mydomain.net as an appPool, the one using settings of DefaultAppPool
  • I have got my DNS settings changed to *.mydomain.net. as a result when I ping <anystring>.mydomain.net I get reply from the server.

I have following rules written in my IIRF.ini file which is in www (root) older.....

RewriteEngine ON
StatusUrl /iirfStatus RemoteOk
RewriteLog c:\logs\iirf
RewriteLogLevel 3
CondSubstringBackrefFlag  *


# Extract the subdomain part of domain.com
RewriteCond %{HTTP_HOST} ^(.*)\.mydomain\.net

# rewrite all requests passing as argument the subdomain
Rewrite ^.*$ http://mydomain.net/Default.aspx?user=%1

What I want to achieve is : http://name.mydomain.net  ====rewrite to ====> http://mydomain.net/Default.aspx?user=name

Problems: Whenever I try to access http://name.mydomain.net I get error saying :
Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

Strange thing is whenever I access my site as : http://name.mydomain.net ==> IIRF log is not getting updated.

Please help!

regards,

Mandar

Coordinator
Jun 28, 2010 at 7:52 PM

If your rule really is as you say, then you have no rule.  You said you use this:

# rewrite all requests passing as argument the subdomain
Rewrite ^.*$ http://mydomain.net/Default.aspx?user=%1

 

But "Rewrite" is not a directive. You need to use RewriteRule. This problem would have been noted as an error or warning in the IIRF log file as well as in /iirfstatus.  

 

Jun 29, 2010 at 5:00 AM

Thanks a lot for quick reply Cheeso!

I have corrected the IIRF.ini using "RewriteRule" now. But the problem still persists. I think I got the reason and would like to have confirmation from you.

I am running this website on cloud server. This server has other three sites running on it. A record of all sites is same that is ip address of my cloud server. As I said earlier I have changed DNS entry of mydomain.net to *.mydomain.net. It's A record is also pointing to IP address the of cloud server

Now my IIRF.ini is in the root folder of  mydomain.net. It seems that IIS is not able to take my http://xyz.mydomain.net request to vdir of mydomain.net. As there is no unique IP associated with mydomain.net

I have reached to this conclusion because as I said whenever I try to access the site using http://test.mydomain.net.... log file is not getting updated, and I get "Directory Listing Denied" error.

 

It seems like I need to have at least one unique IP assigned for mydomain.net on the cloud server.


Please confirm!