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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -