Description: Pre-play: I purchased the BCC virtual service on the Baidu Cloud, and purchased the domain name, deploy the application, can be normal access (here everything is normal ^_^).
Things are changing: as the development progresses, the project after the successful local testing, deployment to the server, will find some pages and local testing inconsistencies, and these features are directly oriented to the customer, will leave a very irresponsible impression to the customer, even ....
Solution: 1. Purchase other domain names, also deploy, as test environment, can be in the online version of the synchronization (but this requires shining white of silver)
2. Can the different ports of the same domain point to different applications???
So began a test and tuning ....
Recording:
Edit httpd.conf in the/etc/httpd/conf/directory
Step One: Add Port monitoring:
1 8001
Step two: At the end add the hypothetical application directory under/var/www/html/domain2
1<virtualhost *:8001>2documentroot/var/www/html/domain23 ServerName www.yourdomain.com4<directory"/var/www/html/domain2">5 Options Indexes followsymlinks6 allowoverride All7 Order Allow,deny8 allow from all9</Directory>Ten</VirtualHost>
Step Three: Restart Apache
1 Service httpd restart
It's finally done.
Baidu Cloud BCC configuration Apache VirtualHost implementation of the same domain name different port access to different applications