IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Apache Discussion :

Prob avec directoryindex


Sujet :

Apache

  1. #21
    Membre expert

    Profil pro
    imposteur
    Inscrit en
    Avril 2003
    Messages
    3 308
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations professionnelles :
    Activité : imposteur

    Informations forums :
    Inscription : Avril 2003
    Messages : 3 308
    Points : 3 377
    Points
    3 377
    Par défaut
    Citation Envoyé par ntournebize
    Bizarre
    Si tu es sous UNIX/Linux, c'est normal.

  2. #22
    Membre confirmé
    Avatar de giminik
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    303
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 303
    Points : 482
    Points
    482
    Par défaut
    ça c'est normal, tu es sous linux pas sous windows et les fichiers/répertoires sont sensibles à la casse. tu peux poster la totalité de ton fichier httpd.conf ?

    C'est moi qui suis grillé cette fois ci

  3. #23
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juillet 2006
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2006
    Messages : 14
    Points : 1
    Points
    1
    Par défaut
    Je ne pense pas que ce soit un prob linux, car je fais mes tests sur des postes qui sont en xp en tapant l'adresse http://192.168.2.195/toto ça ne marche pas alors qu'avec http://192.168.2.195/toto/ (avec le "/") ça marche

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    ### Main Configuration Section
    ### You really shouldn't change these settings unless you're a guru
    ###
    ServerRoot /etc/httpd/2.0
    #ServerName localhost
    #LockFile /etc/httpd/httpd.lock
    PidFile /var/run/httpd.pid
    ErrorLog logs/error_log
    LogLevel warn
    DocumentRoot /var/www/html
     
     
    ### Dynamic Shared Object (DSO) Support
    ###
    ### You should always leave those three, as they are needed for
    ### normal use.
    ### mod_access (Order, Allow, etc..)
    ### mod_log_config (Transferlog, etc..)
    ### mod_mime (AddType, etc...)
     
    LoadModule access_module modules/mod_access.so
    LoadModule auth_module modules/mod_auth.so
    LoadModule auth_anon_module modules/mod_auth_anon.so
    ##LoadModule auth_dbm_module modules/mod_auth_dbm.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    ##LoadModule charset_lite_module modules/mod_charset_lite.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 log_config_module modules/mod_log_config.so
    ##LoadModule log_forensic_module /usr/lib/apache2/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    ##LoadModule mime_magic_module modules/mod_mime_magic.so
    ##LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule usertrack_module modules/mod_usertrack.so
    ##LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule cgi_module modules/mod_cgi.so
    ##LoadModule cgid_module modules/mod_cgid.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imap_module modules/mod_imap.so
    LoadModule actions_module modules/mod_actions.so
    ##LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
     
    ###
    ### Global Configuration
    ###
    # We now support multiple apache configurations on the same server. In
    # common.conf, we put all directives that are common to all implementations
    # (httpd, httpd-perl, etc.)
    # For Apache2 we load all conf files in conf.d
    Include /etc/httpd/conf.d/*.conf
    Include conf/commonhttpd.conf
     
     
    ###
    ### IP Address/Port and Proxied configuration section
    ###
    # The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you
    # are using a proxy or accelerator, like the Apache-SGI or khttpd, so that
    # the fast web server serves static content while Apache handles the
    # cgi or php files
     
    #BindAddress *
    <IfDefine APACHEPROXIED>
        Listen 8080
    </IfDefine>
    <IfDefine !APACHEPROXIED>
        Listen 80
    </IfDefine>
     
    # Likewise, we can set apache as the server by default and send perl
    # requests via ProxyPass to apache-mod_perl. It increases performance
    # since the perl interpreter is only used for perl and the standard apache
    # does all the html and image files, with a smaller footprint.
    #
    # If you install apache and apache-mod_perl, this is the default config.
    # If you don't want two web servers to use perl, uninstall apache, and
    # apache-mod_perl will not be proxied.
     
    <IfDefine PERLPROXIED>
    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^proxy:.*  -  [F]
        RewriteRule ^(.*\/perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
        RewriteRule ^(.*\/cgi-perl\/.*)$  http://%{HTTP_HOST}:8200$1 [P]
    </IfModule>
    </IfDefine>
     
    ###
    ### Log configuration Section
    ###
     
    <IfModule mod_log_config.c>
    #Single logfile with access, agent and referer information
    #This is the default, if vlogs are not defined for the main server
    CustomLog logs/access_log combined env=!VLOG
    #If VLOG is defined in conf/vhosts/Vhost.conf, we use this entry
    CustomLog "|/usr/sbin/advxsplitlogfile" vhost env=VLOG
    </IfModule>
     
    ###
    ### Virtual Hosts
    ###
    # We include different templates for Virtual Hosting. Have a look in the
    # vhosts directory and modify to suit your needs.
    Include conf/vhosts/Vhosts.conf
    #Include conf/vhosts/DynamicVhosts.conf
    #Include conf/vhosts/VirtualHomePages.conf
     
     
    ###
    ### Performance settings Section
    ###
    #
    # Timeout: The number of seconds before receives and sends time out.
    #
    Timeout 300
     
    #
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    #
    KeepAlive On
     
    #
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    #
    MaxKeepAliveRequests 100
     
    #
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    #
    KeepAliveTimeout 15
     
     
    # prefork MPM [THIS IS THE DEFAULT]
    # StartServers: number of server processes to start
    # MinSpareServers: minimum number of server processes which are kept spare
    # MaxSpareServers: maximum number of server processes which are kept spare
    # MaxClients: maximum number of server processes allowed to start
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule prefork.c>
    StartServers         5
    MinSpareServers      5
    MaxSpareServers     10
    MaxClients         150
    MaxRequestsPerChild  0
    </IfModule>
     
    # worker MPM
    # StartServers: initial number of server processes to start
    # MaxClients: maximum number of simultaneous client connections
    # MinSpareThreads: minimum number of worker threads which are kept spare
    # MaxSpareThreads: maximum number of worker threads which are kept spare
    # ThreadsPerChild: constant number of worker threads in each server process
    # MaxRequestsPerChild: maximum number of requests a server process serves
    <IfModule worker.c>
    StartServers         2
    MaxClients         150
    MinSpareThreads     25
    MaxSpareThreads     75
    ThreadsPerChild     25
    MaxRequestsPerChild  0
    </IfModule>
     
    # perchild MPM
    # NumServers: constant number of server processes
    # StartThreads: initial number of worker threads in each server process
    # MinSpareThreads: minimum number of worker threads which are kept spare
    # MaxSpareThreads: maximum number of worker threads which are kept spare
    # MaxThreadsPerChild: maximum number of worker threads in each server process
    # MaxRequestsPerChild: maximum number of connections per server process
    <IfModule perchild.c>
    NumServers           5
    StartThreads         5
    MinSpareThreads      5
    MaxSpareThreads     10
    MaxThreadsPerChild  20
    MaxRequestsPerChild  0
    </IfModule>
     
    ###
    ### webapps configuration section
    ###
     
    # Web applications should be activated _after_ apache has been
    # configured properly.
    Include /etc/httpd/webapps.d/*.conf

  4. #24
    Membre confirmé
    Avatar de giminik
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    303
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 303
    Points : 482
    Points
    482
    Par défaut
    Il faudrait aussi les autres fichiers de configurations qui sont inclus.

  5. #25
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juillet 2006
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2006
    Messages : 14
    Points : 1
    Points
    1
    Par défaut
    le fichier commonhttpd.conf

    Pièce jointe 3266

  6. #26
    Membre confirmé
    Avatar de giminik
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    303
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 303
    Points : 482
    Points
    482
    Par défaut
    bon, je ne sais pas si ça vient de cela, mais il y a un saut de ligne dans le IfModule à la ligne DirectoryIndex.
    à la ligne 811 change le -Indexes par un Indexes.

    Et si ça ne marche toujours pas, mets la ligne DirectoryIndex index.html... juste en dessus de la ligne que je t'ai dit de modifier.

  7. #27
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juillet 2006
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2006
    Messages : 14
    Points : 1
    Points
    1
    Par défaut
    J'ai fait ce que tu m'as dit et aprés redemarrage des service httpd toujours pareil.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    #
    # This may also be "None", "All", or any combination of "Indexes",
    # "Includes", "FollowSymLinks", "SymLinksifOwnerMatch", "ExecCGI", or
    "MultiViews".
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
        DirectoryIndex index.html index.html.var index.php index.php3 index.shtml
        Options Indexes FollowSymLinks MultiViews

    Désolé.

  8. #28
    Membre confirmé
    Avatar de giminik
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    303
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 303
    Points : 482
    Points
    482
    Par défaut
    tu as essayé aussi la deuxième solution que je t'ai donné ? tu ne l'as peut être pas vue car j'ai édité mon message.
    sinon, pas de fichier .htaccess dans le répertoire toto ?

  9. #29
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juillet 2006
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2006
    Messages : 14
    Points : 1
    Points
    1
    Par défaut
    J'ai essayé les deux solutions. Même résultat.

    J'ai même essayé de mettre dans le directoryindex que index.html et index.php.

    Je n'ai pas pour l'instant de fichier .htaccess, j'aimerai le faire fonctionner comme ça d'abord.

    Merci encore.

  10. #30
    Membre confirmé
    Avatar de giminik
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    303
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 303
    Points : 482
    Points
    482
    Par défaut
    Pour le fichier .htaccess, c'était pour voir s'il n'y avait pas une surcharge de la directive DirectoryIndex. Bon, cette fois ci je sèche... Je ne peux vraiment pas te dire quel est le problème. Il faudrait que je puisse avoir accès au serveur mais ce n'est pas le cas.

    a++

  11. #31
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Juillet 2006
    Messages
    14
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2006
    Messages : 14
    Points : 1
    Points
    1
    Par défaut
    Citation Envoyé par Eusebius
    rien dans les logs d'erreur d'apache ?
    Peux-tu me dire comment voir la log, dans quel fichier..

    Merci

  12. #32
    Membre confirmé
    Avatar de giminik
    Profil pro
    Inscrit en
    Mars 2002
    Messages
    303
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations forums :
    Inscription : Mars 2002
    Messages : 303
    Points : 482
    Points
    482
    Par défaut
    Je ne pense pas que tu trouve quelque chose dans les logs. Ce n'est pas une erreur à priori.

  13. #33
    Membre régulier
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    150
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2006
    Messages : 150
    Points : 111
    Points
    111
    Par défaut
    Le serveur renvoie un 404 not found, ce sera surement dans error_log

Discussions similaires

  1. [débutant] Prob avec Tree ctrl
    Par Devether dans le forum MFC
    Réponses: 3
    Dernier message: 24/03/2004, 11h36
  2. [composant][MX_2004_pro] prob avec scrollpane
    Par scorpiwolf dans le forum Flash
    Réponses: 6
    Dernier message: 12/01/2004, 20h18
  3. Prob avec dates delphi
    Par ericmart dans le forum ASP
    Réponses: 6
    Dernier message: 20/10/2003, 17h51
  4. prob avec utilisation de package
    Par martijan dans le forum Modules
    Réponses: 13
    Dernier message: 11/07/2003, 09h37
  5. Thread probs avec WaitFor()
    Par pixelrock dans le forum C++Builder
    Réponses: 2
    Dernier message: 04/11/2002, 09h40

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo