Microsoft Azure Open Source Development Support Team Blog

Support for Open Source Technologies on Microsoft Azure App Service

RewriteRule sample for WordPress in subdirectory

In the case you installed another instance of WordPress in a subdirectory of main WordPress site in Azure web app for Windows, your WordPress installation may be like this,   if use “Post name” Permalink setting, with default web.config, articles in subdirectory might give 404 (not found), for example,   For this problem, you can… Read more

Azure Web App with AngularJs and NodeJs Apps on Same Instance

In my previous Blog, I have wrote on hosting AngularJs app in Azure Web App. This post would provide details on how to host AngularJs App on a web app instance aside of NodeJs App.  Code available on github @   1) Install express-generator at global level, we would use this to create express(nodeJs web framework)… Read more

Convert Apache .htaccess to IIS Web.Config

  A web.config file is the settings and configuration for applications on IIS Server (ex: Azure Paas Websites ). But what if you’re coming from a Linux host – what then? Well, there are few options: 1) Online Conversion Tool As always, please verify the converted web.config rules on a development site before introducing… Read more

Migrate Yii Framework Application to Azure Web App

1. Create a PHP Empty Web App on Azure:               2. Copy the contents from Yii framework application root to wwwroot, e.g.          Note: In this example, framework and application (assets, themes, index.php, etc.) are all in wwwroot.   3. Turn on error log, so that you can watch for… Read more

web.config for Zend Framework Project on Azure Apps

When you deploy Zend Framework project to Azure Apps, the web.config provided by Zend ( maybe not fit. Here is how to modify web.config and configure new application root: 1. Modify web.config: <?xml version=”1.0″ encoding=”UTF-8″?><configuration>    <system.webServer>        <rewrite>            <rules>                <rule name=”Imported Rule 1″ stopProcessing=”true”>                    <match url=”^.*$” />                    <conditions logicalGrouping=”MatchAny”>                        <add input=”{REQUEST_FILENAME}”                             matchType=”IsFile” pattern=””                             ignoreCase=”false” />                         <add… Read more

Magento Web.Config for Azure and IIS

After installing Magento on Azure, here is the web.config file that should be within the wwwroot folder. <?xml version="1.0" encoding="UTF-8"?>  <configuration>      <system.webServer>          <rewrite>              <rules>                 <!–## rewrite API2 calls to api.php (by now it is REST only)–>                 <rule name="Rewrite API2 calls to api.php" stopProcessing="true">                   <match url="^api/rest" ignoreCase="false" />                   <action… Read more

Converting Apache .htaccess rules to IIS web.config using IIS Manager for Azure Websites

Web.config – the settings and configuration file for a Windows IIS Web Application. .htaccess – the default filename of the directory-level configuration file for a Linux Apache Web Application.   Disclaimer: The URL Rewrite tool by IIS Manager gives you suggested web.config rules. Since it is not a one-to-one conversion, the recommendation is to test… Read more