Jump to content

Como desabilitar allow_url_include só em um site


Antonio Carlos S Jr

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

Link to comment
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, [email protected] 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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?