Clicky

Jump to content
  • Sign Up
Sign in to follow this  
Antonio Carlos S Jr

Como desabilitar allow_url_include só em um site

Recommended Posts

Pessoal tem um site de um cliente relativamente antigo que utiliza só includes e estou migrando ele para um novo servidor e por questões de segurança quero configurar só para que esse site by allow_url_include=0 como posso fazer isso?

 

Sendo que já tentei criar um php.ini e jogar na raiz e não funcionou, o que eu fiz de errado?

 

Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in/home/soconces/public_html/site/Connections/banners/Topo_pagina_principal_728x90.php on line 8

Share this post


Link to post
Share on other sites

Pode tentar também via .htacess

allow_url_include = Off
  • Like 1

Ajude o fórum! Antes de postar, leiam as regras de postagem aqui.

Share this post


Link to post
Share on other sites

Olha Galera como está o meu .htaccess


RewriteOptions inherit

RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.soconcessionariasms\.com\.br\/site" [R=301,L]

allow_url_include = 1

E o Resultado.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@homensnacozinha.net.br and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at homensnacozinha.net.br Port 80

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.




×
×
  • Create New...