Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apache series (virtual domain name)

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Generally, a domain name establishes a conf, and then includes it in the main domain name.

Include conf/extra/denyip.conf

Include conf/extra/vhosts/*.conf

Configuration of a single domain name

ServerAdmin webmaster@dummy-host.example.com DocumentRoot /home/admin_dev/lotusprize ServerName lotusprize.com ServerAlias www.lotusprize.com #ErrorLog /home/admin_dev/lotusprize_error.logs #CustomLog /home/admin_dev/lotusprize_access.logs Options FollowSymLinks AllowOverride All Require all granted #Reverse proxy,proxy_http,proxy_balancer (Load Balancer) and other modules need to be enabled ProxyRequests Off ProxyPass /lp/css ! ProxyPass /lp/images ! #No proxy ProxyPass /newchannel http://www.example.com/newchannel ProxyPa***everse /newchannel http://www.example.com/newchannel #Reverse Proxy ProxyPassMatch /travel/dataUpdate(.json)? balancer://cluster/bundle-app/dataUpdate$1 nofailover=Off maxattempts=3 #Load Balancer BalancerMember http://localhost:7000 loadfactor=1 retry=60 BalancerMember http://localhost:8000 loadfactor=1 retry=60 ProxySet lbmethod=byrequests #Reverse Proxy ProxyPass /travel/bundle-app balancer://cluster/bundle-app nofailover=Off maxattempts=3 #Add the following sentence address bar does not change ProxyPa***everse /travel/bundle-app balancer://cluster/bundle-app BalancerMember http://localhost:7000 loadfactor=1 retry=60 BalancerMember http://localhost:8000 loadfactor=1 retry=60 ProxySet lbmethod=byrequests If multiple projects Load Balancer, balancer://cluster This value is to be customized and cannot have the same name. It can be balancer://clusterinfo, etc. #Specify alias (not available in fpm mode, and not available for Baidu statistics subdirectory, need to start alias module) Alias /travel "/home/admin_dev/travel/" Options FollowSymLinks AllowOverride All #Allow from All Low Version Configuration #Require all granted high version configuration, I use 2.4 Require all granted Require not ip 37.187.93.149 192.99.32.119 192.99.32.120 192.99.32.117

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report