what file is showing at http://localhost/? - iis

I am using windows server 2012R2 IIS
I have the Default Web Site set up with Physical path c:\inetpub\wwwroot with pass-through authentication and a classic application pool.
When I browse to show local host I see an old copy of my index.htm but I can no longer find it on disk.
The order of my default documents is
index.aspx
index.htm
default.aspx
I have tried iisreset and also a reboot.
If I refresh the page then the correct page loads, but why is the old one displaying first?

clear explorer cache
Tools -> Internet Options - > Delete History

Related

Is it good practice to delete Default Web Site in IIS?

I can't found nothing recent on the web about if deleting Default Web Site in IIS is a good practice, i'm using IIS v10 and as in wwwroot i have each website inside it's own folder in IIS i've just created a website for each of them..
So i'm just not using the Default Web Site and i was wondering if will it cause any problem if i will delete it (for now i've just disabled it but seeing it in the list is a bit triggering), about deleting or keeping the Default Web Site i just found an article from 2001 so i would know something more recent about it.
Yes, you can safely delete the Default Web Site in IIS Manager, even though delete the files under the wwwroot. And it should be a good practice to do that to avoid some unexpected web accesses or attack.
And the Default Web Site in IIS Manager, even though the files under the wwwroot, is used for the first validation of IIS installation.
More, the Default Web Site will take the default port 80 if not disabled/deleted.
So, please go ahead to delete it.

IIS Security Login Popup for one folder in server 2008

I am setting up a classic asp website on windows server 2008 R2 Service Pack 1. All my pages are working fine except for those in a single directory named /reports. That folder contains only .asp pages, no specialized config or hidden files. Below is the image of the popup I get for that location.
In IIS I have Anonymous Authentication enabled and set to application pool, though I have also attempted setting it to IUSR which didn't change anything.
I went a bit nuts adding users with full control of the folder
If anyone has any ideas I am officially desperate. I've read and tried everything I can find on windows and stackoverflow websites.
If you have SQL Server Reporting Services (SSRS) installed, the folder name "Reports" will be reserved. You can change the folder name "Reports" with something else in the Reporting Services Configuration Manager into Web Portal URL.

why does the index page of my website bring me to the Lucee start page?

I have a Windows 2012 web server running IIS. I've installed Lucee on it and everything seems to be working fine. I created a web site and set the default document to index.cfm. When I go to this site, I see the index.cfm file.
I created another web site, with basically identical settings as the first web site except with a different host name. However, when I go to the index.cfm page for this site, it brings me to the Lucee start page.
Additionally, I set the directory of the web site to be C:\sitename\www
However when I try to access any other page other than the index.cfm page, it gives me an error saying the page at C:\inetpub\www cannot be found. Its like it is looking in the wrong place. I have verified that the location of the directory for the site is C:\sitename\www
Why does this site not work, but the other one does. It seems to be a configuration issue, but both site are configured exactly the same with the exception of the host name.
My Lucee configuration file at :
C:\lucee\lib\lucee-server\context\lucee-server.xml
had the wrong information in the section. Once I corrected it, it started working again.

IIS 8.5 is not serving JS, CSS, and Image files (static content)

The problem
We're running IIS on Windows 8.1 with Update. We're at the Orchard CMS first time setup screen, and IIS is giving 401s for all static content. We have read the following to no avail:
IIS 7.5 no images css js showing
IIS 7.5 no images css js showing
The official Orchard deployment documentation
Based on those, this is what I have tried that doesn't work.
Turn on the IIS feature to Serve Static Content.
Give IIS_IUSRS permission to Read, write & execute.
Give the site's application pool permission to Read, write & execute.
What does work though is the nuclear option: to give Everyone the Read permission (unless we want to proceed with the Orchard setup; then we need to give Everyone even more permissions.) That leads me to believe that I must give permission to some principle with less scope than Everyone but more scope than both IIS_IUSRS and the application pool combined.
Who/what is that principle?
Pictures to show the problem
We receive a 401 on ..\Themes\SafeMode\Styles\site.css
The task manager confirms that the site is running as the orchard user.
The security properties of the ..\Themes\SafeMode\Styles\ directory gives Read permission to orchard.
Why does it only work when we give Read permission to Everyone?
I had a similar problem. Under authentication, I right clicked "Anonymous Authentication" and clicked "Edit". That shows a dialog giving you the ability to set the identity of the anonymous user. I set it to "Application pool identity" and that fixed the problem for me.
.
This may not be the most secure configuration though, but I'm on a dev server so I don't care.
Try turn on the Static Content and Directory Browsing features under Internet Information Services->World Wide Web Services->Common HTTP Features node.
In my case I had to set Read permission for IUSR user for the web site folder.
So, what I had to do to fix this problem was the following:
(and please understand, that this is not ASP or PHP script related, the server wouldn't even show basic simple .html files, yet would serve out PHP results all day long!)
Two fold…
Had to set the application pool for each site, under advanced settings, to use LocalSystem for it’s process
Under site, advanced settings, security, add the IUSR account to have read & list contents access, for the site… :-)
See any problems with doing that?
'cuz it's working....
Updating windows feature for WWW services/Common Http Features/static content by selecting Static Content checkbox fixed my IIS not service static content issue.
Open IIS -> go to advanced settings of selected website and open Physical Path Credentials -> Select specific user and enter your local user credentials. Open below screenshot for further visualising the things:
IIS Settings

IIS How to config to hide files in the folder?

For example, my website's url is http://xxx.xxx.xxx.xxx/index.aspx
If someone enters xxx.xxx.xxx.xxx at browser, the page will show my files in server:
What shouled I config to hide this file-list page?
I think you are looking for disabling directory browsing. You can follow below steps to disable directory browsing in IIS.
Navigate to your application in IIS Manager and select it.
In Features View, double-click Directory Browsing.
In the Actions pane, click Disable if the Directory Browsing feature is enabled.

Resources