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

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Probleme avec Apache : /

 


 Mot :   Pseudo :  
 
 Page :   1  2
Page Précédente
Auteur Sujet :

Probleme avec Apache : /

n°262302
cell du xb​oxlive
Posté le 14-05-2003 à 19:33:44  profilanswer
 

Bon voila, g reussi a creer mon sous repertoire /var/www/html/test/
en faisant mkdir /var/www/html/test/ .
Puis g fait vim test.php et g rentre ce code :
<html>  
<?  
echo 'premier test php<br><br>';  
phpinfo();  
?>  
</html>
 
Ensuite g fait :
:wq
 
 
Et kan je vais a cette page http://localhost/test/test.php
 
Et ben il s'affiche un message d'erreur :
 
 
Forbidden
 
 
You don't have permission to access /test/test.php/ on this server.
 
Apache-AdvancedExtranetServer/2.0.45 (Mandrake Linux/4.2mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_python/3.0.1 Python/2.2.2 mod_random/2.0 mod_roaming/2.0.0 mod_rpaf/0.4 mod_ruby/1.0.2 Ruby/1.6.8 mod_vdbh/1.0.2 mod_smbauth/1.4.3 mod_websh/3.5.0 mod_xslt/1.0.5a mod_tcl/1.0 mod_sleep/2.1 mod_ssl/2.0.45 OpenSSL/0.9.7a PHP/4.3.1 mod_variety/0.1.0 Server at 127.0.0.1 Port 80
 
 
 
 
Je ne comprends pas pk je n'aurais pas la permission de voir cette page...!!!
Vous dites, "le forum doit etre le dernier secours", ben là il l'est, j c plus koi faire

mood
Publicité
Posté le 14-05-2003 à 19:33:44  profilanswer
 

n°262313
Mjules
Modérateur
Parle dans le vide
Posté le 14-05-2003 à 19:45:57  profilanswer
 

test.php est bien dans /var/www/html/test/  ?
 
si oui, va dans ce dossier ( cd /var/www/html/test/ ) et donnes nous le résultat de la commande :
ls -l


---------------
Celui qui pose une question est idiot 5 minutes. Celui qui n'en pose pas le reste toute sa vie. |  Membre du grand complot pharmaceutico-médico-scientifico-judéo-maçonnique.
n°262325
Threep
I'm a mighty pirate!
Posté le 14-05-2003 à 19:55:19  profilanswer
 

vim test.php va créer le fichier test.php dans le repertoire courant, donc si tu étais dans /home/machin, que tu as fait mkdir /var/www/html/test/, puis ensuite vim test.php, alors le fichier test.php se trouve dans /home/machin et non dans /var/www/html/test/

n°262327
cell du xb​oxlive
Posté le 14-05-2003 à 20:02:09  profilanswer
 

oui c exact, je vois kil est dans le Dossier personnel

n°262328
cell du xb​oxlive
Posté le 14-05-2003 à 20:03:22  profilanswer
 

Mjules a écrit :

test.php est bien dans /var/www/html/test/  ?
 
si oui, va dans ce dossier ( cd /var/www/html/test/ ) et donnes nous le résultat de la commande :
ls -l


 
 
 
[root@localhost cell]# cd /var/www/html/test/
[root@localhost test]#  ls -l
total 4
drwxr-xr-x    2 root     root         4096 mai 14 18:50 test.php/
 
 
 
voila

n°262329
cell du xb​oxlive
Posté le 14-05-2003 à 20:05:11  profilanswer
 

Threep a écrit :

vim test.php va créer le fichier test.php dans le repertoire courant, donc si tu étais dans /home/machin, que tu as fait mkdir /var/www/html/test/, puis ensuite vim test.php, alors le fichier test.php se trouve dans /home/machin et non dans /var/www/html/test/


 
 
comment tu fais pr mettre test.php dans /var/www/html/test/  ??

n°262333
Taz
bisounours-codeur
Posté le 14-05-2003 à 20:13:46  profilanswer
 

euh c'est un dossier là...

n°262344
cell du xb​oxlive
Posté le 14-05-2003 à 20:27:31  profilanswer
 

ben en tt cas je comprends pas pk il me met Permission refuse !

n°262346
Threep
I'm a mighty pirate!
Posté le 14-05-2003 à 20:30:22  profilanswer
 

cell du xboxlive a écrit :


 
 
comment tu fais pr mettre test.php dans /var/www/html/test/  ??


 
Je t'ai dit que si tu faisais vim test.php, il le créait dans le repertoire courant. Le bon sens te dirait de te mettre donc dans le repertoire où tu veux creer ton fichier
cd /var/www/html/test
vim test.php
 
Franchement, c'est pas pour t'embeter qu'on te dit ça, mais avant de le lancer dans la configuration d'un serveur apache, apprends un minimum les commandes de base unix

n°262365
cell du xb​oxlive
Posté le 14-05-2003 à 21:01:49  profilanswer
 

" Sorted by name (.bak,~,.o,.h,.info,.swp,.obj at end of list)
"= /var/www/html/test/test.php/
../
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
E21: Ne peut rien changer, 'modifiable' est désactivé
Appuyez sur ENTRÉE ou tapez une commande
 
 
 
C ce que g kan g fais  cd /var/www/html/test et je fais inser pr le code, seulement voila, le code je c plus trop ou le taper et il m'affiche plein de trucs si je me goure

mood
Publicité
Posté le 14-05-2003 à 21:01:49  profilanswer
 

n°262366
Mjules
Modérateur
Parle dans le vide
Posté le 14-05-2003 à 21:03:17  profilanswer
 

en fait, tu n'as pas de fichier test.php dans ton /var/www/html/test/ ; comme l'a dit ++Taz, c'est un dossier qui porte ce nom, d'où le pb.
 
donc  
1) il te faut supprimer ce dossier : rm -r /var/www/html/test/test.php
2) il te faut créer test.php, pour cela, une fois dans tu vas dans /var/www/html/test/ et tu tapes vi test.php pour remplir ton fichier comme il faut.
 
EDIT : ET LIS LA DOC !!! Elle explique comment utiliser vi, créer un repertoire, effacer, copier, déplacer, renommer...


Message édité par Mjules le 14-05-2003 à 21:04:29

---------------
Celui qui pose une question est idiot 5 minutes. Celui qui n'en pose pas le reste toute sa vie. |  Membre du grand complot pharmaceutico-médico-scientifico-judéo-maçonnique.
n°262367
zeb_
Posté le 14-05-2003 à 21:11:18  profilanswer
 

Et faut être root pou écrire un fichier à cet endroit. 'su' est ton ami !

n°262370
cell du xb​oxlive
Posté le 14-05-2003 à 21:27:01  profilanswer
 

je crois que g bien supprimie test.php.
Tu dis "vas dans  /var/www/html/test/ " ok je tape ca en root et il me met maintenat que g fait la commande rm :
bash: /var/www/html/test/: is a directory
 
c normal ca ?

n°262372
cell du xb​oxlive
Posté le 14-05-2003 à 21:27:33  profilanswer
 

et pr les commandes g vu, c tres bien explike:d

n°262373
Taz
bisounours-codeur
Posté le 14-05-2003 à 21:30:38  profilanswer
 

****** fais pas *****, prends ton konqueror va dans ce ****** de répertoire, vire tout, fais clique-droit->Nouveau Fichier et reclic-droit ouvrir avec et voilà


Message édité par Taz le 14-05-2003 à 21:35:33
n°262421
linuxois1
acharnement = réussite
Posté le 14-05-2003 à 23:07:38  profilanswer
 

++Taz a écrit :

****** fais pas *****, prends ton konqueror va dans ce ****** de répertoire, vire tout, fais clique-droit->Nouveau Fichier et reclic-droit ouvrir avec et voilà


 
C'est un pb de configuration simplement. Voici les 2 fichiers à configurer. Dans httpd.conf, commente #DocumentRoot /var/www/html
 

Code :
  1. ################# Vhosts.conf
  2. #This is where we store the VirtualHosts configuration.
  3. #
  4. Port 80
  5. ServerRoot /etc/httpd
  6. ResourceConfig /dev/null
  7. AccessConfig /dev/null
  8. #### localhost
  9. ################# IP-based Virtual Hosts
  10. NameVirtualHost 127.0.0.1>
  11. <VirtualHost 127.0.0.1>
  12. # ServerAdmin hostname@tondomaine
  13. DocumentRoot /var/www/test
  14. ServerName localhost
  15. #ErrorLogs /var/www/test/default-error_log
  16. #CustomLogs /var/www/test/default-access_log
  17. #ServerAlias 127.0.0.1
  18. #RewriteEngine On
  19. #RewriteOptions inherit
  20. </VirtualHost>


 

Code :
  1. ### Common server configuration
  2. #
  3. User apache
  4. Group apache
  5. #
  6. # ServerAdmin: Your address, where problems with the server should be
  7. # e-mailed.  This address appears on some server-generated pages, such
  8. # as error documents.
  9. #
  10. #ServerAdmin root@localhost
  11. # DocumentRoot: The directory out of which you will serve your
  12. # documents. By default, all requests are taken from this directory, but
  13. # symbolic links and aliases may be used to point to other locations.
  14. # DO NOT MODIFY THIS ONE, USE httpd.conf and httpd-perl.conf
  15. #DocumentRoot /var/www/html
  16. #
  17. # Each directory to which Apache has access, can be configured with respect
  18. # to which services and features are allowed and/or disabled in that
  19. # directory (and its subdirectories).
  20. #
  21. # First, we configure the "default" to be a very restrictive set of
  22. # permissions. 
  23. #
  24. # Also, for security, we disable indexes globally
  25. #
  26. #<Directory />
  27. #    Options -Indexes FollowSymLinks
  28. #    AllowOverride None
  29. #</Directory>
  30. #Restricted set of options
  31. <Directory />
  32.   Options -All -Multiviews
  33.   AllowOverride None
  34.   Order deny,allow
  35.   Deny from all
  36. </Directory>
  37. #
  38. # Note that from this point forward you must specifically allow
  39. # particular features to be enabled - so if something's not working as
  40. # you might expect, make sure that you have specifically enabled it
  41. # below.
  42. #
  43. #
  44. # UserDir: The name of the directory which is appended onto a user's home
  45. # directory if a ~user request is received.
  46. #
  47. <IfModule mod_userdir.c>
  48.     UserDir public_html
  49. </IfModule>
  50.    
  51. #
  52. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  53. # directory index.  Separate multiple entries with spaces.
  54. #
  55. <IfModule mod_dir.c>
  56.     DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
  57. </IfModule>
  58. #
  59. # AccessFileName: The name of the file to look for in each directory
  60. # for access control information.
  61. #
  62. AccessFileName .htaccess
  63. #
  64. # The following lines prevent .htaccess files from being viewed by
  65. # Web clients.  Since .htaccess files often contain authorization
  66. # information, access is disallowed for security reasons.  Comment
  67. # these lines out if you want Web visitors to see the contents of
  68. # .htaccess files.  If you change the AccessFileName directive above,
  69. # be sure to make the corresponding changes here.
  70. #
  71. # Also, folks tend to use names such as .htpasswd for password
  72. # files, so this will protect those as well.
  73. #
  74. <Files ~ "^\.ht">
  75.     Order allow,deny
  76.     Deny from all
  77. </Files>
  78. #
  79. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  80. # document that was negotiated on the basis of content. This asks proxy
  81. # servers not to cache the document. Uncommenting the following line disables
  82. # this behavior, and proxies will be allowed to cache the documents.
  83. #
  84. #CacheNegotiatedDocs
  85. #
  86. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  87. # Apache needs to construct a self-referencing URL (a URL that refers back
  88. # to the server the response is coming from) it will use ServerName and
  89. # Port to form a "canonical" name.  With this setting off, Apache will
  90. # use the hostname:port that the client supplied, when possible.  This
  91. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  92. #
  93. UseCanonicalName On
  94. #
  95. # TypesConfig describes where the mime.types file (or equivalent) is
  96. # to be found.
  97. #
  98. <IfModule mod_mime.c>
  99.     TypesConfig conf/apache-mime.types
  100. </IfModule>
  101. #
  102. # DefaultType is the default MIME type the server will use for a document
  103. # if it cannot otherwise determine one, such as from filename extensions.
  104. # If your server contains mostly text or HTML documents, "text/plain" is
  105. # a good value.  If most of your content is binary, such as applications
  106. # or images, you may want to use "application/octet-stream" instead to
  107. # keep browsers from trying to display binary files as though they are
  108. # text.
  109. #
  110. DefaultType text/plain
  111. #
  112. # The mod_mime_magic module allows the server to use various hints from the
  113. # contents of the file itself to determine its type.  The MIMEMagicFile
  114. # directive tells the module where the hint definitions are located.
  115. # mod_mime_magic is not part of the default server (you have to add
  116. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  117. # Environment' section], or recompile the server and include mod_mime_magic
  118. # as part of the configuration), so it's enclosed in an <IfModule> container.
  119. # This means that the MIMEMagicFile directive will only be processed if the
  120. # module is part of the server.
  121. #
  122. <IfModule mod_mime_magic.c>
  123.     MIMEMagicFile conf/magic
  124. </IfModule>
  125. #
  126. # HostnameLookups: Log the names of clients or just their IP addresses
  127. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  128. # The default is off because it'd be overall better for the net if people
  129. # had to knowingly turn this feature on, since enabling it means that
  130. # each client request will result in AT LEAST one lookup request to the
  131. # nameserver.
  132. #
  133. HostnameLookups Off
  134. # The following directives define some format nicknames for use with
  135. # a CustomLog directive (see below).
  136. #
  137. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  138. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  139. LogFormat "%{Referer}i -> %U" referer
  140. LogFormat "%{User-agent}i" agent
  141. LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script
  142. LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost
  143. #
  144. # The location and format of the access logfile (Common Logfile Format).
  145. #CustomLog logs/access_log common
  146. #
  147. # If you would like to have agent and referer logfiles, uncomment the
  148. # following directives.
  149. #
  150. #CustomLog logs/referer_log referer
  151. #CustomLog logs/agent_log agent
  152. #
  153. # If you prefer a single logfile with access, agent, and referer information
  154. # (Combined Logfile Format) you can use the following directive.
  155. #
  156. #CustomLog logs/access_log combined
  157. #
  158. # Optionally add a line containing the server version and virtual host
  159. # name to server-generated pages (error documents, FTP directory listings,
  160. # mod_status and mod_info output etc., but not CGI generated documents).
  161. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  162. # Set to one of:  On | Off | EMail
  163. #
  164. ServerSignature On
  165. #
  166. # Aliases: Add here as many aliases as you need (with no limit). The format is
  167. # Alias fakename realname
  168. #
  169. <IfModule mod_alias.c>
  170.     #
  171.     # Note that if you include a trailing / on fakename then the server will
  172.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  173.     # example, only "/icons/"..
  174.     #
  175.     Alias /icons/ /var/www/icons/
  176.     Alias /doc /usr/share/doc
  177.     #
  178.     # ScriptAlias: This controls which directories contain server scripts.
  179.     # ScriptAliases are essentially the same as Aliases, except that
  180.     # documents in the realname directory are treated as applications and
  181.     # run by the server when requested rather than as documents sent to the client.
  182.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  183.     # Alias.
  184.     #
  185.     ScriptAlias /cgi-bin/ /var/www/cgi-bin/
  186.     ScriptAlias /protected-cgi-bin/ /var/www/protected-cgi-bin/
  187.     <IfModule mod_perl.c>
  188. #Provide two aliases to the same cgi-bin directory,
  189. #to see the effects of the 2 different mod_perl modes
  190. #for Apache::Registry Mode
  191. Alias /perl/ /var/www/perl/
  192. #for Apache::Perlrun Mode
  193. Alias /cgi-perl/ /var/www/perl/
  194.     </IfModule>
  195. </IfModule>
  196. # End of aliases.
  197. #
  198. # Redirect allows you to tell clients about documents which used to exist in
  199. # your server's namespace, but do not anymore. This allows you to tell the
  200. # clients where to look for the relocated document.
  201. # Format: Redirect old-URI new-URL
  202. #
  203. #
  204. # Directives controlling the display of server-generated directory listings.
  205. #
  206. <IfModule mod_autoindex.c>
  207.     #
  208.     # FancyIndexing is whether you want fancy directory indexing or standard
  209.     #
  210.     IndexOptions FancyIndexing
  211.     #
  212.     # AddIcon* directives tell the server which icon to show for different
  213.     # files or filename extensions.  These are only displayed for
  214.     # FancyIndexed directories.
  215.     #
  216.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  217.     AddIconByType (TXT,/icons/text.gif) text/*
  218.     AddIconByType (IMG,/icons/image2.gif) image/*
  219.     AddIconByType (SND,/icons/sound2.gif) audio/*
  220.     AddIconByType (VID,/icons/movie.gif) video/*
  221.     AddIcon /icons/binary.gif .bin .exe
  222.     AddIcon /icons/binhex.gif .hqx
  223.     AddIcon /icons/tar.gif .tar
  224.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  225.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .bz2
  226.     AddIcon /icons/a.gif .ps .ai .eps
  227.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  228.     AddIcon /icons/text.gif .txt
  229.     AddIcon /icons/c.gif .c
  230.     AddIcon /icons/p.gif .pl .py .php .php3
  231.     AddIcon /icons/f.gif .for
  232.     AddIcon /icons/dvi.gif .dvi
  233.     AddIcon /icons/uuencoded.gif .uu
  234.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  235.     AddIcon /icons/tex.gif .tex
  236.     AddIcon /icons/bomb.gif core
  237.     AddIcon /icons/back.gif ..
  238.     AddIcon /icons/hand.right.gif README
  239.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  240.     AddIcon /icons/blank.gif ^^BLANKICON^^
  241.     #
  242.     # DefaultIcon is which icon to show for files which do not have an icon
  243.     # explicitly set.
  244.     #
  245.     DefaultIcon /icons/unknown.gif
  246.     #
  247.     # AddDescription allows you to place a short description after a file in
  248.     # server-generated indexes.  These are only displayed for FancyIndexed
  249.     # directories.
  250.     # Format: AddDescription "description" filename
  251.     #
  252.     #AddDescription "GZIP compressed document" .gz
  253.     #AddDescription "tar archive" .tar
  254.     #AddDescription "GZIP compressed tar archive" .tgz
  255.     #
  256.     # ReadmeName is the name of the README file the server will look for by
  257.     # default, and append to directory listings.
  258.     #
  259.     # HeaderName is the name of a file which should be prepended to
  260.     # directory indexes.  
  261.     #
  262.     # If MultiViews are amongst the Options in effect, the server will
  263.     # first look for name.html and include it if found.  If name.html
  264.     # doesn't exist, the server will then look for name.txt and include
  265.     # it as plaintext if found.
  266.     #
  267.     ReadmeName README
  268.     HeaderName HEADER
  269.     #
  270.     # IndexIgnore is a set of filenames which directory indexing should ignore
  271.     # and not include in the listing.  Shell-style wildcarding is permitted.
  272.     #
  273.     IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t
  274. </IfModule>
  275. # End of indexing directives.
  276. #
  277. # Document types.
  278. #
  279. <IfModule mod_mime.c>
  280.     #
  281.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  282.     # information on the fly. Note: Not all browsers support this.
  283.     # Despite the name similarity, the following Add* directives have nothing
  284.     # to do with the FancyIndexing customization directives above.
  285.     #
  286.     AddEncoding x-compress Z
  287.     AddEncoding x-gzip gz tgz
  288.     #
  289.     # AddLanguage allows you to specify the language of a document. You can
  290.     # then use content negotiation to give a browser a file in a language
  291.     # it can understand.   
  292.     #
  293.     # Note 1: The suffix does not have to be the same as the language  
  294.     # keyword --- those with documents in Polish (whose net-standard  
  295.     # language code is pl) may wish to use "AddLanguage pl .po" to  
  296.     # avoid the ambiguity with the common suffix for perl scripts.
  297.     #
  298.     # Note 2: The example entries below illustrate that in quite
  299.     # some cases the two character 'Language' abbreviation is not
  300.     # identical to the two character 'Country' code for its country,
  301.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  302.     #
  303.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char  
  304.     # specifier. But there is 'work in progress' to fix this and get  
  305.     # the reference data for rfc1766 cleaned up.
  306.     #
  307.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  308.     # French (fr) - German (de) - Greek-Modern (el)
  309.     # Italian (it) - Korean (kr) - Norwegian (no)
  310.     # Portugese (pt) - Luxembourgeois* (ltz)
  311.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  312.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  313.     # Russian (ru)
  314.     #
  315.     AddLanguage da .dk
  316.     AddLanguage nl .nl
  317.     AddLanguage en .en
  318.     AddLanguage et .ee
  319.     AddLanguage fr .fr
  320.     AddLanguage de .de
  321.     AddLanguage el .el
  322.     AddLanguage he .he
  323.     AddCharset ISO-8859-8 .iso8859-8
  324.     AddLanguage it .it
  325.     AddLanguage ja .ja
  326.     AddCharset ISO-2022-JP .jis
  327.     AddLanguage kr .kr
  328.     AddCharset ISO-2022-KR .iso-kr
  329.     AddLanguage no .no
  330.     AddLanguage pl .po
  331.     AddCharset ISO-8859-2 .iso-pl
  332.     AddLanguage pt .pt
  333.     AddLanguage pt-br .pt-br
  334.     AddLanguage ltz .lu
  335.     AddLanguage ca .ca
  336.     AddLanguage es .es
  337.     AddLanguage sv .se
  338.     AddLanguage cz .cz
  339.     AddLanguage ru .ru
  340.     AddLanguage zh-tw .tw
  341.     AddLanguage tw .tw
  342.     AddCharset Big5         .Big5    .big5
  343.     AddCharset WINDOWS-1251 .cp-1251
  344.     AddCharset CP866        .cp866
  345.     AddCharset ISO-8859-5   .iso-ru
  346.     AddCharset KOI8-R       .koi8-r
  347.     AddCharset UCS-2        .ucs2
  348.     AddCharset UCS-4        .ucs4
  349.     AddCharset UTF-8        .utf8
  350.     # LanguagePriority allows you to give precedence to some languages
  351.     # in case of a tie during content negotiation.
  352.     #
  353.     # Just list the languages in decreasing order of preference. We have
  354.     # more or less alphabetized them here. You probably want to change this.
  355.     #
  356.     <IfModule mod_negotiation.c>
  357.         LanguagePriority en fr de es it da nl et el ja kr no pl pt pt-br ru ltz ca sv tw
  358.     </IfModule>
  359.     #
  360.     # AddType allows you to tweak mime.types without actually editing it, or to
  361.     # make certain files to be certain types.
  362.     #
  363.     # For example, the PHP 3.x module (not part of the Apache distribution - see
  364.     # http://www.php.net) will typically use:
  365.     #
  366.     #AddType application/x-httpd-php3 .php3
  367.     #AddType application/x-httpd-php3-source .phps
  368.     #
  369.     # And for PHP 4.x, use:
  370.     #
  371.     #AddType application/x-httpd-php .php
  372.     #AddType application/x-httpd-php-source .phps
  373.     AddType application/x-tar .tgz
  374.     #
  375.     # AddHandler allows you to map certain file extensions to "handlers",
  376.     # actions unrelated to filetype. These can be either built into the server
  377.     # or added with the Action command (see below)
  378.     #
  379.     # If you want to use server side includes, or CGI outside
  380.     # ScriptAliased directories, uncomment the following lines.
  381.     #
  382.     # To use CGI scripts:
  383.     #
  384.     AddHandler cgi-script .cgi
  385.     #
  386.     # To use server-parsed HTML files
  387.     #
  388.     AddType text/html .shtml
  389.     AddHandler server-parsed .shtml
  390.     #
  391.     # Uncomment the following line to enable Apache's send-asis HTTP file
  392.     # feature
  393.     #
  394.     #AddHandler send-as-is asis
  395.     #
  396.     # If you wish to use server-parsed imagemap files, use
  397.     #
  398.     AddHandler imap-file map
  399.     #
  400.     # To enable type maps, you might want to use
  401.     #
  402.     #AddHandler type-map var
  403. </IfModule>
  404. # End of document types.
  405. #
  406. # Action lets you define media types that will execute a script whenever
  407. # a matching file is called. This eliminates the need for repeated URL
  408. # pathnames for oft-used CGI file processors.
  409. # Format: Action media/type /cgi-script/location
  410. # Format: Action handler-name /cgi-script/location
  411. #
  412. #
  413. # MetaDir: specifies the name of the directory in which Apache can find
  414. # meta information files. These files contain additional HTTP headers
  415. # to include when sending the document
  416. #
  417. #MetaDir .web
  418. #
  419. # MetaSuffix: specifies the file name suffix for the file containing the
  420. # meta information.
  421. #
  422. #MetaSuffix .meta
  423. #
  424. # Customizable error response (Apache style)
  425. #  these come in three flavors
  426. #
  427. #    1) plain text
  428. #ErrorDocument 500 "The server made a boo boo.
  429. #  n.b.  the single leading (" ) marks it as text, it does not get output
  430. #
  431. #    2) local redirects
  432. #ErrorDocument 404 /missing.html
  433. #  to redirect to local URL /missing.html
  434. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  435. #  N.B.: You can redirect to a script or a document using server-side-includes.
  436. #
  437. #    3) external redirects
  438. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  439. #  N.B.: Many of the environment variables associated with the original
  440. #  request will *not* be available to such a script.
  441. <Location /manual>
  442. Options Multiviews
  443. ErrorDocument 404 "The document you requested has not been installed on your system. Please install the apache-manual package.
  444. </Location>
  445. #
  446. # Customize behaviour based on the browser
  447. #
  448. <IfModule mod_setenvif.c>
  449.     #
  450.     # The following directives modify normal HTTP response behavior.
  451.     # The first directive disables keepalive for Netscape 2.x and browsers that
  452.     # spoof it. There are known problems with these browser implementations.
  453.     # The second directive is for Microsoft Internet Explorer 4.0b2
  454.     # which has a broken HTTP/1.1 implementation and does not properly
  455.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  456.     #
  457.     BrowserMatch "Mozilla/2" nokeepalive
  458.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  459.     #
  460.     # The following directive disables HTTP/1.1 responses to browsers which
  461.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  462.     # basic 1.1 response.
  463.     #
  464.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  465.     BrowserMatch "Java/1\.0" force-response-1.0
  466.     BrowserMatch "JDK/1\.0" force-response-1.0
  467. </IfModule>
  468. # End of browser customization directives
  469. #
  470. # Allow server status reports, with the URL of http://servername/server-status
  471. # Change the ".your_domain.com" to match your domain to enable.
  472. #
  473. <IfModule mod_status.c>
  474.     <Location /server-status>
  475.         SetHandler server-status
  476.         Order deny,allow
  477.         Deny from all
  478.         allow from 127.0.0.1
  479.         #Allow from .your_domain.com
  480.     </Location>
  481. #
  482. # ExtendedStatus controls whether Apache will generate "full" status
  483. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  484. # Off) when the "server-status" handler is called. The default is Off.
  485. #
  486. #ExtendedStatus On
  487. </IfModule>
  488. #
  489. # Allow remote server configuration reports, with the URL of
  490. # http://servername/server-info (requires that mod_info.c be loaded).
  491. # Change the ".your_domain.com" to match your domain to enable.
  492. #
  493. <IfModule mod_info.c>
  494.     <Location /server-info>
  495. SetHandler server-info
  496. Order deny,allow
  497. Deny from all
  498. Allow from .your_domain.com
  499.     </Location>
  500. </IfModule>
  501. <IfModule mod_perl.c>
  502.     <Location /perl-status>
  503. SetHandler perl-script
  504. PerlHandler Apache::Status
  505. Order deny,allow
  506. Deny from all
  507. Allow from 127.0.0.1
  508.     </Location>
  509. </IfModule>
  510. #
  511. # There have been reports of people trying to abuse an old bug from pre-1.1
  512. # days.  This bug involved a CGI script distributed as a part of Apache.
  513. # By uncommenting these lines you can redirect these attacks to a logging  
  514. # script on phf.apache.org.  Or, you can record them yourself, using the script
  515. # support/phf_abuse_log.cgi.
  516. #
  517. #<Location /cgi-bin/phf*>
  518. #    Deny from all
  519. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  520. #</Location>
  521. #
  522. # Proxy Server directives. Uncomment the following lines to
  523. # enable the proxy server:
  524. #
  525. #<IfModule mod_proxy.c>
  526. #    ProxyRequests On
  527. #    <Directory proxy:*>
  528. #        Order deny,allow
  529. #        Deny from all
  530. #        Allow from .your_domain.com
  531. #    </Directory>
  532.     #
  533.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  534.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  535.     # Set to one of: Off | On | Full | Block
  536.     #
  537. #    ProxyVia On
  538.     #
  539.     # To enable the cache as well, edit and uncomment the following lines:
  540.     # (no cacheing without CacheRoot)
  541.     #
  542. #    CacheRoot /var/cache/httpd
  543. #    CacheSize 5
  544. #    CacheGcInterval 4
  545. #    CacheMaxExpire 24
  546. #    CacheLastModifiedFactor 0.1
  547. #    CacheDefaultExpire 1
  548. #    NoCache a_domain.com another_domain.edu joes.garage_sale.com
  549. #</IfModule>
  550. # End of proxy directives.
  551. <IfModule mod_dav.c>
  552. #    DavLockDB /var/lock/DAVLock
  553. </IfModule>
  554. <IfModule mod_include.c>
  555. #    XBitHack on
  556. </IfModule>
  557. #
  558. # This should be changed to whatever you set DocumentRoot to.
  559. #
  560. #### phpMyAdmin
  561. <Directory /usr/src/apache_1.3.26/htdocs/phpMyAdmin>
  562. #
  563. # This may also be "None", "All", or any combination of "Indexes",
  564. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  565. #
  566. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  567. # doesn't give it to you.
  568. #
  569.     Options -Indexes FollowSymLinks MultiViews
  570. #
  571. # This controls which options the .htaccess files in directories can
  572. # override. Can also be "All", or any combination of "Options", "FileInfo",  
  573. # "AuthConfig", and "Limit"
  574. #
  575.     AllowOverride All
  576. #
  577. # Controls who can get stuff from this server.
  578. #
  579.     Order allow,deny
  580.     Allow from all
  581. </Directory>
  582. #### localhost
  583. <Directory /var/www/>
  584. #
  585. # This may also be "None", "All", or any combination of "Indexes",
  586. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  587. #
  588. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  589. # doesn't give it to you.
  590. #
  591.     Options -Indexes FollowSymLinks MultiViews
  592. #
  593. # This controls which options the .htaccess files in directories can
  594. # override. Can also be "All", or any combination of "Options", "FileInfo",  
  595. # "AuthConfig", and "Limit"
  596. #
  597.     AllowOverride All
  598. #
  599. # Controls who can get stuff from this server.
  600. #
  601.     Order allow,deny
  602.     Allow from all
  603. </Directory>
  604. <Directory /var/www/perl>
  605.     AllowOverride All
  606.     Options -Indexes FollowSymLinks MultiViews ExecCGI
  607.     Order allow,deny
  608.     Allow from all
  609. </Directory>
  610. <Directory /var/www/cgi-bin>
  611.     AllowOverride All
  612.     Options ExecCGI
  613. </Directory>
  614. <Directory /var/www/protected-cgi-bin>
  615.     AllowOverride None
  616.     Options ExecCGI
  617.     Order deny,allow
  618.     Deny from all
  619.     Allow from 127.0.0.1
  620.     #allow from .your_domain.com
  621. </Directory>
  622. #
  623. # Control access to UserDir directories.  The following is an example
  624. # for a site where these directories are restricted to read-only.
  625. #
  626. #<Directory /home/*/public_html>
  627. #    AllowOverride FileInfo AuthConfig Limit
  628. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  629. #    <Limit GET POST OPTIONS PROPFIND>
  630. #        Order allow,deny
  631. #        Allow from all
  632. #    </Limit>
  633. #    <LimitExcept GET POST OPTIONS PROPFIND>
  634. #        Order deny,allow
  635. #        Deny from all
  636. #    </LimitExcept>
  637. #</Directory>
  638. # These settings are pretty flexible, and allow for Frontpage and XSSI
  639. <Directory /home/*/public_html>
  640.     AllowOverride All
  641.     Options MultiViews -Indexes Includes FollowSymLinks
  642.     Order allow,deny
  643.     Allow from all
  644. </Directory>
  645. <Directory /home/*/public_html/cgi-bin>
  646.      Options +ExecCGI -Includes -Indexes
  647.      SetHandler cgi-script
  648. </Directory>
  649. <IfModule mod_perl.c>
  650.     <Directory /home/*/public_html/perl>
  651. SetHandler perl-script
  652. PerlHandler Apache::PerlRun
  653. Options -Indexes ExecCGI
  654. PerlSendHeader On
  655.     </Directory>
  656. </IfModule>
  657. <Directory /var/www/icons>
  658.     Options -Indexes MultiViews
  659.     AllowOverride None
  660.     Order allow,deny
  661.     Allow from all
  662. </Directory>
  663. <Directory /usr/share/doc>
  664.     Options Indexes FollowSymLinks
  665.     Order deny,allow
  666.     Deny from all
  667.     Allow from 127.0.0.1
  668.     #allow from .your_domain.com
  669. </Directory>
  670. <Directory /var/www/html/addon-modules>
  671.     Options Indexes FollowSymLinks
  672. </Directory>
  673. <Location /index.shtml>
  674.     Options +Includes
  675. </Location>
  676. <IfModule mod_perl.c>
  677.     PerlModule Apache::Registry
  678.      
  679.     #set Apache::Registry Mode for /perl Alias
  680.     <Location /perl/*.pl>
  681. SetHandler perl-script
  682. PerlHandler Apache::Registry
  683. Options -Indexes ExecCGI
  684. PerlSendHeader On
  685.     </Location>
  686.     #set Apache::PerlRun Mode for /cgi-perl Alias
  687.     <Location /cgi-perl/*.pl>
  688. SetHandler perl-script
  689. PerlHandler Apache::PerlRun
  690. Options -Indexes ExecCGI
  691. PerlSendHeader On
  692.     </Location>
  693. </IfModule>


 
 
 


---------------
Linuxois1 ex- Linuxois pour perte de mot de passe et @ adresse mail n'existant plus.
n°262422
linuxois1
acharnement = réussite
Posté le 14-05-2003 à 23:08:58  profilanswer
 

++Taz a écrit :

****** fais pas *****, prends ton konqueror va dans ce ****** de répertoire, vire tout, fais clique-droit->Nouveau Fichier et reclic-droit ouvrir avec et voilà


 
C'est un pb de configuration simplement. Voici les 2 fichiers à configurer. Dans httpd.conf, commente #DocumentRoot /var/www/html
 

Code :
  1. ################# Vhosts.conf
  2. #This is where we store the VirtualHosts configuration.
  3. #
  4. Port 80
  5. ServerRoot /etc/httpd
  6. ResourceConfig /dev/null
  7. AccessConfig /dev/null
  8. #### localhost
  9. ################# IP-based Virtual Hosts
  10. NameVirtualHost 127.0.0.1>
  11. <VirtualHost 127.0.0.1>
  12. # ServerAdmin hostname@tondomaine
  13. DocumentRoot /var/www
  14. ServerName localhost
  15. #ErrorLogs /var/www/default-error_log
  16. #CustomLogs /var/www/default-access_log
  17. #ServerAlias 127.0.0.1
  18. #RewriteEngine On
  19. #RewriteOptions inherit
  20. </VirtualHost>


 

Code :
  1. ### Common server configuration
  2. #
  3. User apache
  4. Group apache
  5. #
  6. # ServerAdmin: Your address, where problems with the server should be
  7. # e-mailed.  This address appears on some server-generated pages, such
  8. # as error documents.
  9. #
  10. #ServerAdmin root@localhost
  11. # DocumentRoot: The directory out of which you will serve your
  12. # documents. By default, all requests are taken from this directory, but
  13. # symbolic links and aliases may be used to point to other locations.
  14. # DO NOT MODIFY THIS ONE, USE httpd.conf and httpd-perl.conf
  15. #DocumentRoot /var/www/html
  16. #
  17. # Each directory to which Apache has access, can be configured with respect
  18. # to which services and features are allowed and/or disabled in that
  19. # directory (and its subdirectories).
  20. #
  21. # First, we configure the "default" to be a very restrictive set of
  22. # permissions. 
  23. #
  24. # Also, for security, we disable indexes globally
  25. #
  26. #<Directory />
  27. #    Options -Indexes FollowSymLinks
  28. #    AllowOverride None
  29. #</Directory>
  30. #Restricted set of options
  31. <Directory />
  32.   Options -All -Multiviews
  33.   AllowOverride None
  34.   Order deny,allow
  35.   Deny from all
  36. </Directory>
  37. #
  38. # Note that from this point forward you must specifically allow
  39. # particular features to be enabled - so if something's not working as
  40. # you might expect, make sure that you have specifically enabled it
  41. # below.
  42. #
  43. #
  44. # UserDir: The name of the directory which is appended onto a user's home
  45. # directory if a ~user request is received.
  46. #
  47. <IfModule mod_userdir.c>
  48.     UserDir public_html
  49. </IfModule>
  50.    
  51. #
  52. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  53. # directory index.  Separate multiple entries with spaces.
  54. #
  55. <IfModule mod_dir.c>
  56.     DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm
  57. </IfModule>
  58. #
  59. # AccessFileName: The name of the file to look for in each directory
  60. # for access control information.
  61. #
  62. AccessFileName .htaccess
  63. #
  64. # The following lines prevent .htaccess files from being viewed by
  65. # Web clients.  Since .htaccess files often contain authorization
  66. # information, access is disallowed for security reasons.  Comment
  67. # these lines out if you want Web visitors to see the contents of
  68. # .htaccess files.  If you change the AccessFileName directive above,
  69. # be sure to make the corresponding changes here.
  70. #
  71. # Also, folks tend to use names such as .htpasswd for password
  72. # files, so this will protect those as well.
  73. #
  74. <Files ~ "^\.ht">
  75.     Order allow,deny
  76.     Deny from all
  77. </Files>
  78. #
  79. # CacheNegotiatedDocs: By default, Apache sends "Pragma: no-cache" with each
  80. # document that was negotiated on the basis of content. This asks proxy
  81. # servers not to cache the document. Uncommenting the following line disables
  82. # this behavior, and proxies will be allowed to cache the documents.
  83. #
  84. #CacheNegotiatedDocs
  85. #
  86. # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
  87. # Apache needs to construct a self-referencing URL (a URL that refers back
  88. # to the server the response is coming from) it will use ServerName and
  89. # Port to form a "canonical" name.  With this setting off, Apache will
  90. # use the hostname:port that the client supplied, when possible.  This
  91. # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
  92. #
  93. UseCanonicalName On
  94. #
  95. # TypesConfig describes where the mime.types file (or equivalent) is
  96. # to be found.
  97. #
  98. <IfModule mod_mime.c>
  99.     TypesConfig conf/apache-mime.types
  100. </IfModule>
  101. #
  102. # DefaultType is the default MIME type the server will use for a document
  103. # if it cannot otherwise determine one, such as from filename extensions.
  104. # If your server contains mostly text or HTML documents, "text/plain" is
  105. # a good value.  If most of your content is binary, such as applications
  106. # or images, you may want to use "application/octet-stream" instead to
  107. # keep browsers from trying to display binary files as though they are
  108. # text.
  109. #
  110. DefaultType text/plain
  111. #
  112. # The mod_mime_magic module allows the server to use various hints from the
  113. # contents of the file itself to determine its type.  The MIMEMagicFile
  114. # directive tells the module where the hint definitions are located.
  115. # mod_mime_magic is not part of the default server (you have to add
  116. # it yourself with a LoadModule [see the DSO paragraph in the 'Global
  117. # Environment' section], or recompile the server and include mod_mime_magic
  118. # as part of the configuration), so it's enclosed in an <IfModule> container.
  119. # This means that the MIMEMagicFile directive will only be processed if the
  120. # module is part of the server.
  121. #
  122. <IfModule mod_mime_magic.c>
  123.     MIMEMagicFile conf/magic
  124. </IfModule>
  125. #
  126. # HostnameLookups: Log the names of clients or just their IP addresses
  127. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  128. # The default is off because it'd be overall better for the net if people
  129. # had to knowingly turn this feature on, since enabling it means that
  130. # each client request will result in AT LEAST one lookup request to the
  131. # nameserver.
  132. #
  133. HostnameLookups Off
  134. # The following directives define some format nicknames for use with
  135. # a CustomLog directive (see below).
  136. #
  137. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  138. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  139. LogFormat "%{Referer}i -> %U" referer
  140. LogFormat "%{User-agent}i" agent
  141. LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script
  142. LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" VLOG=%{VLOG}e" vhost
  143. #
  144. # The location and format of the access logfile (Common Logfile Format).
  145. #CustomLog logs/access_log common
  146. #
  147. # If you would like to have agent and referer logfiles, uncomment the
  148. # following directives.
  149. #
  150. #CustomLog logs/referer_log referer
  151. #CustomLog logs/agent_log agent
  152. #
  153. # If you prefer a single logfile with access, agent, and referer information
  154. # (Combined Logfile Format) you can use the following directive.
  155. #
  156. #CustomLog logs/access_log combined
  157. #
  158. # Optionally add a line containing the server version and virtual host
  159. # name to server-generated pages (error documents, FTP directory listings,
  160. # mod_status and mod_info output etc., but not CGI generated documents).
  161. # Set to "EMail" to also include a mailto: link to the ServerAdmin.
  162. # Set to one of:  On | Off | EMail
  163. #
  164. ServerSignature On
  165. #
  166. # Aliases: Add here as many aliases as you need (with no limit). The format is
  167. # Alias fakename realname
  168. #
  169. <IfModule mod_alias.c>
  170.     #
  171.     # Note that if you include a trailing / on fakename then the server will
  172.     # require it to be present in the URL.  So "/icons" isn't aliased in this
  173.     # example, only "/icons/"..
  174.     #
  175.     Alias /icons/ /var/www/icons/
  176.     Alias /doc /usr/share/doc
  177.     #
  178.     # ScriptAlias: This controls which directories contain server scripts.
  179.     # ScriptAliases are essentially the same as Aliases, except that
  180.     # documents in the realname directory are treated as applications and
  181.     # run by the server when requested rather than as documents sent to the client.
  182.     # The same rules about trailing "/" apply to ScriptAlias directives as to
  183.     # Alias.
  184.     #
  185.     ScriptAlias /cgi-bin/ /var/www/cgi-bin/
  186.     ScriptAlias /protected-cgi-bin/ /var/www/protected-cgi-bin/
  187.     <IfModule mod_perl.c>
  188. #Provide two aliases to the same cgi-bin directory,
  189. #to see the effects of the 2 different mod_perl modes
  190. #for Apache::Registry Mode
  191. Alias /perl/ /var/www/perl/
  192. #for Apache::Perlrun Mode
  193. Alias /cgi-perl/ /var/www/perl/
  194.     </IfModule>
  195. </IfModule>
  196. # End of aliases.
  197. #
  198. # Redirect allows you to tell clients about documents which used to exist in
  199. # your server's namespace, but do not anymore. This allows you to tell the
  200. # clients where to look for the relocated document.
  201. # Format: Redirect old-URI new-URL
  202. #
  203. #
  204. # Directives controlling the display of server-generated directory listings.
  205. #
  206. <IfModule mod_autoindex.c>
  207.     #
  208.     # FancyIndexing is whether you want fancy directory indexing or standard
  209.     #
  210.     IndexOptions FancyIndexing
  211.     #
  212.     # AddIcon* directives tell the server which icon to show for different
  213.     # files or filename extensions.  These are only displayed for
  214.     # FancyIndexed directories.
  215.     #
  216.     AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  217.     AddIconByType (TXT,/icons/text.gif) text/*
  218.     AddIconByType (IMG,/icons/image2.gif) image/*
  219.     AddIconByType (SND,/icons/sound2.gif) audio/*
  220.     AddIconByType (VID,/icons/movie.gif) video/*
  221.     AddIcon /icons/binary.gif .bin .exe
  222.     AddIcon /icons/binhex.gif .hqx
  223.     AddIcon /icons/tar.gif .tar
  224.     AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  225.     AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .bz2
  226.     AddIcon /icons/a.gif .ps .ai .eps
  227.     AddIcon /icons/layout.gif .html .shtml .htm .pdf
  228.     AddIcon /icons/text.gif .txt
  229.     AddIcon /icons/c.gif .c
  230.     AddIcon /icons/p.gif .pl .py .php .php3
  231.     AddIcon /icons/f.gif .for
  232.     AddIcon /icons/dvi.gif .dvi
  233.     AddIcon /icons/uuencoded.gif .uu
  234.     AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  235.     AddIcon /icons/tex.gif .tex
  236.     AddIcon /icons/bomb.gif core
  237.     AddIcon /icons/back.gif ..
  238.     AddIcon /icons/hand.right.gif README
  239.     AddIcon /icons/folder.gif ^^DIRECTORY^^
  240.     AddIcon /icons/blank.gif ^^BLANKICON^^
  241.     #
  242.     # DefaultIcon is which icon to show for files which do not have an icon
  243.     # explicitly set.
  244.     #
  245.     DefaultIcon /icons/unknown.gif
  246.     #
  247.     # AddDescription allows you to place a short description after a file in
  248.     # server-generated indexes.  These are only displayed for FancyIndexed
  249.     # directories.
  250.     # Format: AddDescription "description" filename
  251.     #
  252.     #AddDescription "GZIP compressed document" .gz
  253.     #AddDescription "tar archive" .tar
  254.     #AddDescription "GZIP compressed tar archive" .tgz
  255.     #
  256.     # ReadmeName is the name of the README file the server will look for by
  257.     # default, and append to directory listings.
  258.     #
  259.     # HeaderName is the name of a file which should be prepended to
  260.     # directory indexes.  
  261.     #
  262.     # If MultiViews are amongst the Options in effect, the server will
  263.     # first look for name.html and include it if found.  If name.html
  264.     # doesn't exist, the server will then look for name.txt and include
  265.     # it as plaintext if found.
  266.     #
  267.     ReadmeName README
  268.     HeaderName HEADER
  269.     #
  270.     # IndexIgnore is a set of filenames which directory indexing should ignore
  271.     # and not include in the listing.  Shell-style wildcarding is permitted.
  272.     #
  273.     IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t
  274. </IfModule>
  275. # End of indexing directives.
  276. #
  277. # Document types.
  278. #
  279. <IfModule mod_mime.c>
  280.     #
  281.     # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  282.     # information on the fly. Note: Not all browsers support this.
  283.     # Despite the name similarity, the following Add* directives have nothing
  284.     # to do with the FancyIndexing customization directives above.
  285.     #
  286.     AddEncoding x-compress Z
  287.     AddEncoding x-gzip gz tgz
  288.     #
  289.     # AddLanguage allows you to specify the language of a document. You can
  290.     # then use content negotiation to give a browser a file in a language
  291.     # it can understand.   
  292.     #
  293.     # Note 1: The suffix does not have to be the same as the language  
  294.     # keyword --- those with documents in Polish (whose net-standard  
  295.     # language code is pl) may wish to use "AddLanguage pl .po" to  
  296.     # avoid the ambiguity with the common suffix for perl scripts.
  297.     #
  298.     # Note 2: The example entries below illustrate that in quite
  299.     # some cases the two character 'Language' abbreviation is not
  300.     # identical to the two character 'Country' code for its country,
  301.     # E.g. 'Danmark/dk' versus 'Danish/da'.
  302.     #
  303.     # Note 3: In the case of 'ltz' we violate the RFC by using a three char  
  304.     # specifier. But there is 'work in progress' to fix this and get  
  305.     # the reference data for rfc1766 cleaned up.
  306.     #
  307.     # Danish (da) - Dutch (nl) - English (en) - Estonian (ee)
  308.     # French (fr) - German (de) - Greek-Modern (el)
  309.     # Italian (it) - Korean (kr) - Norwegian (no)
  310.     # Portugese (pt) - Luxembourgeois* (ltz)
  311.     # Spanish (es) - Swedish (sv) - Catalan (ca) - Czech(cz)
  312.     # Polish (pl) - Brazilian Portuguese (pt-br) - Japanese (ja)
  313.     # Russian (ru)
  314.     #
  315.     AddLanguage da .dk
  316.     AddLanguage nl .nl
  317.     AddLanguage en .en
  318.     AddLanguage et .ee
  319.     AddLanguage fr .fr
  320.     AddLanguage de .de
  321.     AddLanguage el .el
  322.     AddLanguage he .he
  323.     AddCharset ISO-8859-8 .iso8859-8
  324.     AddLanguage it .it
  325.     AddLanguage ja .ja
  326.     AddCharset ISO-2022-JP .jis
  327.     AddLanguage kr .kr
  328.     AddCharset ISO-2022-KR .iso-kr
  329.     AddLanguage no .no
  330.     AddLanguage pl .po
  331.     AddCharset ISO-8859-2 .iso-pl
  332.     AddLanguage pt .pt
  333.     AddLanguage pt-br .pt-br
  334.     AddLanguage ltz .lu
  335.     AddLanguage ca .ca
  336.     AddLanguage es .es
  337.     AddLanguage sv .se
  338.     AddLanguage cz .cz
  339.     AddLanguage ru .ru
  340.     AddLanguage zh-tw .tw
  341.     AddLanguage tw .tw
  342.     AddCharset Big5         .Big5    .big5
  343.     AddCharset WINDOWS-1251 .cp-1251
  344.     AddCharset CP866        .cp866
  345.     AddCharset ISO-8859-5   .iso-ru
  346.     AddCharset KOI8-R       .koi8-r
  347.     AddCharset UCS-2        .ucs2
  348.     AddCharset UCS-4        .ucs4
  349.     AddCharset UTF-8        .utf8
  350.     # LanguagePriority allows you to give precedence to some languages
  351.     # in case of a tie during content negotiation.
  352.     #
  353.     # Just list the languages in decreasing order of preference. We have
  354.     # more or less alphabetized them here. You probably want to change this.
  355.     #
  356.     <IfModule mod_negotiation.c>
  357.         LanguagePriority en fr de es it da nl et el ja kr no pl pt pt-br ru ltz ca sv tw
  358.     </IfModule>
  359.     #
  360.     # AddType allows you to tweak mime.types without actually editing it, or to
  361.     # make certain files to be certain types.
  362.     #
  363.     # For example, the PHP 3.x module (not part of the Apache distribution - see
  364.     # http://www.php.net) will typically use:
  365.     #
  366.     #AddType application/x-httpd-php3 .php3
  367.     #AddType application/x-httpd-php3-source .phps
  368.     #
  369.     # And for PHP 4.x, use:
  370.     #
  371.     #AddType application/x-httpd-php .php
  372.     #AddType application/x-httpd-php-source .phps
  373.     AddType application/x-tar .tgz
  374.     #
  375.     # AddHandler allows you to map certain file extensions to "handlers",
  376.     # actions unrelated to filetype. These can be either built into the server
  377.     # or added with the Action command (see below)
  378.     #
  379.     # If you want to use server side includes, or CGI outside
  380.     # ScriptAliased directories, uncomment the following lines.
  381.     #
  382.     # To use CGI scripts:
  383.     #
  384.     AddHandler cgi-script .cgi
  385.     #
  386.     # To use server-parsed HTML files
  387.     #
  388.     AddType text/html .shtml
  389.     AddHandler server-parsed .shtml
  390.     #
  391.     # Uncomment the following line to enable Apache's send-asis HTTP file
  392.     # feature
  393.     #
  394.     #AddHandler send-as-is asis
  395.     #
  396.     # If you wish to use server-parsed imagemap files, use
  397.     #
  398.     AddHandler imap-file map
  399.     #
  400.     # To enable type maps, you might want to use
  401.     #
  402.     #AddHandler type-map var
  403. </IfModule>
  404. # End of document types.
  405. #
  406. # Action lets you define media types that will execute a script whenever
  407. # a matching file is called. This eliminates the need for repeated URL
  408. # pathnames for oft-used CGI file processors.
  409. # Format: Action media/type /cgi-script/location
  410. # Format: Action handler-name /cgi-script/location
  411. #
  412. #
  413. # MetaDir: specifies the name of the directory in which Apache can find
  414. # meta information files. These files contain additional HTTP headers
  415. # to include when sending the document
  416. #
  417. #MetaDir .web
  418. #
  419. # MetaSuffix: specifies the file name suffix for the file containing the
  420. # meta information.
  421. #
  422. #MetaSuffix .meta
  423. #
  424. # Customizable error response (Apache style)
  425. #  these come in three flavors
  426. #
  427. #    1) plain text
  428. #ErrorDocument 500 "The server made a boo boo.
  429. #  n.b.  the single leading (" ) marks it as text, it does not get output
  430. #
  431. #    2) local redirects
  432. #ErrorDocument 404 /missing.html
  433. #  to redirect to local URL /missing.html
  434. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  435. #  N.B.: You can redirect to a script or a document using server-side-includes.
  436. #
  437. #    3) external redirects
  438. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  439. #  N.B.: Many of the environment variables associated with the original
  440. #  request will *not* be available to such a script.
  441. <Location /manual>
  442. Options Multiviews
  443. ErrorDocument 404 "The document you requested has not been installed on your system. Please install the apache-manual package.
  444. </Location>
  445. #
  446. # Customize behaviour based on the browser
  447. #
  448. <IfModule mod_setenvif.c>
  449.     #
  450.     # The following directives modify normal HTTP response behavior.
  451.     # The first directive disables keepalive for Netscape 2.x and browsers that
  452.     # spoof it. There are known problems with these browser implementations.
  453.     # The second directive is for Microsoft Internet Explorer 4.0b2
  454.     # which has a broken HTTP/1.1 implementation and does not properly
  455.     # support keepalive when it is used on 301 or 302 (redirect) responses.
  456.     #
  457.     BrowserMatch "Mozilla/2" nokeepalive
  458.     BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  459.     #
  460.     # The following directive disables HTTP/1.1 responses to browsers which
  461.     # are in violation of the HTTP/1.0 spec by not being able to grok a
  462.     # basic 1.1 response.
  463.     #
  464.     BrowserMatch "RealPlayer 4\.0" force-response-1.0
  465.     BrowserMatch "Java/1\.0" force-response-1.0
  466.     BrowserMatch "JDK/1\.0" force-response-1.0
  467. </IfModule>
  468. # End of browser customization directives
  469. #
  470. # Allow server status reports, with the URL of http://servername/server-status
  471. # Change the ".your_domain.com" to match your domain to enable.
  472. #
  473. <IfModule mod_status.c>
  474.     <Location /server-status>
  475.         SetHandler server-status
  476.         Order deny,allow
  477.         Deny from all
  478.         allow from 127.0.0.1
  479.         #Allow from .your_domain.com
  480.     </Location>
  481. #
  482. # ExtendedStatus controls whether Apache will generate "full" status
  483. # information (ExtendedStatus On) or just basic information (ExtendedStatus
  484. # Off) when the "server-status" handler is called. The default is Off.
  485. #
  486. #ExtendedStatus On
  487. </IfModule>
  488. #
  489. # Allow remote server configuration reports, with the URL of
  490. # http://servername/server-info (requires that mod_info.c be loaded).
  491. # Change the ".your_domain.com" to match your domain to enable.
  492. #
  493. <IfModule mod_info.c>
  494.     <Location /server-info>
  495. SetHandler server-info
  496. Order deny,allow
  497. Deny from all
  498. Allow from .your_domain.com
  499.     </Location>
  500. </IfModule>
  501. <IfModule mod_perl.c>
  502.     <Location /perl-status>
  503. SetHandler perl-script
  504. PerlHandler Apache::Status
  505. Order deny,allow
  506. Deny from all
  507. Allow from 127.0.0.1
  508.     </Location>
  509. </IfModule>
  510. #
  511. # There have been reports of people trying to abuse an old bug from pre-1.1
  512. # days.  This bug involved a CGI script distributed as a part of Apache.
  513. # By uncommenting these lines you can redirect these attacks to a logging  
  514. # script on phf.apache.org.  Or, you can record them yourself, using the script
  515. # support/phf_abuse_log.cgi.
  516. #
  517. #<Location /cgi-bin/phf*>
  518. #    Deny from all
  519. #    ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
  520. #</Location>
  521. #
  522. # Proxy Server directives. Uncomment the following lines to
  523. # enable the proxy server:
  524. #
  525. #<IfModule mod_proxy.c>
  526. #    ProxyRequests On
  527. #    <Directory proxy:*>
  528. #        Order deny,allow
  529. #        Deny from all
  530. #        Allow from .your_domain.com
  531. #    </Directory>
  532.     #
  533.     # Enable/disable the handling of HTTP/1.1 "Via:" headers.
  534.     # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
  535.     # Set to one of: Off | On | Full | Block
  536.     #
  537. #    ProxyVia On
  538.     #
  539.     # To enable the cache as well, edit and uncomment the following lines:
  540.     # (no cacheing without CacheRoot)
  541.     #
  542. #    CacheRoot /var/cache/httpd
  543. #    CacheSize 5
  544. #    CacheGcInterval 4
  545. #    CacheMaxExpire 24
  546. #    CacheLastModifiedFactor 0.1
  547. #    CacheDefaultExpire 1
  548. #    NoCache a_domain.com another_domain.edu joes.garage_sale.com
  549. #</IfModule>
  550. # End of proxy directives.
  551. <IfModule mod_dav.c>
  552. #    DavLockDB /var/lock/DAVLock
  553. </IfModule>
  554. <IfModule mod_include.c>
  555. #    XBitHack on
  556. </IfModule>
  557. #
  558. # This should be changed to whatever you set DocumentRoot to.
  559. #
  560. #### phpMyAdmin
  561. <Directory /usr/src/apache_1.3.26/htdocs/phpMyAdmin>
  562. #
  563. # This may also be "None", "All", or any combination of "Indexes",
  564. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  565. #
  566. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  567. # doesn't give it to you.
  568. #
  569.     Options -Indexes FollowSymLinks MultiViews
  570. #
  571. # This controls which options the .htaccess files in directories can
  572. # override. Can also be "All", or any combination of "Options", "FileInfo",  
  573. # "AuthConfig", and "Limit"
  574. #
  575.     AllowOverride All
  576. #
  577. # Controls who can get stuff from this server.
  578. #
  579.     Order allow,deny
  580.     Allow from all
  581. </Directory>
  582. #### localhost
  583. <Directory /var/www/>
  584. #
  585. # This may also be "None", "All", or any combination of "Indexes",
  586. # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
  587. #
  588. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  589. # doesn't give it to you.
  590. #
  591.     Options -Indexes FollowSymLinks MultiViews
  592. #
  593. # This controls which options the .htaccess files in directories can
  594. # override. Can also be "All", or any combination of "Options", "FileInfo",  
  595. # "AuthConfig", and "Limit"
  596. #
  597.     AllowOverride All
  598. #
  599. # Controls who can get stuff from this server.
  600. #
  601.     Order allow,deny
  602.     Allow from all
  603. </Directory>
  604. <Directory /var/www/perl>
  605.     AllowOverride All
  606.     Options -Indexes FollowSymLinks MultiViews ExecCGI
  607.     Order allow,deny
  608.     Allow from all
  609. </Directory>
  610. <Directory /var/www/cgi-bin>
  611.     AllowOverride All
  612.     Options ExecCGI
  613. </Directory>
  614. <Directory /var/www/protected-cgi-bin>
  615.     AllowOverride None
  616.     Options ExecCGI
  617.     Order deny,allow
  618.     Deny from all
  619.     Allow from 127.0.0.1
  620.     #allow from .your_domain.com
  621. </Directory>
  622. #
  623. # Control access to UserDir directories.  The following is an example
  624. # for a site where these directories are restricted to read-only.
  625. #
  626. #<Directory /home/*/public_html>
  627. #    AllowOverride FileInfo AuthConfig Limit
  628. #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  629. #    <Limit GET POST OPTIONS PROPFIND>
  630. #        Order allow,deny
  631. #        Allow from all
  632. #    </Limit>
  633. #    <LimitExcept GET POST OPTIONS PROPFIND>
  634. #        Order deny,allow
  635. #        Deny from all
  636. #    </LimitExcept>
  637. #</Directory>
  638. # These settings are pretty flexible, and allow for Frontpage and XSSI
  639. <Directory /home/*/public_html>
  640.     AllowOverride All
  641.     Options MultiViews -Indexes Includes FollowSymLinks
  642.     Order allow,deny
  643.     Allow from all
  644. </Directory>
  645. <Directory /home/*/public_html/cgi-bin>
  646.      Options +ExecCGI -Includes -Indexes
  647.      SetHandler cgi-script
  648. </Directory>
  649. <IfModule mod_perl.c>
  650.     <Directory /home/*/public_html/perl>
  651. SetHandler perl-script
  652. PerlHandler Apache::PerlRun
  653. Options -Indexes ExecCGI
  654. PerlSendHeader On
  655.     </Directory>
  656. </IfModule>
  657. <Directory /var/www/icons>
  658.     Options -Indexes MultiViews
  659.     AllowOverride None
  660.     Order allow,deny
  661.     Allow from all
  662. </Directory>
  663. <Directory /usr/share/doc>
  664.     Options Indexes FollowSymLinks
  665.     Order deny,allow
  666.     Deny from all
  667.     Allow from 127.0.0.1
  668.     #allow from .your_domain.com
  669. </Directory>
  670. <Directory /var/www/html/addon-modules>
  671.     Options Indexes FollowSymLinks
  672. </Directory>
  673. <Location /index.shtml>
  674.     Options +Includes
  675. </Location>
  676. <IfModule mod_perl.c>
  677.     PerlModule Apache::Registry
  678.      
  679.     #set Apache::Registry Mode for /perl Alias
  680.     <Location /perl/*.pl>
  681. SetHandler perl-script
  682. PerlHandler Apache::Registry
  683. Options -Indexes ExecCGI
  684. PerlSendHeader On
  685.     </Location>
  686.     #set Apache::PerlRun Mode for /cgi-perl Alias
  687.     <Location /cgi-perl/*.pl>
  688. SetHandler perl-script
  689. PerlHandler Apache::PerlRun
  690. Options -Indexes ExecCGI
  691. PerlSendHeader On
  692.     </Location>
  693. </IfModule>


 
 
 


---------------
Linuxois1 ex- Linuxois pour perte de mot de passe et @ adresse mail n'existant plus.
n°262428
ptitoine
Posté le 14-05-2003 à 23:28:30  profilanswer
 

linuxois1 a écrit :


 
C'est un pb de configuration simplement. Voici les 2 fichiers à configurer. Dans httpd.conf, commente #DocumentRoot /var/www/html


 
prk faire un vhost ???
 
met ton document root a pointer vers le bon rep ( a priori tu l'as deja fait ) puis créer la directive apache pour le laisser acceder de rep
 

Code :
  1. <Directory /var/www/html/test>
  2.       Options -Indexes MultiViews # la tu met ce que tu veux
  3.       AllowOverride All
  4.       Order allow,deny
  5.       Allow from all
  6. </Directory>


 
linuxois j'espere que c'est pas un serveur prod ton httpd.conf et pas vraiment optimisé ;)

n°262470
linuxois1
acharnement = réussite
Posté le 15-05-2003 à 07:49:05  profilanswer
 

ptitoine a écrit :


 
prk faire un vhost ???
 
met ton document root a pointer vers le bon rep ( a priori tu l'as deja fait ) puis créer la directive apache pour le laisser acceder de rep
 

Code :
  1. <Directory /var/www/html/test>
  2.       Options -Indexes MultiViews # la tu met ce que tu veux
  3.       AllowOverride All
  4.       Order allow,deny
  5.       Allow from all
  6. </Directory>


 
linuxois j'espere que c'est pas un serveur prod ton httpd.conf et pas vraiment optimisé ;)


 
Si, que lui reproche tu ?


---------------
Linuxois1 ex- Linuxois pour perte de mot de passe et @ adresse mail n'existant plus.
n°262471
cell du xb​oxlive
Posté le 15-05-2003 à 07:56:21  profilanswer
 

maintenant apache me met comme erreur :
Parse error: parse error, unexpected T_ECHO in /var/www/html/test/test.php on line 3
 
 
 
C le php le pb?

n°262474
cell du xb​oxlive
Posté le 15-05-2003 à 08:19:57  profilanswer
 

c t pr vous dire que finalement ca marche, en fait le pb c t que kan je rentrais le code je le n'ecrisvais pas en ligne.
Je fais comme ca :
<html>
?>
alors kil faut faire <html>?>
 
 
voila le prob idiot mais bon ca marche !!!

n°262504
ptitoine
Posté le 15-05-2003 à 10:12:49  profilanswer
 

linuxois1 a écrit :


 
Si, que lui reproche tu ?


 
Apache charge en memoire ton httpd.conf au demarrage du daemon donc plus ton fichier est de taille reduire mieux c'est, vire donc tout les commentaires, directives et surtout les modules inutiles.
 
tiens j'avais donné ma config d'apache 1.3.x sur un serveur win2k ( y'a presque pas de changement sous *nix )
http://forum.hardware.fr/forum2.ph [...] h=&subcat=


Message édité par ptitoine le 15-05-2003 à 10:19:04
n°262505
ptitoine
Posté le 15-05-2003 à 10:16:08  profilanswer
 

cell du xboxlive a écrit :

c t pr vous dire que finalement ca marche, en fait le pb c t que kan je rentrais le code je le n'ecrisvais pas en ligne.
Je fais comme ca :
<html>
?>
alors kil faut faire <html>?>
 
 
voila le prob idiot mais bon ca marche !!!


 
bien zarb ton truc la syntaxe php avec du html est comme ca

Code :
  1. <html>
  2. <head>
  3. <title>ton titre</title>
  4. </head>
  5. <body>
  6. ......
  7. <?php
  8. echo 'cool';
  9. ?>
  10. ......
  11. </body>
  12. </html>

n°262513
linuxois1
acharnement = réussite
Posté le 15-05-2003 à 10:50:47  profilanswer
 

ptitoine a écrit :


 
Apache charge en memoire ton httpd.conf au demarrage du daemon donc plus ton fichier est de taille reduire mieux c'est, vire donc tout les commentaires, directives et surtout les modules inutiles.
 
tiens j'avais donné ma config d'apache 1.3.x sur un serveur win2k ( y'a presque pas de changement sous *nix )
http://forum.hardware.fr/forum2.ph [...] h=&subcat=


 
Merci mais comment savoir quels sont les modules inutiles des modeles utils ? J'utilise phpMyAdmin + Qmail qui utilise perl.


---------------
Linuxois1 ex- Linuxois pour perte de mot de passe et @ adresse mail n'existant plus.
n°262566
cell du xb​oxlive
Posté le 15-05-2003 à 11:57:56  profilanswer
 

g donc crer mon fichier test.php dans /var/www/html/test/ et c bon je vois cette page, ca marche kan je vais dans ce lien : http://localhost/test/test.php
 
Mais kan je vais dans cette page http://localhost/test/ et ben apache me met :
 
Forbidden
 
 
You don't have permission to access /test/ on this server.
 
Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1 Server at 127.0.0.1 Port 80
 
 
 
Normalement je dois aller dans cette page pr voir le contenu du sous repertoire /var/www/html/test/ mais je comprends pas pk il me dit que g pas la permission.Je suis pourtant en root dans la Konsole...

n°262574
cell du xb​oxlive
Posté le 15-05-2003 à 12:15:39  profilanswer
 

ca me fait l'erreur 403 quoi...

n°262603
ptitoine
Posté le 15-05-2003 à 12:53:13  profilanswer
 

403 : document inexistant normal, si le document n'est pas precisé apache lance ceux indiqué dans la directive DirectoryIndex
 
voila celle de linuxois pour exemple
 

DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm


 
> linuxois voila la page des differents modules d'apache (2) http://httpd.apache.org/docs-2.0/mod/


Message édité par ptitoine le 15-05-2003 à 12:54:21
n°262623
cell du xb​oxlive
Posté le 15-05-2003 à 13:23:32  profilanswer
 

ptitoine a écrit :

403 : document inexistant normal, si le document n'est pas precisé apache lance ceux indiqué dans la directive DirectoryIndex
 
voila celle de linuxois pour exemple
 

DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm


 
> linuxois voila la page des differents modules d'apache (2) http://httpd.apache.org/docs-2.0/mod/


 
 
 
Ben moi ca me dit que je n'ai pas la permission je ne c pas pk, c pas parce que y a un document inexistant mdr

n°262661
cell du xb​oxlive
Posté le 15-05-2003 à 14:24:15  profilanswer
 

il me dit que y a l'erreur "403 Forbidden".
Est-ce que savez coment faire pr que ca y soit plus?

n°262666
Popop56
56
Posté le 15-05-2003 à 14:29:13  profilanswer
 

Citation :

DirectoryIndex index.html index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm


 
INDEX ! kézako cell?
Ton doit doit etre sous le nom index.html, index.php... pour pouvoir y acceder par http://localhost/test/

n°262670
Popop56
56
Posté le 15-05-2003 à 14:34:02  profilanswer
 

403: The HTTP server understood the request, but is refusing to fulfill it.
This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable (for example the server is an Intranet and only the LAN machines are authorized to connect).
 
Ou si tu est alergique à l'anglais:
 
Interdit Le serveur HTTP a compris la requête, mais refuse de la traiter.
Ce code est généralement utilisé lorsqu'un serveur ne souhaite pas indiquer pourquoi la requête a été rejetée, ou lorsqu'aucune autre réponse ne correspond (par exemple le serveur est un Intranet et seules les machines du réseau local sont autorisées à se connecter au serveur).


Message édité par Popop56 le 15-05-2003 à 14:34:39
n°262674
cell du xb​oxlive
Posté le 15-05-2003 à 14:39:13  profilanswer
 

bin moi g fait des trucs comme test.php et etc pas des trucs avec index.html ou index.php !
decidement apache et moi sont incompatibles ou alors il m'en veut mdr

n°262675
Popop56
56
Posté le 15-05-2003 à 14:43:19  profilanswer
 

cp /var/www/html/test/test.php /var/www/html/test/index.php  
comme ca tout marchera.
 
PS: [:angelface]  

n°262687
cell du xb​oxlive
Posté le 15-05-2003 à 14:59:02  profilanswer
 

ben kan je cree un fichier index.php je le vois dans http://localhost/test mais je vois pas la liste des fichiers que g dans le sous repertoire /var/www/html/test/.
Ton truc marche pas Popop56 , moi g creer le sous /var/www/html/test/ et les fichiers test.php et index.php mais il c rien passe...

n°262700
cell du xb​oxlive
Posté le 15-05-2003 à 15:26:47  profilanswer
 

Popop56 a écrit :

cp /var/www/html/test/test.php /var/www/html/test/index.php  
comme ca tout marchera.
 
PS: [:angelface]  
 


 
 
kan je fais ce ke tu me dis, il me met  :
 
[root@localhost cell]# cp /var/www/html/test/test.php /var/www/html/test/index.php  
cp: Lors de la copie de plusieurs fichiers:
le dernier argument ` ' n'est pas un répertoire.
Pour en savoir davantage, faites: « cp --help ».
   
 
 
...

n°262710
cell du xb​oxlive
Posté le 15-05-2003 à 15:38:48  profilanswer
 

j'aimerais ke kan j'ailles sur http://localhost/test/ je voille la liste des fichiers qui sont dans le sous repertoire /var/www/html/test/ .
G cree un fichier test.php et aussi un fichier index.php.J'arrive a voir le fichier index.php kan je vais dans http://localhost/test/ mais je ne vois aps de liste.Peut etre kil faut mettre d'autres fichiers mais je ne vois pas koi faire?

n°262717
ptitoine
Posté le 15-05-2003 à 15:49:01  profilanswer
 

non ca c'est le mod_autoindex d'apache
 
tu as quelle distrib ?

n°262719
cell du xb​oxlive
Posté le 15-05-2003 à 15:54:50  profilanswer
 

Mandrake Linux 9.1

n°262720
com21
real men don't click
Posté le 15-05-2003 à 15:58:50  profilanswer
 

bah  
 
/var/log/httpd
 
 
 
c util....


---------------
Cherche geekette | Traquez vos billets d'€ | Don du sang | Don de moelle osseuse
n°262721
cell du xb​oxlive
Posté le 15-05-2003 à 15:59:30  profilanswer
 

attends va pas trop vite je tape ca ou?

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Précédente

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

  Probleme avec Apache : /

 

Sujets relatifs
[APACHE] problème avec les répertoires utilisateurs RESOLUProblème avec RedHat 8.0 + Apache +PHP
[apache] petit probleme de confApache 1.3.27 sous RedHat 8 : problème de configuration
[MDK] Problème avec le document root de mon apacheprobleme bizzard ss apache
Reiser FS & Apache ... problème ?Problème avec apache sous mandrake 8.2
php/apache/unix probleme d include imbriquéApache probleme avec libdb.so.2 sous debian unstable.
Plus de sujets relatifs à : Probleme avec Apache : /


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