Use nginx to deploy the website generated by teedoc to the server
Here is a brief introduction. For more detailed usage, please find documents or tutorials yourself, such as HTTPS
1. Install nginx#
The server installs nginx
, such as ubuntu
:
2. Configure and start nginx service#
You can see the configuration file path, usually /etc/nginx/nginx.conf
, you can see that the file contains /etc/nginx/site-enabled/
Check the following default
file, you can see the statement
That is to monitor port 80
, the root directory of the website is here, we copy our website content here, that is, copy all files in the out
directory to the /var/www/html/
directory
then:
You can access the website by visiting http://ip:80
, :80
can also be omitted, or it can be modified to other ports, because the website that has not been registered in China is not allowed to use port 80
, and the overseas server is no limit
Related Issues not found
Please login GitHub to create issue