服务器配置

httpd-vhosts.conf
NameVirtualHost *:80

httpd-php.conf
LoadModule php5_module D:/DEVTOOLS/PHP/phpexe/php5apache2_2.dll
PHPIniDir "D:/DEVTOOLS/PHP/phpexe"

httpd-resin.conf
LoadModule caucho_module modules/mod_caucho.dll

httpd-jboss.conf
<VirtualHost *:80>
    ServerAdmin [email protected]

    DocumentRoot "D:/DEVTOOLS/webserver/jboss-5.0.0.GA/server/all/deploy/c.war/"

<Directory />
DirectoryIndex index.html index.jsp
    Order deny,allow
    allow from all
</Directory>

    ServerName jboss.c.com
JkMount /* loadbalancer
    ErrorLog "logs/jboss-error.log"
    CustomLog "logs/jboss-access.log" common
</VirtualHost>

httpd-php-vhost.conf
<VirtualHost *:80>
  ServerName ecshop.p.com
  ServerAdmin [email protected]
  DocumentRoot "E:\phpweb\ecshop"
  <Directory />
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    DirectoryIndex index.html index.php
    Order deny,allow
    allow from all
  </Directory>
  ErrorLog "logs/php-ecshop-error.log"
  CustomLog "logs/php-echsop-access.log" common
</VirtualHost>

<VirtualHost *:80>
  ServerName shopex.p.com
  ServerAdmin [email protected]
  DocumentRoot "E:\phpweb\shopex"

  <Directory />
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    DirectoryIndex index.html index.php
    Order deny,allow
    allow from all
  </Directory>
  ErrorLog "logs/php-shopex-error.log"
  CustomLog "logs/php-shopex-access.log" common
</VirtualHost>

httpd-resin-vhost.conf
<VirtualHost *:80>
  ServerName resin.t.com
 
  ResinConfigServer 127.0.0.1 6800
  CauchoConfigCacheDirectory F:\web\xiaolaogong\temp
  CauchoStatus yes
 
  AddHandler caucho-request jsp do action
 
  DocumentRoot "F:\web\xiaolaogong\test"
 
  ErrorDocument 500 "The server made a boo boo."
  ErrorDocument 503 "Service Temporarily Unavailable"
  ErrorDocument 404 /missing.html
  ErrorDocument 402 http://chechi/subscription_info.html
 
  <Directory />
    DirectoryIndex index.html
    Order deny,allow
    allow from all
  </Directory>
    ErrorLog "logs/resin-test-error.log"
CustomLog "logs/resin-test-access.log" common
</VirtualHost>

uriworkermap.properties
/*.jsp=loadbalancer

workers.properties
# Define list of workers that will be used 
# for mapping requests 
worker.list=loadbalancer,status 
 
# Define Node1 
# modify the host as your host IP or DNS name. 
worker.node1.port=8009 
worker.node1.host=localhost
worker.node1.type=ajp13 
worker.node1.lbfactor=1 
worker.node1.cachesize=10 
 
# Load-balancing behaviour 
worker.loadbalancer.type=lb 
worker.loadbalancer.balance_workers=node1
worker.loadbalancer.sticky_session=1 
#worker.list=loadbalancer 
 
# Status worker for managing load balancer 
worker.status.type=status 


chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /opt/server/httpd/modules/libphp5.so

你可能感兴趣的:(html,PHP,jsp,jboss,Access)