John
John

Reputation:

Virtual Directory in Azure Web Role

Is there a way to create a Virtual Directory in Azure web role. I know you can create them programmaticly on a normal instance of IIS 7, but you have to assign a physical path. How is that possible in Azure?

Upvotes: 9

Views: 3835

Answers (3)

Matej
Matej

Reputation: 7627

Edit your .csdef and add VirtualDirectory node inside Site node

<WebRole name="SampleWebApp">
  <Sites>
    <Site name="SampleSite" physicalDirectory="..\SampleWebApp">
      ...
        <VirtualDirectory name="Styles"
                          physicalDirectory="..\SampleWebApp\Styles" />
      </VirtualApplication>
      ...
    </Site>
  </Sites>
  ...
</WebRole>

More: How to Configure the Virtual Directory Location

Upvotes: 6

ajay_whiz
ajay_whiz

Reputation: 17931

Have a look at this Multiple Websites in a Web Role

Upvotes: 4

MrSharps
MrSharps

Reputation: 547

No. Web roles on windows azure do not support the concept of a virtual directory.

Upvotes: -2

Related Questions