<p id="tnnjj"><b id="tnnjj"></b></p><strike id="tnnjj"><span id="tnnjj"></span></strike>

    <form id="tnnjj"></form>

    <listing id="tnnjj"><listing id="tnnjj"></listing></listing>
    <noframes id="tnnjj"><form id="tnnjj"></form>
    <address id="tnnjj"><form id="tnnjj"><th id="tnnjj"></th></form></address>

    <address id="tnnjj"></address>

      用apache(phpstudy)與tomcat共用80負載均衡的配置


      用apache(phpstudy)與tomcat共用80負載均衡的配置
      
      1、下載phpstudyLite解壓版包。
      2、安裝tomcat與jdk。
      3、配置apache/conf下的 httpd.conf,因采用ajp proxy方式;
        【1】啟用:
        #============下以是java用ajp方式反向代理-開始=============
        LoadModule proxy_module modules/mod_proxy.so
        LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
        #============下以是java用ajp方式反向代理-結束=============
        【2】增加 java虛擬主機配置文件
        在“Include conf/vhosts.conf”下面
        #==========以下為配置java虛擬主機-開始===========
        Include conf/jvhosts.conf
        #==========以下為配置java虛擬主機-結束===========
        【3】其中jvhosts.conf內容為:
        <VirtualHost *:80>
          DocumentRoot "D:\javaserver\tomcat6\webapps\tlxyz"
          ServerName jxga
          ProxyPass / ajp://localhost:8009/
          ProxyPassReverse / ajp://localhost:8009/
          ServerAlias jxga
         <Directory "D:\javaserver\tomcat6\webapps\tlxyz">
             Options FollowSymLinks ExecCGI
             AllowOverride All
             Order allow,deny
             Allow from all
             Require all granted
         </Directory>
         </VirtualHost>
      4、修改tomcat/conf下server.xml內容,并采用多元素方式虛擬主機,新增host如:
        <Host appBase="webapps" name="tlxyz">
        <Alias>tlxyz</Alias>
        <Context path="" docBase="D:\javaserver\tomcat6\webapps\tlxyz" debug="0" reloadable="true"></Context>
        </Host>
      5、注意事宜:
        其中要注意ajp的監聽端口是否為8009,哪些文件或目錄讓tomcat與apache去均衡。


      半夜强行挺进她的身体视频
      <p id="tnnjj"><b id="tnnjj"></b></p><strike id="tnnjj"><span id="tnnjj"></span></strike>

        <form id="tnnjj"></form>

        <listing id="tnnjj"><listing id="tnnjj"></listing></listing>
        <noframes id="tnnjj"><form id="tnnjj"></form>
        <address id="tnnjj"><form id="tnnjj"><th id="tnnjj"></th></form></address>

        <address id="tnnjj"></address>