- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我目前正在将一个客户站点转移到我们的服务器,包括域,以便它具有相同的 URL 等。但是在转移所有文件并更改 .htaccess
文件以匹配旧服务器上的那个,我收到错误消息 You don't have permission to access/on this server
我不太确定为什么?有几件事需要提及,将第一行从 Options -Indexes
更改为 Options +Indexes
可以纠正这一点,但我看到的不是错误消息,而是 Index of/
页面。另一种可能性,但是将托管平台从 Linux
切换到 Windows
会解决这些问题吗?
Options -Indexes
ErrorDocument 500 /error
<Files ~ "\.pm$">
Order allow,deny
deny from all
</Files>
<Files ~ "\.template$">
Order allow,deny
deny from all
</Files>
<Files ~ "\.tmpl$">
Order allow,deny
deny from all
</Files>
<Files ~ "\.log$">
Order allow,deny
deny from all
</Files>
<Files ~ "\.revid$">
Order allow,deny
deny from all
</Files>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index.pl
RewriteCond %{QUERY_STRING} ^browse=show_contact$
RewriteRule ^(.*)$ http://THE_DOMAIN_IS_HERE/formmail2.pl? [R=301,L]
我尝试的另一件事是添加 DirectoryIndex index.pl
,然后又出现了另一条错误消息,无法执行脚本...等等等等...index.pl
。我不太确定该怎么做,因此非常感谢任何有关如何纠正此问题的建议!
最佳答案
您只是对/var/www/index.pl 的权限有误这就是为什么它不能执行但/可以显示的原因!你需要执行 sudo chown rightuser:rightgroup/var/www 中的文件甚至让 mod_perl 能够执行 perl
为了给你一个更完整的答案,我需要知道以下内容 - 1. 错误记录我在您的问题下的评论中请求的内容 - 2. 你正在使用的操作系统 - 3. 您正在使用的网络服务器及其确切版本是自行编译的或来自您的 Linux 版本的软件仓库。 - 4. 如果你的 linux 版本是 apache2 就简单地做 须藤 ps 辅助 | grep Apache 别的 须藤 ps 辅助 | grep httpd - 5. 在这里发布所有内容,以便我可以帮助您
关于linux - 禁止 : cannot access/on server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23056480/
我正在尝试使用 npmpublish 命令发布包。但我每次都会收到此错误。 npm ERR! code E403 npm ERR! 403 Forbidden - PUT https://regist
我在 WAMP 上访问我的本地主机(最后是 phpmyadmin)时遇到问题。 当我输入 localhost或 http://127.0.0.1进入我的浏览器,我收到以下消息: Forbidden Y
我正在尝试发送 $ajax,并且我已经得到了它,但是我必须使用我的表单发送文件,无论是否相同,都没关系。尚未找到 csrf token ,并且出现错误。 我的 JavaScript $(doc
我有一个奇怪的问题,我试图使用请求模块废弃某些页面,但这样做时我收到 403 访问被拒绝。但我完全能够使用 Node 的curl 模块来完成此操作。但互联网上的人们认为,它比请求模块更需要性能,因为我
所以,我正在制作一个公共(public)的不和谐机器人,但我的脚本的一部分有问题。我的 kick/ban 命令是用来完成的 $ban @user 它必须在 ping 中完成。由于这是公开的,我真的很想
我在负载均衡器后面有 2 个服务器。此 LB 上配置了 SSL。将近 50 个不同的客户端能够成功连接到我的网站,除了 1 个客户端从浏览器收到禁止 (403) 消息。 经过一番调查,我发现他在代理服
1、禁止计算局部梯度 torch.autogard.no_grad: 禁用梯度计算的上下文管理器。 当确定不会调用Tensor.backward()计算梯度时,设置禁止计算梯度会减少内存消耗。
如果 Moose 的构造函数调用中有额外的参数不是属性,有没有办法死?例如,这个: package Shoe; use Moose; has 'size' => (is => 'ro', isa =
在服务器上,安装了 Nginx。 Let's Encrypt 在 www.domain.com 上运行良好,但不适用于 static.domain.com 使用 PuTTY,当我输入时:sudo le
我使用 emacs 来编辑所有内容。在我的一些 LateX 文档中,我想在编辑表格和代码时自动禁用自动填充模式。基本上,我想要两个标签,例如: %%% BEGIN NO FILL %%%
通过 Nuget,我将 WindowsAzure.Storage 升级到 8.1.1。 然后,我下载了 AzureStorageEmulator 5.1.0.0 客户端。 我的连接字符串: UseDe
Qt documentation说,信号的返回值是不可能的: Signals are automatically generated by the moc and must not be implem
编辑版本 我有一个关于 GPG 的问题,但我写了所有的过程,也许它会对某人有所帮助。 我想:禁止 GPG 命令中的密码提示。 我不想:使用 -c 选项(--对称)。 我有 2 个系统 Linux 和
现在的想法是这样的:在 Java 中为 octalIntegerLiteral我有一个规则 octalNumeral, (integerTypeSuffix optional) 但我想得到一个数字作为
我在 Python 项目中所有模块的开头使用以下内容: import setup_loggers setup_loggers是一个可以做到这一点的模块。 import语句确保无论首先加载哪个模块,记录
我刚刚下载了最新版本的 XAMPP,PHP 版本为 7.2.4。我为 HTML 表单做了一个非常简单的 PHP 验证,当我按下提交时,它会出现以下内容: Access forbidden!You do
我已经成功运行 Vagrant 大约一个星期了。昨晚我运行了 vagrant reload,现在我无法再访问我的网站。 VirtualBox 版本 4.2.16 Vagrant 版本 1.2.7 我的
我使用以下 JavaScript 代码在完成 ajax 后播放音频: $(document).ready(function () { $.ajaxSetup(
我有一个似乎可以在互联网上运行的应用程序。但我接到了一位最终用户的电话,他在使用website时遇到困难。 我要求她发送控制台错误的屏幕截图并收到以下信息: 从 stackoverflow 搜索来看,
我在尝试提交到 svn 存储库时遇到此错误: svn: MKACTIVITY of '/svn/Demo/!svn/act/e2e65cfa-...4165f': 403 Forbidden (htt
我是一名优秀的程序员,十分优秀!