Accès à distance à partir d'autres PC
Bonjour tout le monde,
Je poste ce message aprés avoir mainte recherche sur le net.
Voila, j'ai fait un intranet pour la boite où je travail. J'ai récupérer un PC, j'ai installé WAMP 2.0 et je l'ai configurer. J'ai aussi appelé le PC "intranet". Jusqu'ici rien de spécial.
Sur le poste "intranet", j'arrive à faire les choses suivantes :
http://localhost/
http://intranet/
http://ip_du_poste/
http://intranet/phpmyadmin
Ce que je n'arrive pas à faire, par contre, c'est accéder à distance au serveur web par le nom du pc.
En fait, si je fais http://ip_du_pc/ : ça marche
Mais si je fais http://intranet/ : ça me renvoie vers une page internet me diasnt que le nom de domaine n'existe pas.
Est ce que quelqu'un a une idée ?
PS :
- j'ai désactivé le pare-feu sur le poste "intranet"
- j'ai mis "Listen 80" au lieu de "localhost:80"
- et le code <directory> dans httpd.conf est le suivant :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| #
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName intranet:80
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "c:/wamp/www/"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
#Options FollowSymLinks
#AllowOverride None
Order deny,allow
#Deny from all
Allow from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
#Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
#AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch> |