Apache mobile host directory to different website servers
Description:
Typically, many network managers have such requirements when establishing a new website server: redirect all host directories on a website server to another website server.
Even actual operation:
The website is originally at http://2089.kmip.net:888 this address, but I don't want to use 888 ports, I want to change the 88 port, but I can keep the previous link.
However, after the previous connection, you will automatically use http:888 to use http:888, such as addresses:
Http://2089.kmip.net:888/modules/news/Article_573.htm,
I want the client to click, the address is automatically converted to http://2089.kmip.net:88/modules/news/Article_573.htm,
Hey, you can use the following method, (Note: must be a virtual host)
# ************************************************************ *********************************************************** **************** # Serveradmin btbtd@yahoo.com.cn documentroot "i: / 2089-kmip-net" servername 2089.kmip.net erroorlog "| BIN / CRONOLOG.EXE G: /APACHE/2089-KMIP-NET/% %%m%d.Error.log "UsecanonicalName Off] ******************** *********************************************************** ************************************** # RewriteEngine On Rewriteloglevel 0 # *********************************************************** *********************************************************** ************* # REWRITERULE ^ / (. ) Http:88/2089.kmip.net:88/ ********* *********************************************************** *********************************************************** ***** # virtualhost>
/ ************************************************** *************** / * * Author: Emerald * * Home: http://gi.2288.org:88/ * * SEO- GI: http://seo.2288.org:88 * * SiteName: Green College - Green Institute * * Date: 2005-3-22 13:50:54 * / *********** *********************************************************** ** /