Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1704 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Problème avec Apache 2, DirectoryIndex et accessibilité des pages

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problème avec Apache 2, DirectoryIndex et accessibilité des pages

n°927495
ibonina
Posté le 27-06-2007 à 10:03:53  profilanswer
 

Bonjour,
 
J'ai un problème avec Apache 2.0.x sur AIX : malgré une configuration qui me semble bonne, j'ai des soucis avec DirectoryIndex : lorsque je tape poste.domaine.fr, au lieu de m'afficher le index.html (comme indiqué dans le httpd.conf), ça me fait site inaccessible, il faut que je mette le index.html en dur dans l'URL. Autre soucis, lorsque je me connecte à l'application hebergée par Apache, ça me fait page inconnue.
Voila le httpd.conf :

Code :
  1. ServerRoot "/produit/apache2"
  2. <IfModule !mpm_winnt.c>
  3. <IfModule !mpm_netware.c>
  4. #LockFile logs/accept.lock
  5. </IfModule>
  6. </IfModule>
  7. <IfModule !mpm_netware.c>
  8. <IfModule !perchild.c>
  9. #ScoreBoardFile logs/apache_runtime_status
  10. </IfModule>
  11. </IfModule>
  12. <IfModule !mpm_netware.c>
  13. PidFile logs/httpd.pid
  14. </IfModule>
  15. Timeout 300
  16. KeepAlive On
  17. MaxKeepAliveRequests 100
  18. KeepAliveTimeout 15
  19. <IfModule prefork.c>
  20. StartServers         5
  21. MinSpareServers      5
  22. MaxSpareServers     10
  23. MaxClients         150
  24. MaxRequestsPerChild  0
  25. </IfModule>
  26. <IfModule worker.c>
  27. StartServers         2
  28. MaxClients         150
  29. MinSpareThreads     25
  30. MaxSpareThreads     75
  31. ThreadsPerChild     25
  32. MaxRequestsPerChild  0
  33. </IfModule>
  34. <IfModule perchild.c>
  35. NumServers           5
  36. StartThreads         5
  37. MinSpareThreads      5
  38. MaxSpareThreads     10
  39. MaxThreadsPerChild  20
  40. MaxRequestsPerChild  0
  41. </IfModule>
  42. <IfModule mpm_winnt.c>
  43. ThreadsPerChild 250
  44. MaxRequestsPerChild  0
  45. </IfModule>
  46. <IfModule beos.c>
  47. StartThreads               10
  48. MaxClients                 50
  49. MaxRequestsPerThread       10000
  50. </IfModule>   
  51.                      
  52. <IfModule mpm_netware.c>
  53. ThreadStackSize      65536
  54. StartThreads           250
  55. MinSpareThreads         25
  56. MaxSpareThreads        250
  57. MaxThreads            1000
  58. MaxRequestsPerChild      0
  59. MaxMemFree             100
  60. </IfModule>
  61. <IfModule mpmt_os2.c>
  62. StartServers           2
  63. MinSpareThreads        5
  64. MaxSpareThreads       10
  65. MaxRequestsPerChild    0
  66. </IfModule>
  67. Listen 126.51.202.111:80
  68. <IfModule !mpm_winnt.c>
  69. <IfModule !mpm_netware.c>
  70. User coldw
  71. Group ged
  72. </IfModule>
  73. </IfModule>
  74. ServerAdmin you@example.com
  75. ServerName 126.51.202.111
  76. UseCanonicalName Off
  77. DocumentRoot "/produit/apache2/htdocs"
  78. <Directory />
  79.     Options FollowSymLinks
  80.     AllowOverride None
  81. </Directory>
  82. <Directory "/produit/apache2/htdocs">
  83.     Options Indexes FollowSymLinks
  84.     AllowOverride None
  85.     Order allow,deny
  86.     Allow from all
  87. </Directory>
  88. DirectoryIndex index.htm index.html
  89. AccessFileName .htaccess
  90. <FilesMatch "^\.ht">
  91.     Order allow,deny
  92.     Deny from all
  93. </FilesMatch>
  94. TypesConfig conf/mime.types
  95. DefaultType text/plain
  96. <IfModule mod_mime_magic.c>
  97.     MIMEMagicFile conf/magic
  98. </IfModule>
  99. HostnameLookups Off
  100. ErrorLog logs/error_log
  101. LogLevel warn
  102. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  103. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  104. LogFormat "%{Referer}i -> %U" referer
  105. LogFormat "%{User-agent}i" agent
  106. CustomLog logs/access_log common
  107. ServerTokens Full
  108. ServerSignature On
  109. Alias /icons/ "/produit/apache2/icons/"
  110. <Directory "/produit/apache2/icons">
  111.     Options Indexes MultiViews
  112.     AllowOverride None
  113.     Order allow,deny
  114.     Allow from all
  115. </Directory>
  116. AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/produit/apache2/manual$1"
  117. <Directory "/produit/apache2/manual">
  118.     Options Indexes
  119.     AllowOverride None
  120.     Order allow,deny
  121.     Allow from all
  122. <Files *.html>
  123. SetHandler type-map
  124. </Files>
  125.     SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
  126.     RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
  127. </Directory>
  128. ScriptAlias /cgi-bin/ "/produit/apache2/cgi-bin/"
  129. <IfModule mod_cgid.c>
  130. #
  131. # Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
  132. # for setting UNIX socket for communicating with cgid.
  133. #
  134. #Scriptsock            logs/cgisock
  135. </IfModule>
  136. <Directory "/produit/apache2/cgi-bin">
  137.     AllowOverride None
  138.     Options None
  139.     Order allow,deny
  140.     Allow from all
  141. </Directory>
  142. IndexOptions FancyIndexing VersionSort
  143. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  144. AddIconByType (TXT,/icons/text.gif) text/*
  145. AddIconByType (IMG,/icons/image2.gif) image/*
  146. AddIconByType (SND,/icons/sound2.gif) audio/*
  147. AddIconByType (VID,/icons/movie.gif) video/*
  148. AddIcon /icons/binary.gif .bin .exe
  149. AddIcon /icons/binhex.gif .hqx
  150. AddIcon /icons/tar.gif .tar
  151. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  152. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  153. AddIcon /icons/a.gif .ps .ai .eps
  154. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  155. AddIcon /icons/text.gif .txt
  156. AddIcon /icons/c.gif .c
  157. AddIcon /icons/p.gif .pl .py
  158. AddIcon /icons/f.gif .for
  159. AddIcon /icons/dvi.gif .dvi
  160. AddIcon /icons/uuencoded.gif .uu
  161. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  162. AddIcon /icons/tex.gif .tex
  163. AddIcon /icons/bomb.gif core
  164. AddIcon /icons/back.gif ..
  165. AddIcon /icons/hand.right.gif README
  166. AddIcon /icons/folder.gif ^^DIRECTORY^^
  167. AddIcon /icons/blank.gif ^^BLANKICON^^
  168. DefaultIcon /icons/unknown.gif
  169.  
  170. ReadmeName README.html
  171. HeaderName HEADER.html
  172. IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
  173. AddLanguage ca .ca
  174. AddLanguage cs .cz .cs
  175. AddLanguage da .dk
  176. AddLanguage de .de
  177. AddLanguage el .el
  178. AddLanguage en .en
  179. AddLanguage eo .eo
  180. AddLanguage es .es
  181. AddLanguage et .et
  182. AddLanguage fr .fr
  183. AddLanguage he .he
  184. AddLanguage hr .hr
  185. AddLanguage it .it
  186. AddLanguage ja .ja
  187. AddLanguage ko .ko
  188. AddLanguage ltz .ltz
  189. AddLanguage nl .nl
  190. AddLanguage nn .nn
  191. AddLanguage no .no
  192. AddLanguage pl .po
  193. AddLanguage pt .pt
  194. AddLanguage pt-BR .pt-br
  195. AddLanguage ru .ru
  196. AddLanguage sv .sv
  197. AddLanguage zh-CN .zh-cn
  198. AddLanguage zh-TW .zh-tw
  199. LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
  200. ForceLanguagePriority Prefer Fallback
  201. AddCharset ISO-8859-1  .iso8859-1  .latin1
  202. AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
  203. AddCharset ISO-8859-3  .iso8859-3  .latin3
  204. AddCharset ISO-8859-4  .iso8859-4  .latin4
  205. AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
  206. AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
  207. AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
  208. AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
  209. AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
  210. AddCharset ISO-2022-JP .iso2022-jp .jis
  211. AddCharset ISO-2022-KR .iso2022-kr .kis
  212. AddCharset ISO-2022-CN .iso2022-cn .cis
  213. AddCharset Big5        .Big5       .big5
  214. AddCharset WINDOWS-1251 .cp-1251   .win-1251
  215. AddCharset CP866       .cp866
  216. AddCharset KOI8-r      .koi8-r .koi8-ru
  217. AddCharset KOI8-ru     .koi8-uk .ua
  218. AddCharset ISO-10646-UCS-2 .ucs2
  219. AddCharset ISO-10646-UCS-4 .ucs4
  220. AddCharset UTF-8       .utf8
  221. AddCharset GB2312      .gb2312 .gb  
  222. AddCharset utf-7       .utf7
  223. AddCharset utf-8       .utf8
  224. AddCharset big5        .big5 .b5
  225. AddCharset EUC-TW      .euc-tw
  226. AddCharset EUC-JP      .euc-jp
  227. AddCharset EUC-KR      .euc-kr
  228. AddCharset shift_jis   .sjis
  229. AddType application/x-compress .Z
  230. AddType application/x-gzip .gz .tgz
  231. AddHandler send-as-is asis
  232. AddHandler type-map var
  233. BrowserMatch "Mozilla/2" nokeepalive
  234. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  235. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  236. BrowserMatch "Java/1\.0" force-response-1.0
  237. BrowserMatch "JDK/1\.0" force-response-1.0
  238. BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
  239. BrowserMatch "MS FrontPage" redirect-carefully
  240. BrowserMatch "^WebDrive" redirect-carefully
  241. BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
  242. BrowserMatch "^gnome-vfs" redirect-carefully
  243. BrowserMatch "^XML Spy" redirect-carefully
  244. BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
  245. <IfModule mod_ssl.c>
  246.     Include conf/ssl.conf
  247. </IfModule>
  248. # #### COLUMBUSR CONFIGURATION - START ####
  249. LoadModule columbusr_module /produit/columbusdw/wuiso/ap2mod_colr.so
  250. NameVirtualHost site.sousdomaine.domaine.fr
  251. <VirtualHost site.sousdomaine.domaine.fr>
  252.     ServerName site.sousdomaine.domaine.fr
  253.     ServerAdmin webmaster@site.sousdomaine.domaine.fr
  254.     DocumentRoot /produit/columbusdw/wui
  255.     ErrorLog logs/error_log
  256.     CustomLog logs/access_log common
  257.     DirectoryIndex index.htm index.html
  258. <Directory "/produit/columbusdw/wui">
  259.   DirectoryIndex index.htm index.html
  260.   SetHandler columbusr-handler
  261.   Options FollowSymLinks MultiViews
  262.   AllowOverride None
  263.   Order allow,deny
  264.   Allow from all
  265. </Directory>
  266. <Directory /produit/columbusdw/wui/queries/>
  267. Options None
  268.   AllowOverride None
  269.   Order allow,deny
  270.   Deny from all
  271. </Directory>
  272. <Directory /produit/columbusdw/wui/dynamicidx/>
  273.   Options None
  274.   AllowOverride None
  275.   Order allow,deny
  276.   Deny from all
  277. </Directory>
  278. <Directory /produit/columbusdw/wui/config/>
  279.   Options None
  280.   AllowOverride None
  281.   Order allow,deny
  282.   deny from all
  283. </Directory>
  284. <Directory /produit/columbusdw/wui/logfiles/>
  285.   Options None
  286.   AllowOverride None
  287.   Order allow,deny
  288.   deny from all
  289. </Directory>
  290. </VirtualHost>
  291. # #### COLUMBUSR CONFIGURATION - END ####


 
Voila pour la config. ColumbusdW (l'appli hebergée par Apache et qui plante une fois connectée) est intégrée dans un Virtual Host.
 
Pourriez vous s'il vous plait me dire pourquoi le DirectoryIndex ne fonctionne pas, et si un truc cloche sur la config d'Apache ?
En vous remerciant

mood
Publicité
Posté le 27-06-2007 à 10:03:53  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Problème avec Apache 2, DirectoryIndex et accessibilité des pages

 

Sujets relatifs
[NUX]Apache, Ldap, Sasl, Ssl : HOW TO ???Problème d'installation Ubuntu
[Debian] Problème avec NTPDATE (no servers can be used)[Debian] Problème avec les groupes et les permissions
problème de micro sous ubuntuProblème avec l'IP aliasing !
Problème avec CVSprobleme de proxy IPCOP 1.4.11
soft pour monter des iso, problème pour installer kisoProblème avec CPU-Freq
Plus de sujets relatifs à : Problème avec Apache 2, DirectoryIndex et accessibilité des pages


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR