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
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>
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
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>
# ============================================================================
Ainsi ta configuration ne te permet d'accéder à ce dossier qu'en te connectant depuis ton serveur et non d'un poste client qui aura forcément une autre adresse ip que 127.0.0.1 (qui correspond à la machine locale) et qui sera donc rejetéAlias "/Gestion" "c:/gestion/" // redirige les urls du type /Gestion vers le dossier c:/gestion/
<Directory "c:/gestion">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
Allow from 127.0.0.1 // autorise l'accès aux machines dont l'adresse est 127.0.0.1 (cad le serveur)
deny from all // rejete toute les autres demandes
</Directory>
Code : Tout sélectionner
Order deny, allowCode : Tout sélectionner
Order deny,allow
deny from all
Allow from 127.0.0.1
Code : Tout sélectionner
allow from 127.0.0.1
deny from 127.0.0.2
allow from 127.0.0.3
deny from 127.0.0.4Code : Tout sélectionner
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.0.203
Allow from 192.168.0.204
Allow from 192.168.0.205
Allow from 192.168.0.206
Allow from 192.168.0.207
Allow from 192.168.0.208
Allow from 192.168.0.209
Allow from 192.168.0.210
Allow from 192.168.0.211
Allow from 192.168.0.212
Allow from 192.168.0.213
Allow from 192.168.0.214
Allow from 192.168.0.215
Allow from 192.168.0.216
Allow from 192.168.0.217
Satisfy all
</Directory>
Code : Tout sélectionner
DocumentRoot "C:/Gestion"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.0.203
Allow from 192.168.0.204
Allow from 192.168.0.205
Allow from 192.168.0.206
...
Allow from 192.168.0.217
Satisfy all
</Directory>
[b]<Directory "C:/Gestion">[/b]
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0.203
Allow from 192.168.0.204
Allow from 192.168.0.205
Allow from 192.168.0.206
...
Allow from 192.168.0.217
</Directory>