标签: httpforbiddenhandler

禁止您无权访问此服务器上的/.服务器无法读取htaccess文件,拒绝访问是安全的

现在我在我的整个经销商帐户的一个网站上收到此消息:禁止

您无权访问此服务器上的/.服务器无法读取htaccess文件,拒绝访问是安全的

此外,尝试使用ErrorDocument处理请求时遇到403 Forbidden错误.

它突然发生了.我尝试将根htaccess重命名为其他任何东西,错误仍然存​​在,我甚至尝试设置744权限的文件,仍然是相同的事情.目前该文件使用默认文件权限644.错误发生在:http://lucrebem.com.br

php apache .htaccess httpforbiddenhandler

10
推荐指数
2
解决办法
7万
查看次数

Mailgun - 401 禁止

我尝试使用 mailgun 发送电子邮件。我使用 node.js (nest.js),这是我的邮件服务。我应该改变什么?当我尝试发送第一封电子邮件(mailgun 官方网站中的描述)时,我收到了相同的错误消息。

import { Injectable } from '@nestjs/common';
import * as Mailgun from 'mailgun-js';
import { IMailGunData } from './interfaces/mail.interface';
import { ConfigService } from '../config/config.service';

@Injectable()
export class MailService {
  private mg: Mailgun.Mailgun;

  constructor(private readonly configService: ConfigService) {
    this.mg = Mailgun({
      apiKey: this.configService.get('MAILGUN_API_KEY'),
      domain: this.configService.get('MAILGUN_API_DOMAIN'),
    });
  }

  send(data: IMailGunData): Promise<Mailgun.messages.SendResponse> {
    console.log(data);
    console.log(this.mg);
    return new Promise((res, rej) => {
      this.mg.messages().send(data, function (error, body) {
        if (error) {
          console.log(error);
          rej(error);
        }
        res(body);
      });
    });
  }
} …
Run Code Online (Sandbox Code Playgroud)

httpforbiddenhandler node.js mailgun nestjs

8
推荐指数
3
解决办法
3350
查看次数

Glimpse.axd 403ing在IIS上

在我发布到IIS(7.5)后尝试访问/Glimpse.axd时,我现在收到403 Forbidden响应.IIS中是否有禁用访问.axd文件的设置?或者这完全是另一回事?

httpforbiddenhandler iis-7.5 http-status-code-403 asp.net-mvc-3 glimpse

6
推荐指数
1
解决办法
1808
查看次数

sitecore - 允许访问sitemap.xml,同时禁止其他xml文件

在我们的sitecore 6.6.0(rev.130404)项目中,我们在根文件夹中有一个sitemap.xml文件.但是,由于web.config中的配置,无法从浏览器访问该文件.

<add path="*.xml" verb="*" type="System.Web.HttpForbiddenHandler" name="xml (integrated)" preCondition="integratedMode"/>
Run Code Online (Sandbox Code Playgroud)

此配置是按照sitecore安全加固指南中的说明添加的.

如果我们删除此配置,则用户可以访问sitecore文件夹中的任何.xml文件.我们怎样才允许访问sitemap.xml而不允许访问网站中的其他xml文件?

(我们在IIS7集成模式下运行)

xml sitecore httpforbiddenhandler sitecore6 sitemap.xml

4
推荐指数
1
解决办法
1876
查看次数

让Plone给出适当的403禁止错误

默认Plone行为是在用户尝试访问他或她没有权限的内容时显示登录框.

如何更改此行为以显示相反和未授权页面?如何自定义此未授权页面以具有自定义文本.等等?

plone httpforbiddenhandler http-status-code-403

3
推荐指数
1
解决办法
392
查看次数

Jupyterhub 服务不可用错误和 http:403 被禁止

我使用 Github 帐户用户名和秘密 ID 安装了 jupyterhub 服务器。但是当我运行 jupyterhub 服务(https://my system ip:8000)时,我的服务不可用。我安装了python3.6。如何解决这个问题呢??

root@johnjesus-HCL-Desktop:~# jupyterhub
[W 2018-05-15 14:38:10.001 JupyterHub app:366] JupyterHub.proxy_cmd is deprecated in JupyterHub 0.8, use ConfigurableHTTPProxy.command
[I 2018-05-15 14:38:10.002 JupyterHub app:834] Loading cookie_secret from /home/johnjesus/jupyterhub_cookie_secret
[I 2018-05-15 14:38:10.077 JupyterHub app:1528] Hub API listening on http://127.0.0.1:8081/hub/
[W 2018-05-15 14:38:10.079 JupyterHub proxy:415] 
    Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
    Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.

[I 2018-05-15 14:38:10.079 JupyterHub proxy:458] Starting proxy @ https://*:8000/ …
Run Code Online (Sandbox Code Playgroud)

httpforbiddenhandler python-3.x jupyter-notebook jupyterhub

2
推荐指数
1
解决办法
5053
查看次数