aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@gmail.com>2017-11-27 10:55:30 +0100
committerGitHub <noreply@github.com>2017-11-27 10:55:30 +0100
commitd72d8773981d96f148288993a3c03f8915b75871 (patch)
tree4bcf43b600f4737f979b82b36ba5f4db4ad88578
parent6dc6392017611c591d7dd7759912e0a4c4b8d863 (diff)
Create web.config
-rw-r--r--web.config28
1 files changed, 28 insertions, 0 deletions
diff --git a/web.config b/web.config
new file mode 100644
index 0000000..3465890
--- /dev/null
+++ b/web.config
@@ -0,0 +1,28 @@
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <clear />
+ <rule name="BlockAccessToPublic" patternSyntax="Wildcard" stopProcessing="true">
+ <match url="*" />
+ <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
+ <add input="{URL}" pattern="/web/*" />
+ </conditions>
+ <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page using the credentials that you supplied." />
+ </rule>
+ <rule name="RewriteAssetsToPublic" stopProcessing="true">
+ <match url="^(.*)(\.css|\.js|\.jpg|\.png|\.gif|\.ico)$" />
+ <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
+ </conditions>
+ <action type="Rewrite" url="web/{R:0}" />
+ </rule>
+ <rule name="RewriteRequestsToPublic" stopProcessing="true">
+ <match url="^(.*)$" />
+ <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
+ </conditions>
+ <action type="Rewrite" url="web/app.php/{R:0}" />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration>