当前位置:首页 > 服务器技术 > apache

php网址伪静态(apachemod_rewrite模块伪静态)

  1. <VirtualHost *:80>
  2. ServerAdmin webmaster@dummy-host2.example.com
  3. DocumentRoot "d:/wamp/www/dz"
  4. ServerName localhost.www.xingzuo51.com
  5. ErrorLog "logs/dummy-host2.example.com-error.log"
  6. CustomLog "logs/dummy-host2.example.com-access.log" common

4、在路径 C:WindowsSystem32driversetc 下 的 hosts 文件中配置一下 127.0.0.1 localhost.www.xingzuo51.com 重启服务即可。

注明: 在浏览器输入中localhost.www.xingzuo51.com,即可访问,加一个localhost是为了和正式的网址加以区别。


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!