首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >the服务器如何识别登陆页面?

the服务器如何识别登陆页面?
EN

Stack Overflow用户
提问于 2014-10-16 19:49:31
回答 4查看 457关注 0票数 0

我有一个纯HTML网站克隆到我的本地XAMPP服务器,它是在'foo‘文件夹下。在此文件夹中,只有.html文件和空.htaccess文件。当我打开URL localhost/foo时,浏览器将打开localhost/foo/index.html文件。那么问题是,服务器如何知道它是打开index.html文件的呢?

EN

Stack Overflow用户

发布于 2014-10-16 19:56:50

这是由Apache配置DirectoryIndex确定的。示例:

代码语言:javascript
运行
复制
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.php index.html index.html.var
票数 0
EN
查看全部 4 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26412692

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档