If you develop web app with HTML, Java or PHP languages and want to test on https://ztidev.com/<project_name>, or https://<domain_name>/ztidev.com,
please follow this instruction.
1. Config Jenkins based on your project.
Example in PHP:
to move file after build to /var/www/html/<project_name>cp -rf <jenkins_project_name>/* /var/www/html/<project_name>

2. Remote to ZTI server.
https://blog.zealtechinter.com/connect-to-linux-by-using-putty/
3. Config path in NGINXvi /etc/nginx/conf.d/domain.conf
or
vi /etc/nginx/conf.d/<domain_name>.conf
EX: e-service_oap_ztidev_com.conf
Go to server tag

Type ‘i’ to edit mode, and add the following script:
server {
server_name <domain_name>;
client_max_body_size 2048M;
location /<project_name> {
proxy_pass http://localhost:8080/<project_name>;
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forworded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forworded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Type ESC to exit edit mode,
Then type ‘:wq’ to exit, and test NGINX config with the command:nginx -t

4. If no error, restart NGINX with the command:systemctl restart nginx
5. Add SSL to your domain.certbot --nginx -d <domain_name>.ztidev.com