I can successfully build and ran a demo classic asp site (given here: https://www.docker.com/blog/get-apps-off-windows-2003-cloud-docker-enterprise/) (source code is here: https://github.com/sixeyed/presentations/tree/master/docker-webinars/from-w2k3-to-cloud) with the following Dockerfile:
# escape=`
FROM microsoft/iis:windowsservercore-ltsc2016
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Install-WindowsFeature Web-ASP
COPY ./share/ClassicAspApp.zip .
RUN Expand-Archive -Path ClassicAspApp.zip -DestinationPath C:\ClassicAspApp; `
Remove-Item ClassicAspApp.zip
RUN Remove-Website -Name 'Default Web Site'; `
New-Website -Name web-app -Port 80 -PhysicalPath C:\ClassicAspApp
After building the image (docker image build -t sixeyed/w2k3-classic-asp -f .\docker\classic-asp\Dockerfile .) and running the container (docker container run -d sixeyed/w2k3-classic-asp) and then browsing to the spesific url (found by: docker container inspect ) I indeed can get the classic asp site work as expected.
However, whenever I unzip and change (even a bit) the source code in a demo asp-file (in share-folder) and then rebuild image and run the container again and browse to the url, I will always encounter http 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.
I have tried to find solution to this from many sources (such as IIS in Docker returning 403 and Dockerize ASP Classic on IIS) with no success so far.
Can anyone figure out why I always encounter http 403 when I change the test asp-file in the source code? So, what should be done to fix this?