Home  >  Article  >  Backend Development  >  How to remotely access and debug the phpwind website based on Alibaba Cloud ECS before filing?

How to remotely access and debug the phpwind website based on Alibaba Cloud ECS before filing?

WBOY
WBOYOriginal
2016-08-08 09:28:251053browse

The phpwind website deployment based on Alibaba Cloud ECS is very convenient, but the domain name binding to the external IP of the cloud host is more complicated. You need to apply for a domain name first, and then you need to register it after success. Especially for corporate website registration, a lot of information needs to be submitted, and it takes a long time to prepare the information and approve it. During this period, IP access from the external network is not possible, and the default page of the host server is displayed.

Even if the domain name has been successfully bound, if it is not registered, the following "warm reminder" will appear when accessing using the domain name:

So is there a way to remotely access the website before it is registered and approved for early debugging? After some exploration, the phpwind website based on Alibaba Cloud ECS can use the following steps to modify the default port 80 before registering the website domain name to use IP to access the website:

1. Use putty to remotely log in to the ECS host

2. Enter the virtual host configuration directory: /a/apps/nginx/vhosts

3. Modify the corresponding virtual host configuration file: vi phpwind.conf

4. Change "listen 80" under Server to "listen 8080", save and exit

5. Enter the host treasure backend management (http://xxx.yyy.zzz:9999/login/index.html)

6. Add rules on the "Security Management" page: (Protocol: tcp, Target port: 8080, Action: Allow)

7. Go to "Service Control" under "System Settings" and restart the nginx service.

Then you can use the external IP to access "http://xxx.yyy.zzz:8080/" and access your website on any machine with Internet access.

The above introduces how to remotely access and debug the phpwind website based on Alibaba Cloud ECS before filing it? , including relevant content, I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:css reviewNext article:css review