Copied to clipboard

Flag this post as spam?

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


  • Chris Smallman 2 posts 72 karma points
    May 17, 2016 @ 13:19
    Chris Smallman
    0

    Subdirectory issue when migrating Umbraco to Azure

    Hi,

    I currently have an issue when migrating Umbraco from a VM to an Azure service. Long story, but Umbraco has had to be moved to a subdirectory (eg site/cms/umbraco) of an existing site due to the root site (not Umbraco built) using the media directory for its content.

    I created a virtual directory to point to the root of the Umbraco (eg http://site.domain/cms), meaning the users have to type /cms/umbraco for the site to load. The issue here is that Umbraco then uses that URL as the root directory, and looks for its plugins under site/cms/umbraco, meaning 404 errors and content not being displayed.

    The main issue I have is that when I change the virtual directory to look at site/cms/Umbraco to send them directly to the main Umbraco page, the site doesn't load. I get an error stating the directory contents cannot be loaded.

    Does anyone have any idea why this would be the case? It's odd that manually appending the URL of the subdirectory /cms/umbraco would work fine, but sending the requests directly by amending the 'cms' virtual directory would not. Is there something in a config file that I'm missing?

    Any help appreciated, this is driving me insane!

  • Michael 125 posts 409 karma points
    May 17, 2016 @ 13:35
    Michael
    0

    Hi,

    did you play with we.config keys:

    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/content,~/scripts,~/api,~/Content/views" />
    <add key="umbracoPath" value="~/umbraco" />
    

    ~/cms/umbraco or smth like this...

    Thanks, Mike

  • Chris Smallman 2 posts 72 karma points
    May 17, 2016 @ 16:16
    Chris Smallman
    0

    Hey,

    I tried every combination possible, but still to no avail. I really don't understand how having the virtual directory as /cms, and manually typing /cms/umbraco works fine, but changing the virtual directory to point to /cms/umbraco doesn't 'activate' the redirect and display the login page. It's really bizarre.

    Thanks for the suggestion! :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies