Linux httpd 跳转简单方法一

直接在httpd.conf中添加以下代码即可:

NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost  ##访问域名

RewriteEngine on
RewriteRule ^(.*) http://www.baidu.com  ##跳转地址
</VirtualHost>

 

posted @ 2015-09-09 17:38  老瞿  阅读(845)  评论(0编辑  收藏  举报