前端首页配置

一、服务器可以配置默认寻找的首页:
例如:phpstudy的设置:
phpStudy设置–>端口常规设置–>可以看到默认的首页(index.html index.php index.htm)可以自己配置相关信息。
只是输入项目名时即会自动执行指定的页面:例如http://localhost/web_front-4-23/会自动匹配http://localhost/web_front-4-23/index.html)

二、应用场景:
在AngularJS或者director.js管理路由时,可以在登录时去掉首页的index.html的显示
http://localhost/web_front-4-23/index.html#/net/topology
变成
http://localhost/web_front-4-23/#/net/topology

你可能感兴趣的:(服务器,默认首页)