一般一個(gè)域名建立一個(gè)conf,然后在主域名中Include
Include conf/extra/denyip.conf
Include conf/extra/vhosts/*.conf
目前累計(jì)服務(wù)客戶上1000+,積累了豐富的產(chǎn)品開發(fā)及服務(wù)經(jīng)驗(yàn)。以網(wǎng)站設(shè)計(jì)水平和技術(shù)實(shí)力,樹立企業(yè)形象,為客戶提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、網(wǎng)站策劃、網(wǎng)頁設(shè)計(jì)、網(wǎng)絡(luò)營(yíng)銷、VI設(shè)計(jì)、網(wǎng)站改版、漏洞修補(bǔ)等服務(wù)。創(chuàng)新互聯(lián)公司始終以務(wù)實(shí)、誠(chéng)信為根本,不斷創(chuàng)新和提高建站品質(zhì),通過對(duì)領(lǐng)先技術(shù)的掌握、對(duì)創(chuàng)意設(shè)計(jì)的研究、對(duì)客戶形象的視覺傳遞、對(duì)應(yīng)用系統(tǒng)的結(jié)合,為客戶提供更好的一站式互聯(lián)網(wǎng)解決方案,攜手廣大客戶,共同發(fā)展進(jìn)步。
單個(gè)域名的配置
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 #反向代理部分,需要開啟proxy,proxy_http,proxy_balancer(負(fù)載均衡)等模塊 ProxyRequests Off ProxyPass /lp/css ! ProxyPass /lp/images ! #表示不代理 ProxyPass /newchannel http://www.example.com/newchannel ProxyPa***everse /newchannel http://www.example.com/newchannel #反向代理 ProxyPassMatch /travel/dataUpdate(.json)? balancer://cluster/bundle-app/dataUpdate$1 nofailover=Off maxattempts=3 #負(fù)載均衡BalancerMember http://localhost:7000 loadfactor=1 retry=60 BalancerMember http://localhost:8000 loadfactor=1 retry=60 ProxySet lbmethod=byrequests #反向代理 ProxyPass /travel/bundle-app balancer://cluster/bundle-app nofailover=Off maxattempts=3 #加上下面這句地址欄不變化 ProxyPa***everse /travel/bundle-app balancer://cluster/bundle-appBalancerMember http://localhost:7000 loadfactor=1 retry=60 BalancerMember http://localhost:8000 loadfactor=1 retry=60 ProxySet lbmethod=byrequests 如果多個(gè)項(xiàng)目負(fù)載均衡,balancer://cluster這個(gè)值是要自定義的,不能同名可以是balancer://clusterinfo等等。 #指定別名(fpm模式下不可用,并且不可用于百度的統(tǒng)計(jì)子目錄,需要開始alias模塊) Alias /travel "/home/admin_dev/travel/"Options FollowSymLinks AllowOverride All #Allow from All低版本配置 #Require all granted高版本配置,本人使用的2.4 Require all granted Require not ip 37.187.93.149 192.99.32.119 192.99.32.120 192.99.32.117