In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Apache
(1) based on access host header (FQDN)
Cat / etc/httpd/conf.d/vhostfqdn.conf documentroot / data/web01 servername www.web01.com require all granted CustomLog "logs/a_access_log" combined documentroot / data/web02 servername www.web02.com require all granted CustomLog "logs/a_access_log" combined documentroot / data/web03 Servername www.web03.com require all granted CustomLog "logs/a_access_log" combined
(2) based on ip address
Cat / etc/httpd/conf.d/vhostip.conf documentroot / data/web01 require all granted documentroot / data/web02 require all granted documentroot / data/web03 require all granted
(3) based on port number
Cat / etc/httpd/conf.d/vhostport.conf listen 8001listen 8002listen 8003 documentroot / data/web01 require all granted documentroot / data/web02 require all granted documentroot / data/web03 require all granted
II. Nginx
(1) based on domain name and different sites
Server {listen 80; server_name mobile.magedu.com; location / {root html; index index.html index.htm;} location / python {root / mobile;! The / python directory must be created under the / mobile directory and the files must be written to the python directory, otherwise an error will be reported! Index index.html index.htm;} location / java {root / mobile; index index.html index.htm;}} server {listen 80; server_name www.magedu.com; location / {root html; index index.html index.htm } location / python {root / www; index index.html index.htm;} location / java {root / www; index index.html index.htm;}}
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.