亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? guide-admin.xtp

?? RESIN 3.2 最新源碼
?? XTP
?? 第 1 頁 / 共 2 頁
字號:
<document><header><title>User Guide: Administration</title><description><p>Overview and introduction to Resin from an administration perspective.</p></description></header><body><localtoc/><s1 title="Terminology"><ul><li><b>cluster</b> - A set of <em>servers</em> configured to serveidentical content.  Even a solo server will belong to its owncluster.</li><li><b>default host</b> - A virtual host configured to handle anyrequests not maching a specified host.</li><li><b>host</b> - An internet domain like www.slytherin.com whose contentis handled by a cluster.  Also called virtual host.</li><li><b>keepalive</b> - A HTTP connection kept open after a request finishesso the next request to the server will be more efficient.</li><li><b>load-balancer</b> - A Resin <em>server</em> which forwards requeststo an application cluster for increased scalability and reliability.</li><li><b>machine</b> - A physical computer.  Multiple <em>servers</em> can run on the same machine.</li><li><b>port</b> - A server's internet connection handling a specific protocol,e.g. a HTTP port 80 or HTTPS port 443 or XMPP (Jabber) port 5222.</li><li><b>proxy cache</b> - A content cache in front of a web application,storing the content and returning it quickly without running the application.Speedups for some applications can be 10x or 100x.</li><li><b>server</b> - A Resin instance running on a single JVM.  One ormore servers can run on the same <em>machine</em>.</li><li><b>servlet</b> - A Java program responsible for serving web content.  Allcontent is handled by a servlet, including static files,JSPs and PHP content.</li><li><b>thread</b> - An active execution of a Java program.  Because Javais multithreaded, multiple Java programs are running simultaneously.For example, each HTTP user/request is handled by its own Java thread.</li><li><b>watchdog</b> - A Resin Java process responsible for starting andrestarting Resin <em>servers</em> for reliability.</li><li><b>webapp</b> - A web application is a content collection, like aDrupal or Mediawiki site.  All content belongs to a webapp.</li></ul><figure src="cluster-load-balance.png"/><p>In the previous figure:</p><ul><li>The <em>servers</em> are "web-a", "app-a" and "app-b".</li><li>The <em>clusters</em> are "web-tier" and "app-tier".</li><li>The <em>virtual hosts</em> are "foo.com" and "bar.com".</li><li>The <em>webapps</em> are "/", "/wiki" and "/drupal".</li><li>Both <em>servers</em> "app-a" and "app-b" in the <em>cluster</em>"app-tier" serve identical content, i.e. the same <em>virtualhosts</em> and <em>webapps</em>.</li><li>web-a has a <em>proxy-cache</em> and <em>load balancer</em>.</li><li>web-a listens to HTTP <em>port</em> 80.</li><li>app-a and app-b listen to cluster <em>port</em> 6800 and 6801.</li><li>All three <em>servers</em> could be on the same <em>machine</em> oron separate <em>machines</em>.</li></ul></s1><s1 title="Dispatching Content"><p>All HTTP content in Resin is ultimately handled by a servlet.  IfResin can't find a servlet for a URL, it will returna <code>404 Not Found</code> to the browser.  So, if you see anunexpected <code>404 Not Found</code>, you not only need to check thatthe file exists, but make sure that the servlet and its URL mapping isproperly configured.  If you turn on logging to "finer", you cantrace the request to figure out why the servlet is not gettingcalled.</p><p>To match up the URL to its final servlet and the content, you needall of the following properly configured:</p><ol><li><b>Server</b>.  The Resin server must be active to do anything.Because servers belong to a cluster, you'll automatically have acluster even if it only has a single server.</li><li><b>HTTP port</b>.  The server must be listening to the internetfor HTTP requests just to get started.  If the HTTP port is missing ormisconfigured, you will get connection failure messages because thebrowser cannot connect to your server at all.</li><li><b>Host</b>.  Resin must first match the<a href="host-tags.xtp">&lt;host></a> specified by theHTTP request, e.g. www.slytherin.com.  If no hosts match, Resin willuse the default host.  If no default host exists, Resin willreturn a <code>404 Not Found</code> to the browser.</li><li><b>WebApp</b>.  Inside the host, Resin finds aweb-application to handle the request by looking for the<a href="webapp-tags.xtp#webapp">&lt;web-app></a> with the longest URLprefix. So, <code>http://www.slytherin.com/drupal/index.php</code>might match the <code>/drupal/</code>.  The ROOT web-app matches allURLs.  If Resin can't find a web-app, it will return<code>404 Not Found</code> to the browser.</li><li><b>servlet-mapping</b>.  Inside the web-app, Resin searches for a<a href="webapp-tags.xtp#servlet-mapping">&lt;servlet-mapping></a> matchingthe URL.  For example, <code>test.php</code> would match the<code>QuercusServlet</code> and <code>test.jsp</code> would matchthe JSP servlet.   If none match, Resin will try the default mapping,which is normally the <code>FileServlet</code> to handle static pages.If the default servlet isn't configured, Resin will return a <code>404Not Found</code> to the browser.</li><li><b>Servlet</b>.  Finally, the selected servlet processes therequest and returns the content.  The servlet itself might not findthe requested content, e.g. if <code>/foo.php</code> does not exist inthe expected location.  The servlet itself is responsible for errorhandling, but most servlets will return a <code>404 Not Found</code>if any expected files are missing.</li></ol><p>Based on Resin's dispatching flow, here's a minimalresin.xml to serve some content out of <code>/var/www/htdocs</code>.Resin's philosophy of configuration files is that 1) for maintainability,all configuration should be traceable to the resin.xml, i.e. no magicdefaults or hidden state are allowed and 2) for security, if somethingis not configured, it doesn't exist.  In Resin, you need to enablethings explicitly, not disable hidden defaults.  The slight extraverbosity is outweighed by the improved security andmaintainability.</p><p>The following resin.xml specifies an Apache-style structure whereall content is served from the <code>/var/www/htdocs</code> directory,and is useful when upgrading from an old PHP site to use Quercusfor security and performance.  When organizing a site from scratch,you'll typically use a more structured dynamichosting directory structure.</p><example title="Example: minimal /etc/resin/resin.xml for HTTP">&lt;resin xmlns="http://caucho.com/ns/resin"       xmlns:resin="http://caucho.com/ns/resin/core">	  &lt;cluster id="app-tier">    &lt;development-mode-error-page/>    &lt;server id="" address="127.0.0.1" port="6800">      &lt;http port="8080"/>    &lt;/server>    &lt;resin:import path="/etc/resin/app-default.xml"/>    &lt;host id="">      &lt;web-app id="">        &lt;root-directory>/var/www/htdocs&lt;/root-directory>      &lt;/web-app>    &lt;/host>  &lt;/cluster>&lt;/resin></example><ul><li><a href="resin-tags.xtp#resin">&lt;resin></a> starts a Resinconfiguration file and declares the validation namespaces.</li><li><a href="cluster-tags.xtp#cluster">&lt;cluster></a> encloses thesingle-server cluster containing our content.</li><li><ahref="cluster-tags.xtp#development-mode-error-page">&lt;development-mode-error-page></a>reports configuration and runtime errors to the browser, which isvery helpful during development.  On a production server, you maywant to remove this tag so errors don't expose information to theinternet.</li><li><a href="server-tags.xtp#server">&lt;server></a> configures theResin server, including its ports.  The <var>id</var> matches thecommand-line <var>-server</var> argument at startup.  The<var>address</var> and <var>port</var> open Resin's cluster port,which is used for deployment, management, clustering, anddistributed caching.</li><li><a href="server-tags.xtp#http">&lt;http></a> listens for HTTPrequests.  Production servers will change the port to 80.</li><li><a href="env-tags.xtp#import">&lt;resin:import></a> defines thestandard servlet like JSP, PHP and the static file servlet.  If youomit this &lt;resin:import>, Resin will return <code>404 NotFound</code> because the <ahref="webapp-tags.xtp#servlet-mapping">&lt;servlet-mapping></a> andservlets would not be defined.</li><li><a href="host-tags.xtp#host">&lt;host></a> defines a defaultvirtual host.  The default host will handle any host domain given bya HTTP request.</li><li><a href="webapp-tags.xtp#web-app">&lt;web-app></a> defines a ROOTweb-app, serving all URLs for the host.  The servlets in the web-appare defined by the <code>app-default.xml</code> specified by the &lt;resin:import>.</li><li><a href="webapp-tags.xtp#root-directory">&lt;root-directory></a>specifies the content directory, here matching a standard Apachedirectory.</li></ul><s2 title="rewrite-dispatch replaces mod_rewrite"><p>For many applications like Drupal and Mediawiki, it's important torewrite a user-friendly URL to an internal servlet or PHP URL.Resin's <a href="rewrite-tags.xtp">&lt;rewrite-dispatch></a> replacesthe capabilities of mod_rewrite for Apache.</p><example title="Example: WEB-INF/resin-web.xml Drupal rewriting ">&lt;web-app xmlns="http://caucho.com/ns/resin">  &lt;rewrite-dispatch>    &lt;dispatch regexp="\.(php|gif|css|jpg|png|ico|js|htm|html)"/>    &lt;forward regexp="^/" target="/index.php?q="/>  &lt;/rewrite-dispatch>&lt;/web-app></example><ul><li><a href="webapp-tags.xtp#web-app">&lt;web-app></a> configures the<code>/drupal</code> web-application.</li><li><ahref="rewrite-tags.xtp#rewrite-dispatch">&lt;rewrite-dispatch></a>starts the URL rewriting configuration.</li><li><ahref="rewrite-tags.xtp#dispatch">&lt;dispatch></a>passes the URL untouched for content handling, e.g. static files or php.</li><li><ahref="rewrite-tags.xtp#forward">&lt;forward></a>rewrites the URL and forwards.</li></ul></s2></s1><s1 title="Resin Processes"><ul><li><b>command-line</b> - the command-line process(<code>ResinBoot</code>) only exists longenough to send a message to the <em>watchdog</em> or the Resinprocess, like a "start", "deploy", or "stop".  If necessary, thecommand-line process will start the watchdog.</li><li><b>watchdog</b> - the <a href="resin-watchdog.xtp">watchdogprocess</a> manages and monitors <em>Resin server</em> processes.If the Resin server exits, the watchdog will automatically restartResin, providing extra reliability in case of server failure.</li><li><b>Resin server</b> - the Resin server handles the HTTP requestsand serves the content.</li></ul><figure src="startup-watchdog.png"/><p>Because the Resin server is started as a child of the watchdogprocess, its own JVM arguments come from the resin.xml,not from the command-line of <code>ResinBoot</code>.  The JVMconfiguration arguments are supplied as <ahref="server-tags#jvm-arg">&lt;jvm-arg></a> in the &lt;server>configuration.</p></s1><s1 title="Files and Directories"><p>Resin's configuration allows for great flexibility in choosing adirectory structure for your site, or adapting Resin to your existingsite configuration if you're upgrading from Apache/PHP for a Drupal orMediaWiki site.  There are three main directory styles:</p><ul><li><b>Resin dynamic virtual host</b> - the most general solution,letting you easily add virtual hosts without modifying theconfiguration files.</li><li><b>Apache upgrade</b> - all content is placed ina <code>/var/www/htdocs</code> directory.</li><li><b>Servlet war style</b> - all content is deployed with .war filesin a webapps directory.  The .war file is automatically expanded anddeployed from the webapps.</li></ul><s2 title="Dynamic Virtual Host"><p>In the dynamic virtual host configuration, your content is placedin <code>/var/www/hosts/foo.com/webapps/ROOT</code>.<code>/var/www</code> is the standard location for HTTP documents.<code>hosts/foo.com</code> contains your virtual host root directory.<code>webapps/ROOT</code> contains the root web-app for the virtualhost.</p><p>Adding a new virtual host is easy just by adding a new<code>hosts/bar.com</code> directory.  The special directory<code>hosts/default</code> creates a default virtual host, which willserve pages for anything not matching a specific host.  If you

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美激情| 中文字幕一区二区三区不卡在线| 成人av资源下载| 久久福利资源站| 久久国产精品99精品国产| 午夜在线电影亚洲一区| 樱桃视频在线观看一区| 亚洲人妖av一区二区| 亚洲欧洲日产国码二区| 国产精品久久久久久久午夜片| 亚洲精品在线网站| 2024国产精品| 久久精子c满五个校花| 久久女同精品一区二区| 久久亚区不卡日本| 国产三级一区二区| 日本一区二区视频在线| 国产精品久久久久影院色老大| 国产精品区一区二区三区| 色视频一区二区| 色系网站成人免费| 欧美午夜精品久久久| 欧美少妇性性性| 日韩午夜小视频| 久久影院视频免费| 国产精品久久久久久一区二区三区| 中文字幕一区在线观看视频| 亚洲激情在线激情| 1区2区3区精品视频| 亚洲一二三区视频在线观看| 婷婷亚洲久悠悠色悠在线播放| 全部av―极品视觉盛宴亚洲| 国产一区二区伦理| 9久草视频在线视频精品| 91在线观看下载| 欧美日韩精品欧美日韩精品一综合| 欧美一区二区久久久| 国产亚洲欧洲一区高清在线观看| 日本一区二区不卡视频| 国产精品久线观看视频| 欧美制服丝袜第一页| 欧美一级二级三级蜜桃| 国产清纯白嫩初高生在线观看91 | 日韩伦理免费电影| 亚洲伊人色欲综合网| 日日欢夜夜爽一区| 国产精品自拍三区| 91精彩视频在线观看| 欧美午夜精品免费| 欧美性猛交xxxx黑人交| 亚洲成人资源网| 欧洲色大大久久| 国产精品麻豆网站| 欧美一区二区免费| 国产精品色哟哟| 首页国产欧美久久| 蜜臀久久久久久久| 成人在线综合网站| 欧美特级限制片免费在线观看| 成人动漫av在线| 666欧美在线视频| 国产欧美视频在线观看| 亚洲第一福利一区| 国产一区二区导航在线播放| 日本韩国一区二区三区视频| wwwwxxxxx欧美| 一二三区精品视频| 蜜桃一区二区三区在线| 不卡视频一二三四| 在线观看91精品国产麻豆| 国产欧美日韩久久| 亚洲18女电影在线观看| 美腿丝袜亚洲综合| 美日韩黄色大片| 91日韩在线专区| 久久人人超碰精品| 亚洲一区影音先锋| 成人激情黄色小说| 2021中文字幕一区亚洲| 亚洲一区二区三区自拍| 粉嫩av一区二区三区粉嫩 | 精品欧美一区二区三区精品久久| 日本伊人色综合网| 国产精品久久影院| 久久99久国产精品黄毛片色诱| 日本高清无吗v一区| 中文在线一区二区| 狠狠色丁香久久婷婷综合丁香| 欧美日韩国产免费| 一区二区三区不卡视频在线观看| 成人午夜av电影| xfplay精品久久| 麻豆91小视频| 在线成人午夜影院| 亚洲va欧美va人人爽午夜| 91美女在线观看| 中文字幕日韩精品一区| 国产精品一区二区免费不卡| 精品少妇一区二区三区在线播放 | 国产精品国产三级国产a| 久草中文综合在线| 欧美精品日韩一本| 亚洲国产cao| 欧美三级中文字| 亚洲网友自拍偷拍| 在线看不卡av| 一区二区三区精品在线| 色婷婷一区二区三区四区| 亚洲裸体xxx| 在线免费精品视频| 亚洲综合免费观看高清完整版在线| 91美女精品福利| 一区二区三区在线视频播放| 在线视频一区二区三区| 亚洲一二三级电影| 欧美日本国产一区| 日韩黄色免费网站| 日韩区在线观看| 久久不见久久见中文字幕免费| 欧美成人在线直播| 91蝌蚪porny| 日韩亚洲国产中文字幕欧美| 精品伊人久久久久7777人| 精品国产亚洲在线| 国产精品一线二线三线| 国产日韩亚洲欧美综合| 成人福利在线看| 一区二区三区欧美久久| 欧美人牲a欧美精品| 偷拍一区二区三区四区| 日韩免费观看高清完整版| 国产精品一区二区果冻传媒| 在线观看日韩精品| 日韩中文字幕av电影| 日韩视频免费观看高清完整版| 久久er精品视频| 中文字幕精品在线不卡| 93久久精品日日躁夜夜躁欧美| 亚洲线精品一区二区三区| 日韩色在线观看| 东方欧美亚洲色图在线| 亚洲在线观看免费| 日韩欧美卡一卡二| 成人激情动漫在线观看| 亚洲国产精品欧美一二99| 日韩视频一区二区三区在线播放 | 91在线视频播放地址| 亚洲一二三专区| 欧美精品一区二区三区高清aⅴ | 亚洲欧美激情插| 欧美精品aⅴ在线视频| 国产一二精品视频| 亚洲三级在线免费| 在线播放日韩导航| 国产成人av福利| 亚洲高清三级视频| xf在线a精品一区二区视频网站| 91丨porny丨国产入口| 美腿丝袜亚洲三区| 亚洲视频一区二区在线| 日韩欧美亚洲国产精品字幕久久久 | 中文字幕免费不卡| 欧美性三三影院| 国产精品亚洲第一| 亚洲一二三四在线观看| 日韩亚洲国产中文字幕欧美| 处破女av一区二区| 青青草91视频| 亚洲欧美乱综合| 久久久久久免费网| 色网站国产精品| 韩日av一区二区| 无码av中文一区二区三区桃花岛| 久久久午夜精品| 欧美精品丝袜中出| 不卡电影一区二区三区| 美女一区二区久久| 亚洲一区免费观看| 国产视频911| 日韩一区二区在线观看视频| 色天天综合久久久久综合片| 风间由美一区二区三区在线观看 | 欧美在线制服丝袜| www.亚洲在线| 国产精品一区二区视频| 人人精品人人爱| 亚洲成人精品在线观看| 国产精品久久久久久久久果冻传媒 | 91精品一区二区三区久久久久久| 99精品欧美一区二区三区小说| 国产精品自在在线| 免费不卡在线视频| 天天综合网天天综合色| 亚洲精品国产一区二区精华液| 国产精品污网站| 久久久久久久久久久久久夜| 日韩久久久精品| 欧美一区二区在线免费观看| 欧美性色aⅴ视频一区日韩精品| 91美女在线观看|