简体   繁体   中英

Serving many sites on same address and port without IIS

I need to serve many sites, on the same address and port, with different path, without using IIS.

For example, two static sites and one NodeJS server. I want to access them in these addresses:

http://localhost:80/static1
http://localhost:80/static2
http://localhost:80/node_server

I want also not to serve the static sites by the server or by any shared server for all of them, to prevent the sites to fall if the server had fall.

Which framework, except IIS, can be used to achieve those requirements? This framework should work on Windows or Linux. Thanks.

Apache httpd ( http://httpd.apache.org ).

  • One VirtualHost on port 80
  • one sub-directory to htdocs for static1 , another for static2 .
  • Then proxy to NodeJS for node_server (like here: Apache and Node.js on the Same Server ).
  • Apache httpd can run on both Windows and Linux.

Good research!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM