Pages : 1
#1 Le 24/02/2008, à 15:16
- yoshi41
fichier .htaccess
bonjour a tous j'ai un pti problem avec les fichier .htaccess
j'utilise lampp sur ubuntu7.4
tout marche bien sur les site je veux proteger une page qui ce trouve dans un dossier
panel/panel.html
je depose dans ce dossier un fichier .htaccess avec comme info
AuthUserFile /home/ftp/dcgames/www/panel/dcgames/.htpasswd
AuthGroupFile /dev/null
AuthName "Acces Restreint"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
puis je depsoe un fichier .htpasswd
yoshi:$1$GW3.X74.$Idh7yBJcc3OadYuJKBC561
#2 Le 24/02/2008, à 15:44
- stopher
Re : fichier .htaccess
Et le problème c'est ?
Hors ligne
#3 Le 24/02/2008, à 15:58
- yoshi41
Re : fichier .htaccess
Et le problème c'est ?
le probleme c que j'ai quand meme acces a la page
#4 Le 24/02/2008, à 16:03
- stopher
Re : fichier .htaccess
Ok , alors dans un premier temps,
Peux tu nous montrer le fichier de configuration apache
VHOST ou celui par défaut .
vim /etc/apache2/site-enabled/000-default
et vérifies l'option : AllowOverride all
qui par defaut est à none
Hors ligne
#5 Le 24/02/2008, à 16:10
- yoshi41
Re : fichier .htaccess
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/opt/lampp" will be interpreted by the
# server as "/opt/lampp/logs/foo.log".
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/opt/lampp"
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost># directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 127.0.0.1:80 localhost
Listen xxx.xxx.xxx.xxx:80
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
# mod_dbd doesn't work in Apache 2.2.3: getting always heaps of "glibc detected *** corrupted double-linked list" on shutdown - oswald, 10sep06
#LoadModule dbd_module modules/mod_dbd.so
LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule echo_module modules/mod_echo.so
LoadModule case_filter_module modules/mod_case_filter.so
LoadModule case_filter_in_module modules/mod_case_filter_in.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magi
#6 Le 24/02/2008, à 16:14
- yoshi41
Re : fichier .htaccess
ha le fichier rentree pas entier je le donne sur un site
http://serveur2127.dc-games.fr/httpd.conf
http://serveur2127.dc-games.fr/httpd-default.conf
#7 Le 24/02/2008, à 17:55
- stopher
Re : fichier .htaccess
Test fichiers se trouvent dans : /home/ftp/dcgames/www ?
Si c'est le cas , ajoute cette ligne :
AllowOverride all
dans :
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin yoshi@dc-games.fr
DocumentRoot "/home/ftp/dcgames/www"
ServerName www.dc-games.fr
ErrorLog /home/ftp/dcgames/www/error_log
CustomLog /home/ftp/dcgames/www/logs combined
</VirtualHost>
Soit :
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin yoshi@dc-games.fr
DocumentRoot "/home/ftp/dcgames/www"
ServerName www.dc-games.fr
ErrorLog /home/ftp/dcgames/www/error_log
CustomLog /home/ftp/dcgames/www/logs combined
AllowOverride all
</VirtualHost>
Hors ligne
#8 Le 24/02/2008, à 20:01
- yoshi41
Re : fichier .htaccess
apache de demare pas ya une erreur
Syntax error on line 103 of /opt/lampp/etc/extra/httpd-vhosts.conf:
car le fichier que je veux proteger et dans un vhost du fichier httpd-vhosts.conf
<VirtualHost XXX.xxx.xxx.xxx:80>
ServerAdmin yoshi@dc-games.fr
DocumentRoot "/home/ftp/siteweb/www"
ServerName siteweb.dc-games.fr
ErrorLog /home/ftp/siteweb/www/error_log
CustomLog /home/ftp/siteweb/wwwlogs combined
AllowOverride all
</VirtualHost>
donc peux venire le problem
#9 Le 25/02/2008, à 00:27
- yoshi41
Re : fichier .htaccess
up
Pages : 1