##编辑
/usr/local/apache/conf/httpd.conf
ServerAdmin hs.hzhderp.com
ServerName hs.hzhderp.com
DocumentRoot "/var/www/tomcat-site/hunsha/"
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
ProxyPreserveHost On
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
##编辑/usr/local/apache/conf/extra/httpd_vhost.conf
<VirtualHost *:80>
ServerAdmin hs.hzhderp.com
ServerName hs.hzhderp.com
DocumentRoot "/var/www/tomcat-site/hunsha/"
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
ProxyPreserveHost On
ProxyPass /hunsha http://localhost:8080/hunsha/
<Directory "/var/www/tomcat-site/hunsha/">Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
##重启服务
#systemctl restart tomcat
#systemctl restart httpd