腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
DirectoryIndex
不起作用
、
我打开/etc/apache2/apache2.conf并添加一行:然后重新启动apache2。
浏览 5
提问于2011-06-28
得票数 6
2
回答
更改默认页面Apache2 Ubuntu
、
当我转到我的网站时,所有文件的索引都会显示出来,当我选择一个特定的页面时,html无法访问文件中的图像。如何让Apache2自动启动/var/www/home.html而不是/var/www?
浏览 1
提问于2013-10-19
得票数 8
回答已采纳
1
回答
当我用Index.php加载主页时,我得到了一个404,但是index.php可以直接链接,为什么?
、
、
快照
DirectoryIndex
index.php 但仍然
不起作用
更新03这个工作的 正如@HPierce所建议的那样,解决方案是修改HTACCESS,使其看起来类似于下面的内容:
浏览 1
提问于2015-07-27
得票数 4
回答已采纳
2
回答
Apache -禁用单一选项覆盖
、
我希望在特定文件夹中强制使用
DirectoryIndex
值,因此将忽略该文件夹的.htaccess中的
DirectoryIndex
选项。我希望配置看起来应该是类似的,但这两种配置都
不起作用
:
DirectoryIndex
app_dev.phpAllowOverride -Indexes或者这个 <Dir
浏览 1
提问于2013-09-27
得票数 1
回答已采纳
1
回答
动态
DirectoryIndex
(Regex
DirectoryIndex
?)
、
、
在Apache中,是否可能有一个动态/正则
DirectoryIndex
指令?正常的
DirectoryIndex
会这样做:server/DIR1/DIR2 --> server
浏览 5
提问于2015-04-30
得票数 1
回答已采纳
1
回答
在使用RewriteRule时提供本地内容时遇到问题[P]
、
、
“代理部分”并没有遵循
DirectoryIndex
中所有索引文件的可能性,它只关注第一个。 因此,我以错误消息结束,“请求的URL /blah/index.php未在此服务器上找到”。
浏览 0
提问于2013-09-14
得票数 1
2
回答
一个文件夹的.htaccess -
DirectoryIndex
、
、
我尝试将symfony .htaccess中的
DirectoryIndex
更改为:要这样做:
DirectoryIndex
app.php index.html但它仍然
不起作用
。
浏览 3
提问于2017-08-29
得票数 0
1
回答
虚拟主机设置,相同IP地址,不同
DirectoryIndex
的
、
我需要
DirectoryIndex
是不同的,这几乎是条目中唯一的区别。> ServerAdmin email@example.com
DirectoryIndex
ServerName seconddomain.com DocumentRoot "/srv/www"
浏览 0
提问于2012-10-24
得票数 1
回答已采纳
5
回答
如何通过htaccess设置默认的网站页面?
、
、
、
我目前正在建立一个网站,从一个客户在他的主机帐户。由于某些原因,网站地址不默认为.php文件(即: index.php)。如果我放置了index.php,并且没有index.html文件,我会收到以下错误:
浏览 12
提问于2011-12-21
得票数 17
1
回答
使用CGI和Bottle.py路由URL的问题
、
、
、
from wsgiref.handlers import CGIHandler这是我的.htaccess文件
DirectoryIndex
浏览 1
提问于2010-04-19
得票数 6
回答已采纳
1
回答
如何使用
DirectoryIndex
设置条件.htaccess
、
、
、
我不想对所有的流量都这么做,以防有什么东西
不起作用
。为此,我想将部分流量重定向到一个单独的文件。我想用.htaccess来做这件事。我的第一次尝试是重定向IP地址以1或2结尾的人,以获得新的布局。我想动态地设置
DirectoryIndex
来完成这个任务。layout=thumbs [QSA,nc]RewriteCond- [S=1]
DirectoryIndex
index.
浏览 2
提问于2014-07-14
得票数 1
回答已采纳
2
回答
apache 2.4错误404
、
我刚刚在ubuntu 12.04上安装了Apache2.4和PHP 5.5.6我需要把这个写在浏览器的导航栏中(网站也有一个index.html)。我的mysite.conf虚拟主机是:ServerAdmin webmaster@mysite.org DocumentRoot /home/alexbk/
浏览 3
提问于2016-02-26
得票数 0
1
回答
将目录索引限制为通过身份验证的用户
、
、
、
AuthType Basicrequire valid-user我已经确认,如果将"
DirectoryIndex
“替换为"GET POST我试着通过把
DirectoryIndex
放在里面来猜测一下,但是它似乎
不起作用
。在谷歌上搜索了这个问题并查看了这里关于服务器错误的许多其他问题后,我感到不知所措。如果有人知道怎么做,那就太好了。
浏览 0
提问于2019-12-10
得票数 0
回答已采纳
3
回答
如何使apache服务于同一个网站,而不管主机名如何?
现在,我的默认站点启用功能如下所示:DocumentRoot "/opt/site/web"<<VirtualHost _default_:80> DocumentRoot "/opt/site/web"
DirectoryIndex
index.php我试着把第一行改为Serv
浏览 0
提问于2014-06-19
得票数 0
3
回答
如何在Apache2.4中使用DAV和
DirectoryIndex
?
、
我有一个虚拟主机配置如下:<Directory /storage/files/mediamanager><Limit PROPFIND></Limit> 对我
不起作用
。如果
浏览 5
提问于2015-06-18
得票数 12
回答已采纳
1
回答
mod重写以隐藏url
、
.* $0.php
DirectoryIndex
index.php
DirectoryIndex
welcome.php 这些代码似乎
不起作用
浏览 0
提问于2012-05-23
得票数 1
回答已采纳
2
回答
服务器错误500 Php
、
、
、
[pid 18753] [client 46.99.59.98:51034] AH01276: Cannot serve directory /var/www/html/: No matching
DirectoryIndex
浏览 0
提问于2016-03-04
得票数 0
2
回答
我的网页将我重定向到/defaultsite而不是index.php
、
将apache2的rootDirectory从至因为我不希望我的网站是"www.website.de/MyFolder“,但现在我必须输入"www.website.de/index.php”(这样就行了)。我并没有改变太多。仅rootDirectory 000-default.conf。
浏览 0
提问于2016-12-28
得票数 0
1
回答
为什么这301重定向?
、
、
、
我有一个WordPress站点,我正试图在GTMetrix的帮助下加快速度。我注意到,每当我测试一个页面并省略到URL的尾斜杠(例如,http://example.com/blog)时,它就会将一个301重定向到该URL,并附加尾随斜杠(例如,http://example.com/blog/)。
浏览 2
提问于2015-11-02
得票数 0
回答已采纳
1
回答
htaccess强制执行和删除index.php
、
、
、
、
我现在的代码是:RewriteEngine on我试过遵循下面的代码,但它
不起作用
:RewriteEngine on但是它
不起作用
,我用的是代码点火器
浏览 2
提问于2014-08-29
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
对象存储
云直播
腾讯会议
活动推荐
运营活动
广告
关闭
领券