Azure page not founr error on image request -
i use azure php webapp , have next directory: site/wwwroot/
vendor
uploads
index.php
i have images in upload directory. when try them like: mysite/uploads/1.jpg page not found error tried change web.config file this:
<configuration> <system.webserver> <rewrite> <rules> <rule name="slim catch all" enabled="true"> <match url=".*" /> <action type="rewrite" url="/index.php" /> <conditions> <add input="{url}" pattern="/content/.*" negate="true" /> </conditions> </rule> <rule name="rewrite index"> <match url="(.*)" /> <conditions> <add input="{url}" pattern="^/$" /> </conditions> <action type="rewrite" url="/uploads" /> </rule> </rules> </rewrite> </system.webserver> <system.web> <authorization> <deny users="?"/> </authorization> </system.web> <location path="uploads"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> </configuration>
Comments
Post a Comment