Making Azure Web App with PHP, node.js -


i want run php , node.js in azure web app.

there wwwroot directory my wwwroot directory

i can access node.js script, how can access php , node.js script following url?

i want access :
index.html http://www.example.com
hello.php http://www.example.com/phpscript/hello.php
chatroom.html http://www.example.com/nodejsscript/chatroom.html


, web.config file follow

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <handlers>             <add name="iisnode" path="server.js" verb="*" modules="iisnode" />         </handlers>         <rewrite>             <rules>                 <clear />                 <rule name="staticcontent">                     <action type="rewrite" url="public{request_uri}"/>                 </rule>                 <rule name="app" enabled="true" patternsyntax="ecmascript" stopprocessing="true">                     <match url="iisnode.+" negate="true" />                     <conditions logicalgrouping="matchall" trackallcaptures="false" />                     <action type="rewrite" url="/nodejsscript/server.js" />                 </rule>             </rules>         </rewrite>     </system.webserver> </configuration> 

basically, can leverage virtual applications , directories achieve requirement.

1) create virtual directories below in azure portal.

enter image description here

2) move web.config file /wwwroot folder /wwwroot/nodejsscript folder, , change following line:

<action type="rewrite" url="/nodejsscript/server.js" /> 

as below:

<action type="rewrite" url="server.js" /> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -