In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
What is a virtual web host?
Multiple web sites are running on the same server, each of which does not occupy a real computer independently.
Virtual host types supported by httpd
Domain name-based virtual host IP address-based virtual host port-based virtual host
Building a virtual host based on domain name
First, build a DNS server
1. Install bind, hettpd package
two。 Modify the configuration file
3. Test whether DNS can resolve domain names
Be sure to modify the configuration of the custom DNS server on the client
Use the "nslookup" command to view
Second, build a virtual host
1. Create an extension profile under / etc/httpd/conf
# all ip addresses for this server can be accessed via port 80 DocumentRoot "/ var/www/html/kgc" # site directory ServerName www.kgc.com # domain name ErrorLog "logs/www.kgc.com.error_log" # errorlog error log file CustomLog "logs/www.kgc.com.access_log" common # cuntomlog access log followed by common command Require all granted # Directory list DocumentRoot "/ var/www/html/accp" ServerName www.accp.com ErrorLog "logs/www.accp.com.error_log" CustomLog "logs/www.accp.com.access_log" common Require all granted
two。 Create a site file
Configure the content of a web page
3. Add a self-configuration file path for the computer to recognize
4. Open the service and use the client to view
Summary
The experiment was a success! In the process, you need to change a lot of configuration files, you must be careful when modifying, if something goes wrong, it will lead to the failure of the experiment, you should pay more attention to some details.
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.