标签:
什么事情都需要自己 去弄,记住了这句话,不要以为 别人会来帮你
在 apache 的http.conf 文件中(去掉注释)
添加
NameVirtualHost *:80 <VirtualHost *:80> ServerName 域名:80 ServerAlias 域名DocumentRoot "d:/AppServ/www"
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn‘t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews ExecCGI
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80> ProxyRequests Off ServerName 域名2:80 ServerAlias 域名2
ProxyPass / http://ip+端口/ ProxyPassReverse / http://ip+端口/ </VirtualHost>
以后记住了,不要再问了,自己来解决
今天知道了一个 反向代理,是apache 的一个功能,这里记录一下
标签:
原文地址:http://www.cnblogs.com/woxiangxintj/p/4811344.html