PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > use httpd.conf instead of .htaccess for a PHP setting?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

use httpd.conf instead of .htaccess for a PHP setting?

Réponse
 
LinkBack Outils de la discussion
Vieux 05/05/2007, 03h54   #1
Phil Latio
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut use httpd.conf instead of .htaccess for a PHP setting?

I currently have an .htaccess file with just one line.

php_flag magic_quotes_gpc off.

1. Is it possible to stick this in the httpd.conf ? If so, where?
2. Is it possible to put this within specific virtual hosts in the
httpd.conf ? If so, where?

Cheers

Phil


  Réponse avec citation
Vieux 05/05/2007, 09h58   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: use httpd.conf instead of .htaccess for a PHP setting?

On May 5, 3:54 am, "Phil Latio" <phil.la...@f-in-stupid.co.uk> wrote:
> I currently have an .htaccess file with just one line.
>
> php_flag magic_quotes_gpc off.
>
> 1. Is it possible to stick this in the httpd.conf ? If so, where?
> 2. Is it possible to put this within specific virtual hosts in the
> httpd.conf ? If so, where?
>
> Cheers
>
> Phil


because its a php value, it should more properly be placed inside the
relevant php.ini file in the "Magic quotes" section
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off

however if you wish to use the httpd.conf then put it somewhere which
has to scope you desire, if you place it inside a vhost stanza it will
operate on that vhost, if you place it in the main httpd.conf inside
the <Directory /path/to/main/server/root> then it will be sitewide

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h55.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09390 seconds with 10 queries