par
Patriboom » 16 nov. 2007, 20:25
Bien sûr, je peux, mais c'est gros.
Quelle partie?
Voici le bas de la page, les allias:
Code : Tout sélectionner
### Alias EasyPHP
# !!! DO NOT REMOVE !!!
# ========================================
#alias
Alias "/Gestion" "c:/gestion/"
<Directory "c:/gestion">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
Allow from 127.0.0.1
deny from all
</Directory>
#alias
# ========================================
### Alias End
À peu près au tiers du fichier httpd.conf se trouve aussi ceci:
Code : Tout sélectionner
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://localhost/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
Alias /images_easyphp "${path}/home/images_easyphp"
Alias /home/mysql "${path}/phpmyadmin"
Alias /home/sqlite "${path}/sqlitemanager"
Alias /home "${path}/home"
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
<Directory "${path}/home/images_easyphp">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "${path}/phpmyadmin">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
<Directory "${path}/sqlitemanager">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
<Directory "${path}/home">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "${path}/cgi-bin/"
</IfModule>

Devrais-je activer ce traitement d'erreur
Code : Tout sélectionner
# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
...
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
Voici quelque chose qui semble une piste intéressante:
Code : Tout sélectionner
# ============================================================================
# Local access to the Apache HTTP Server Manual
#
# Provide access to the documentation on your server as
# http://yourserver.localhost/manual/
# The documentation is always available at
# http://httpd.apache.org/docs/2.2/
#
# Required modules: mod_alias, mod_setenvif, mod_negotiation
#
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ "${path}/apache/manual$1"
<Directory "${path}/apache/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru)){2,}(/.*)?$ /manual/$1$2
LanguagePriority en de es fr ja ko pt-br ru
ForceLanguagePriority Prefer Fallback
</Directory>
# ============================================================================
Merci pour le trouble que vous vous donnez déjà.
@Berzemus: oui j'ai essayé
http://192.168.0.213/Gestion/
@h0_noMan: je viens d'essayer
http://localhost/Gestion/
Dans les deux cas: "Firefox ne peut établir de connexion avec le serveur à l'adresse 192.168.0.213" et "Firefox ne peut établir de connexion avec le serveur à l'adresse localhost."
Bien sûr, je peux, mais c'est gros.
Quelle partie?
Voici le bas de la page, les allias:
[code]
### Alias EasyPHP
# !!! DO NOT REMOVE !!!
# ========================================
#alias
Alias "/Gestion" "c:/gestion/"
<Directory "c:/gestion">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
Allow from 127.0.0.1
deny from all
</Directory>
#alias
# ========================================
### Alias End
[/code]
À peu près au tiers du fichier httpd.conf se trouve aussi ceci:
[code]<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://localhost/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
Alias /images_easyphp "${path}/home/images_easyphp"
Alias /home/mysql "${path}/phpmyadmin"
Alias /home/sqlite "${path}/sqlitemanager"
Alias /home "${path}/home"
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
<Directory "${path}/home/images_easyphp">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "${path}/phpmyadmin">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
<Directory "${path}/sqlitemanager">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
<Directory "${path}/home">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "${path}/cgi-bin/"
</IfModule>
[/code]
:?: Devrais-je activer ce traitement d'erreur :?: [code]# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
...
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
[/code]
Voici quelque chose qui semble une piste intéressante:
[code]
# ============================================================================
# Local access to the Apache HTTP Server Manual
#
# Provide access to the documentation on your server as
# http://yourserver.localhost/manual/
# The documentation is always available at
# http://httpd.apache.org/docs/2.2/
#
# Required modules: mod_alias, mod_setenvif, mod_negotiation
#
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ "${path}/apache/manual$1"
<Directory "${path}/apache/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
<Files *.html>
SetHandler type-map
</Files>
SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br|ru)/ prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru)){2,}(/.*)?$ /manual/$1$2
LanguagePriority en de es fr ja ko pt-br ru
ForceLanguagePriority Prefer Fallback
</Directory>
# ============================================================================
[/code]
Merci pour le trouble que vous vous donnez déjà.
@Berzemus: oui j'ai essayé http://192.168.0.213/Gestion/
@h0_noMan: je viens d'essayer http://localhost/Gestion/
Dans les deux cas: "Firefox ne peut établir de connexion avec le serveur à l'adresse 192.168.0.213" et "Firefox ne peut établir de connexion avec le serveur à l'adresse localhost."