Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosting basic html site on iis

Tags:

html

iis

I have a basic web site (just html, js and css files) that I want to host on IIS on my local machine for testing purposes. The site runs fine when I run it directly as a file on my computer. I added a website on IIS, using the directory these files are located in, but when I try to launch it, I get an error page that says:

An error occurred loading a configuration file: Failed to start monitoring changes to '[my site path]' because access is denied.

It then says that the source file is a web.config. I know that ASP.NET sites use a web.config, but I don't even have one, and I just want to run a basic site using html, css, and javascript.

Any ideas on what the fix might be? I made sure I have an application pool for the site.

like image 916
Skitterm Avatar asked Jun 25 '14 17:06

Skitterm


1 Answers

You likely put it into your user profile -- ie c:\users\skitterm\ -- which won't let the process running IIS read the folder. You are better off using IIS' built in directory structure in c:\inetpub and adding a folder for your site.

like image 75
Wyatt Barnett Avatar answered Sep 29 '22 07:09

Wyatt Barnett