Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aditya.A 77 posts 96 karma points
    Jun 27, 2011 @ 12:53
    Aditya.A
    0

    Problems after changing folder into default web site in iis

    Hi i have changed the location of my site folder in iis ,since then the website is not displaing an image also the paths are like this.The media folder is causing this problem ,as it is still using the old path.

    Requested URL http://localhost:80/media/16823/holiday.jpg

    Physical Path

    C:\inetpub\wwwroot\media\16823\holiday.jpg

    insted it should be like 

    http://localhost:80/Sam/media /16823/holiday.jpg

    C:\inetpub\wwwroot\sam\media\16823\holiday.jpg

     

    how can i do it. is it caused by changing the website in iis into 'Default Web Site' .Before moving it to 

     'Default Web Site'  i have made it as a saperate website.

  • Chris Dunn 210 posts 401 karma points
    Jun 28, 2011 @ 01:12
    Chris Dunn
    0

    You moved the umbraco application files from wwwroot to wwwroot\sam?  Did you also set the IIS Physical Path for Default Website to wwwroot\sam, or are you trying to run umbraco in a subfolder?  Based on your expected url of http://localhost:80/Sam/media /16823/holiday.jpg I am assuming that's the case....maybe i'm wrong.

    The url's for pages and media are relative to the umbraco root which is "Default Web Site" or http://localhost:80.  So 'Sam" is only a part of the physical file system and won't show in the url.

    Check the physical path setting for Default Website which should point to wwwroot\sam and then http://localhost:80/media/16823/holiday.jpg would be the right url of the media file even though c:\inetpub\wwwroot\sam\media\16823\holiday.jpg is the physical address.

    My 2cents :)

    -Chris

  • Aditya.A 77 posts 96 karma points
    Jun 29, 2011 @ 18:28
    Aditya.A
    0

    Hi chris i am sure i have set the physical path of the application correctly.

    i always work with the project folders in c:inetpub/wwwroot. but in iis7 ,which i am using i have created a new website and gave the physical path to c:\inetpub\wwwroot\sam. initially it worked.

    so i have created a new site in "default web site" (IIS7) and gave the physical path to c:\inetpub\wwwroot\sam (offcourse i have removed the bindings). but still the problem is not resolved.

Please Sign in or register to post replies

Write your reply to:

Draft