In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the building tutorial of virtual host based on IP, domain name and port in Centos". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the tutorial of building virtual hosts based on IP, domain name and port in Centos.
Construction of Virtual Host based on IP in Centos
First, check if the httpd package is installed
Install the httpd package
Installation completed
Start the service
The main configuration file is / etc/httpd/conf/httpd.conf
Edit the configuration file, move to the bottom, and start modifying
Then set up web1 and web 2 at / var/www/
Restart the service
Started successfully
Open the browser
Use the domain name to access:
Add parsing to the / etc/hosts file
Domain name-based Virtual Host configuration in web Server in Linux
1. Modify httpd.conf:
two。
3.
4. Restart the service
5. Resolve the domain names of web1 and web2 virtual hosts in the DNS server
6. Create a zone file
7. Parse the configuration in the file
8. Restart the service
9. Open a browser to access
Port-based virtual host configuration in web server in Linux
Modify the following in the apahce main configuration file
Modify 136 lines as follows
Test:
Restart the service and test
At this point, I believe you have a deeper understanding of the "Centos virtual host building tutorial based on IP, domain name and port". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.