Node.js Server running from a sub folder

后端 未结 3 2009
夕颜
夕颜 2021-02-07 18:06

So I\'m pretty late to the Node.js party. Mainly because nobody invited me... Thanks. That said, I\'m starting to work it out. I have come from an ASP classic b

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-07 18:49

    You are asking to create a virtual directory and yes you can setup Node.js with PHP but you must do a little reading.

    A virtual directory is a website that lives within a folder like www.yourwebsite/myotherwebsite

    Here's how to set that up in Apache.

    http://httpd.apache.org/docs/current/vhosts/examples.html

    Here's how to set that up in IIS.

    http://technet.microsoft.com/en-us/library/cc771804(v=ws.10).aspx

    You would then need to hook up Node.js with Apache or IIS. Here's more instructions.

    Linux: How can I implement virtual directories with node.js and express?

    Windows: http://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx

提交回复
热议问题