Can I run two web servers on the same computer?

后端 未结 7 969
执笔经年
执笔经年 2020-12-23 22:12

I just found out that I can write a really simple web server using Python. I have already an Apache web server I would like to try the Python based web server on this machi

相关标签:
7条回答
  • 2020-12-23 22:42

    You cannot open two web servers in the same port (which default is 80), if you desire to make two or more web servers, you have to use different ports.

    If you are using a DNS, you could easily set up your web server to respond with different web sites to different requests, that could be useful if you need to have different web sites for subdomains or different domains.

    0 讨论(0)
提交回复
热议问题