virtual_host.conf

来自「解压在c盘」· CONF 代码 · 共 49 行

CONF
49
字号
<!--  -- Virtual hosting  --><caucho.com>  <log id='/caucho.com/tcp-server' href='stderr:'/>  <http-server app-dir='doc' class-update-interval='2'>    <!--      -- Configures the listening port.      -->    <http port='8080'/>    <!--      -- Configuration at the outer level is for the default host -->      -->    <error-log id='log/default-error.log'/>    <servlet-mapping url-pattern='/hello' servlet-name='test.HelloWorld'/>    <!--      -- Each virtual host has its own applications, sessions, and servlets.      -- You must duplicate the configuration for each host.  Each host      -- ignores the configuration in the outer block.      -->    <host id='vhost1.acme.com' app-dir='/web/vhost1' class-update-interval='2'>      <error-log id='log/vhost1-error.log'/>      <servlet-mapping url-pattern='/hello' servlet-name='test.HelloWorld'/>    </host>    <!--      -- vhost2 does not recognize /hello as a servlet      -->    <host id='vhost2.acme.com' app-dir='/web/vhost2' class-update-interval='2'>      <error-log id='log/vhost2-error.log'/>      <servlet-mapping url-pattern='/goodbye' servlet-name='test.Goodbye'/>    </host>    <!--      -- hosts can also have ports      -->    <host id='vhost2.acme.com:8080'          app-dir='/web/vhost2_8080'          class-update-interval='2'>      <error-log id='log/vhost2-error.log'/>      <servlet-mapping url-pattern='/goodbye' servlet-name='test.Goodbye'/>    </host>  </http-server></caucho.com>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?