[RESOLU] Erreur 403 - .htaccess

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 1.12.x
#~ Url du site :
#~ Hébergeur / Soft : Netensia
#~ Informations Système :
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~



Bonjour,

Je viens de changer le mod_php par suphp sur mon serveur suite à une erreur 500 lorsque je souhaitais validé une nouvelle page.
Désormais j'ai une erreur 403.

Lors d'un test log :

[Tue Oct 20 11:26:48.484933 2015] [rewrite:warn] [pid 14780] AH00665: RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. (/var/www/clients/client1/web1/web/.htaccess:54)
[Tue Oct 20 11:26:48.485013 2015] [rewrite:warn] [pid 14780] AH00665: RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored. (/var/www/clients/client1/web1/web/.htaccess:55)

Il y a un problème au niveau de votre fichier .htaccess.


Sauf que je sèche sur la manière de résoudre le problème.
Merci par avance de votre aide
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 1.12.x
#~ Url du site :
#~ Hébergeur / Soft : Netensia
#~ Informations Système :
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~



Bonjour,

Je viens de changer le mod_php par suphp sur mon serveur suite à une erreur 500 lorsque je souhaitais validé une nouvelle page.
Désormais j'ai une erreur 403.

Lors d'un test log :

[Tue Oct 20 11:26:48.484933 2015] [rewrite:warn] [pid 14780] AH00665: RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. (/var/www/clients/client1/web1/web/.htaccess:54)
[Tue Oct 20 11:26:48.485013 2015] [rewrite:warn] [pid 14780] AH00665: RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored. (/var/www/clients/client1/web1/web/.htaccess:55)

Il y a un problème au niveau de votre fichier .htaccess.


Sauf que je sèche sur la manière de résoudre le problème.
Merci par avance de votre aide
#2
sans information sur le htaccess, sur ta config serveur et sur ta modification avec suphp, la boule de cris-talle reste éteinte
J-C Etiemble v 2.2.xx
#2
sans information sur le htaccess, sur ta config serveur et sur ta modification avec suphp, la boule de cris-talle reste éteinte
J-C Etiemble v 2.2.xx
#3
Voici mon .htaccess

-----------------------------
# BEGIN Optional settings

# Turns off directory browsing
# not absolutely essential, but keeps people from snooping around without
# needing empty index.html files everywhere
Options -Indexes

# Deny access to config.php
# This can be useful if php ever breaks or dies
# Use with caution, this may break other functions of CMSms that use a config.php
# file. This may also break other programs you have running under your CMSms
# install that use config.php. You may need to add another .htaccess file to those
# directories to specifically allow config.php.
<Files "config.php">
order allow,deny
deny from all
</Files>

# Sets your 403 error document
# not absolutely essential to have,
# or you may already have error pages defined elsewhere
ErrorDocument 403 /forbidden403.shtml

# No sense advertising what we are running
ServerSignature Off

# END Optional Settings

# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on

RewriteEngine On
RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<script>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS
# END Rewrite rules
--------------------------
#3
Voici mon .htaccess

-----------------------------
# BEGIN Optional settings

# Turns off directory browsing
# not absolutely essential, but keeps people from snooping around without
# needing empty index.html files everywhere
Options -Indexes

# Deny access to config.php
# This can be useful if php ever breaks or dies
# Use with caution, this may break other functions of CMSms that use a config.php
# file. This may also break other programs you have running under your CMSms
# install that use config.php. You may need to add another .htaccess file to those
# directories to specifically allow config.php.
<Files "config.php">
order allow,deny
deny from all
</Files>

# Sets your 403 error document
# not absolutely essential to have,
# or you may already have error pages defined elsewhere
ErrorDocument 403 /forbidden403.shtml

# No sense advertising what we are running
ServerSignature Off

# END Optional Settings

# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on

RewriteEngine On
RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<script>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS
# END Rewrite rules
--------------------------
#4
C’était une mauvaise config. du serveur...
#4
C’était une mauvaise config. du serveur...


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)