How to use apache on a laptop as a server for WeChat development
某草草
某草草 2017-05-16 17:01:09
0
14
1230

WeChat’s development server needs a url. Obviously localhost:8080 is not legal, but the laptop IP address under wifi is not fixed. How should I set up apache to have a static url?

Thank you for your kind reminder. I went to build an aliyun server. Bi She got the WeChat question and wanted to rent an Alibaba Cloud at first. I was worried that the workload of setting up the server by myself would be too small, so I built apache (actually I didn’t It’s bad. The pattern was so groundbreaking at that time)

某草草
某草草

reply all (14)
滿天的星座

Soso ngrok, although the main domain name is blocked, there are many self-set servers in China, and the results are good.

    迷茫

    Your local server environment cannot be accessed by WeChat. . . It can only be accessed locally or within the local area network. How do you set it upapache都没用的
    你需要买一个服务器,推荐阿里云(If you are still a student, it only costs 9.9/month)

      左手右手慢动作

      Map 8080 to the public network and you can debug it
      Detailed mapping methods and tools http://natapp.cn

        为情所困

        1 Peanut shell
        2 WeChat debugging plug-in for qq browser

        They all map the local port to port 80 of the external network

          黄舟

          1. According to the title, it means a fixed IP in the local area network. You can change the automatic acquisition of the notebook to a fixed IP.
          2. I feel that the questioner can apply for Alibaba Cloud 9 yuan or Tencent Cloud 1 yuan.

            淡淡烟草味

            The QQ browser has a plug-in that simulates the local service as an http proxy. The public account security URL is directly entered into this. This is very convenient for debugging, but only Android can do it.

              黄舟

              Nat, you know. On the campus network, ask the network administrator to map it for you

                淡淡烟草味

                Now there is WeChat developer tool, debugging is not bad

                  洪涛

                  I have realized the original poster’s idea. You can use net123 to map the local address (localhost:8080) to the 80 external network, and then configure it on the public platform to use local tomcat for debugging. But after all, it is free. When configuring the connection for the first time, the URL often times out, making it difficult to configure successfully.

                    習慣沉默

                    Wanwang can apply for a virtual machine for free

                      Latest Downloads
                      More>
                      Web Effects
                      Website Source Code
                      Website Materials
                      Front End Template
                      About us Disclaimer Sitemap
                      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!