diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9241cf2..482c683 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,7 +15,7 @@ Apache Deployment: - mkdir /var/www/html/enpaul.new - rm ./deploy.ps1 - rm ./web.config - - rm -r ./_archive + - rm ./.gitlab-ci-yml - cp -r ./* /var/www/html/enpaul.new/ - mv /var/www/html/enpaul /var/www/html/enpaul.old - mv /var/www/html/enpaul.new /var/www/html/enpaul diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..95e2bc1 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ +ErrorDocument 401 /401.html +ErrorDocument 403 /403.html +ErrorDocument 404 /404.html +ErrorDocument 405 /405.html +ErrorDocument 406 /406.html +ErrorDocument 412 /412.html + +ErrorDocument 500 /500.html +ErrorDocument 501 /501.html +ErrorDocument 502 /502.html diff --git a/deploy.ps1 b/deploy.ps1 index ec7c4c7..ca73d01 100644 --- a/deploy.ps1 +++ b/deploy.ps1 @@ -18,6 +18,9 @@ if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\deploy.ps1") { if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore") { Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.gitignore" -Force } +if (Test-Path "C:\inetpub\wwwroot\enpaul.net.new\.htaccess") { + Remove-Item -Path "C:\inetpub\wwwroot\enpaul.net.new\.htaccess" -Force +} Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net" -NewName "enpaul.net.old" -Force Rename-Item -Path "C:\inetpub\wwwroot\enpaul.net.new" -NewName "enpaul.net" -Force