Sign in

How to build HTML project server

openHBP edited in Fri, 23 Sep 2022

How to build HTML project server

Today, I used hbuilderx for the first time. I found that when hbuilderx was running an HTML project, it would automatically give me a service, such as access index.html It became :8848/myFirstHtmlProject/ index.html Instead of file: / / / C / users / administrator / documents / hbuilderprojects / myfirsthtml project/ index.html . This leads to a question: how can a simple HTML project build a service? Java Web projects generally use Tomcat as an application server to build web services. So for an HTML project, do I need to use Tomcat to build web services? It's not like killing a chicken with a bull's knife. Please give me your advice.

5 Replies
commented on Fri, 23 Sep 2022


You can use the following tool to generate configuration files quickly and easily.

  • http://nginxconfig.io


Tomcat also runs in Apache.

commented on Fri, 23 Sep 2022


commented on Fri, 23 Sep 2022

What is the definition of service... What is a simple service.. If you can't afford the service, just pack it and open it....

commented on Fri, 23 Sep 2022

I'm afraid I don't know the difference between file: / / - Protocol and http: / / - Protocol. The commonly used webback scaffolding should use express. It's easier to build it in a few lines, just like what I said upstairs https://www.npmjs.com/package... 、 https://github.com/zeit/serve It can be built with a single command. Of course, if the quantity is increased, there are more options. No node is needed It's all normal

commented on Fri, 23 Sep 2022

The answer is on the first floor. The question is settled. Just play think no, temporarily don't understand how to adopt the answer, wait for someone to help me