Skip to content

Instantly share code, notes, and snippets.

View claytonrothschild's full-sized avatar
😎
building cool stuff for CloudPano

Clayton Rothschild claytonrothschild

😎
building cool stuff for CloudPano
View GitHub Profile
@claytonrothschild
claytonrothschild / RunHttpsWebsite.Dockerfile
Created December 18, 2018 18:53
Run a IIS HTTPS Webserver using Docker
FROM microsoft/iis
WORKDIR /app
RUN powershell -NoProfile -Command \
Import-module IISAdministration; \
New-IISSite -Name "[YourSiteName]" -PhysicalPath C:\app -BindingInformation "*:81:"; \
# Download the IIS url-rewrite module
Invoke-WebRequest http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1BB-31D58B36ADA2/rewrite_amd64_en-US.msi -UseBasicParsing -OutFile C:/app/rewrite.msi; \
Start-Process msiexec -ArgumentList '/i C:\app\rewrite.msi /qn' -Wait; \
@claytonrothschild
claytonrothschild / IIS-RewriteHttpToHttps.ps1
Created December 18, 2018 18:37
Use Powershell to Create IIS Rule to Rewrite HTTP to HTTPS
Import-module IISAdministration;
New-IISSite -Name "[YourSiteName]" -PhysicalPath C:\app -BindingInformation "*:81:";
# Download the IIS url-rewrite module
Invoke-WebRequest http://download.microsoft.com/download/D/D/E/DDE57C26-C62C-4C59-A1BB-31D58B36ADA2/rewrite_amd64_en-US.msi -UseBasicParsing -OutFile C:/app/rewrite.msi;
Start-Process msiexec -ArgumentList '/i C:\app\rewrite.msi /qn' -Wait;
rm C:\app\rewrite.msi;
# Produce a rule that looks like this:
# <rewrite>
# <rules>

Keybase proof

I hereby claim:

  • I am claytonrothschild on github.
  • I am claytonr (https://keybase.io/claytonr) on keybase.
  • I have a public key ASDD9tVIsvzXNqWndXVXVfSepKNZn8c_uTBUaNxJaDBLWQo

To claim this, I am signing this object: