Prepare a domain name and a vps, and resolve the domain name to the vps.
Build the pagoda and install nginx
After the pagoda and nginx are completed, return to the vps SSH window
AfterExecute the command bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
is executed, return to the pagoda panel,
Open the files on the left in order, as shown below
Edit the config.json file. After opening the file, clear the contents first, then paste the following code into it and save it
{ "log": { "loglevel": "info", "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log" }, "inbounds": [ { "port": 10000, "listen":"127.0.0.1", "protocol": "vmess", "settings": { "clients": [ "id": "000fe881 -b655-4212-b804-b00f9970d5aa", "alterId": 64 " ; ttings": { "path": "/happy" } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ]}
000fe881-b655-4212-b804-b00f9970d5aa in the code can be changed. For example, change some numbers. It's equivalent to a password. But the format of must be the same as (the UUID in Little Rocket refers to this string of code)
Then Baota creates a new website (the domain name is the one you parsed at the beginning of the article), as shown in the figure below (database, PHP does not matter)

First apply for an SSL certificate (it goes without saying this step)
Then click on the configuration file , and add the following code
at the top of the configuration file
# Define variables map $http_upgrade $connection_upgrade { default upgrade; '' close;}
Then add the following code
#v2 configuration file location /happy { proxy_pass http://127.0.0.1:10000; proxy_redirect off; proxy_http_version 1. 1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; }

Save
Back to vps SSH window
Start v2ray
systemctl start v2ray
Set to start automatically at boot
systemctl enable v2ray
OK, V2ray server has been completed
The following is the ios rocket configuration:


Android V2rayNG configuration:



Windows V2rayN configuration:
Click on the server in the upper left corner of V2rayN, add Vmess protocol , and configure it according to the above Android instructions



Other common commands for v2ray
## Start
systemctl start v2ray
## Stop
systemctl stop v2ray
## Restart
systemctl restart v2ray
## Starts automatically at boot
systemctl enable v2ray
##Uninstall v2ray
Stop v2ray first
systemctl stop v2ray
systemctl disable v2ray
Execute one-click removal
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove