Sì ho visto ma non va...
Ti posto il pezzo del file httpd.conf che mi interessa:
Codice:
# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
<VirtualHost hostmio:80>
DocumentRoot "C:\HostMio"
ServerName hostmio
</VirtualHost>
<Directory "C:\HostMio">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin admin@localhost
#
# 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 localhost
#
# 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:\Apache"
#
# 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).
#
Io voglio che quando chiamo una pagina web da qualsiasi parte (localhost, LAN o internet) mi visualizzi C:\Apache e quando la chiamo con http://hostmio mi visualizzi C:\HostMio
Ovvio che per far corrispondere "hostmio" a 127.0.0.1 o 192.168.* ho aggiunto una riga nel file hosts.
Mi aiutate?
Grazie,
foreach