How to configure apache to transfer different domain names to different ports?

 Add at the bottom of the configuration file (the following is an example, you can configure it according to your own situation, the following is my personal configuration, there are other configuration methods, here is omitted, I will do other things when I have time Introduction) <VirtualHost *:80>ServerName Your domain name aServerAlias ​​Your domain name aProxyPreserveHost OnProxyRequests OffProxyPass / http://your server ip:8001/ProxyPassReverse / http://your server ip:8001/</VirtualHost>

Restart apache

systemctl restart httpd

 

Guess you like

Origin blog.csdn.net/qq_43737121/article/details/114991586