Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28058

IIS 7.5 difference when querying static content from localhost and externally

$
0
0
After 4 hours of looking through the internet, searching Google I've finally decided to go check in with the "hopefully" gurus...

My problem is this, when querying from the local machine through remote desktop, querying for www.domainname.com/Content/Styles/reset.css i get the css fine.

When doing the same from an external machine, I get a 404 error... I know why, the reason is that it's trying to get the file from: C:\inetpub\wwwroot\Content\Styles\reset.css

This is kind of bad considering that the website is actually hosted at: c:\http\www.domainname.com\

The error in the browser, from IIS, gives the following information: Module IIS Web Core Notification MapRequestHandler Handler StaticFile Error Code 0x80070002 Requested URL http://www.domainname.com:80/Content/Styles/reset.css Physical Path C:\inetpub\wwwroot\Content\Styles\reset.css Logon Method Anonymous Logon User Anonymous

I've been looking at the other sites running on the IIS, and none of them point to InetPub as their directory, so I simply can't see why it's trying to get the item from this path.

Calling the main application, a MVC based site running Umbraco, works fine, or rather, all the dynamic content works fine, just not static content.

To give a little more information: Currently the IIS 7.5 has 4 sites and 1 ftp server running.

1 site with the following bindings:
http - this 1st site host name - port 80 - ip address *

https - blank host name - port 443 - ip address *

1 site with the following bindings:
http - the 2nd site host name - port 80 - ip address *

1 domain with the following bindings:
http - the 3rd site host name - port 80 - ip address *

The actual domain:
http - www.domainname.com - port 80 - ip address *

And finally a ftp server

I hope that someone have any idea what is going on...

Best regards and praying (despite being an atheist), Poul

Viewing all articles
Browse latest Browse all 28058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>