[Apache] 配置访问本地端口网址

在httpd-vhosts.conf中,新建如下内容:ServerName x.y:8000DocumentRoot "D:\projects\xxx\web"RewriteEngine onAllowOverride All重启Apache即可生效。 关键字:Apache

在httpd-vhosts.conf中,新建如下内容:


       ServerName  x.y:8000
       DocumentRoot "D:\projects\xxx\web"

         RewriteEngine on
         AllowOverride All

重启Apache即可生效。

关键字:Apache