Add new port to apache in centos

1. vi /etc/httpd/conf/httpd.conf
add
Listen 8080
2. touch xx.conf file in /etc/httpd/conf.d
3. edit this file xx.conf
4. systemctl restart httpd
5. if failed, change to port 8080, then repeat 1

<VirtualHost *:8080>
ServerName xx.com
DocumentRoot /var/www/html/xx/public