jeoff | Bonjour,
Je viens d'installer avec "succès" apache2 via Yast.
J'ai reconfiguré "default-server.conf".
Code :
- #
- # Global configuration that will be applicable for all virtual hosts, unless
- # deleted here, or overriden elswhere.
- #
- DocumentRoot "/srv/www/html"
- #
- # Configure the DocumentRoot
- #
- <Directory "/srv/www/html">
- # 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.0/mod/core.html#options
- # for more information.
- Options None
- # 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 None
- # Controls who can get stuff from this server.
- Order allow,deny
- Allow from all
- </Directory>
- # Aliases: aliases can be added as needed (with no limit). The format is
- # Alias fakename realname
- #
- # Note that if you include a trailing / on fakename then the server will
- # require it to be present in the URL. So "/icons" isn't aliased in this
- # example, only "/icons/". If the fakename is slash-terminated, then the
- # realname must also be slash terminated, and if the fakename omits the
- # trailing slash, the realname must also omit it.
- #
- # We include the /icons/ alias for FancyIndexed directory listings. If you
- # do not use FancyIndexing, you may comment this out.
- #
- Alias /icons/ "/usr/share/apache2/icons/"
- <Directory "/usr/share/apache2/icons">
- Options Indexes MultiViews
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>
- # ScriptAlias: This controls which directories contain server scripts.
- # ScriptAliases are essentially the same as Aliases, except that
- # documents in the realname 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/ "/srv/www/cgi-bin/"
- # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
- # CGI directory exists, if you have that configured.
- #
- <Directory "/srv/www/cgi-bin">
- AllowOverride None
- Options +ExecCGI -Includes
- Order allow,deny
- Allow from all
- </Directory>
- # Include all *.conf files from /etc/apache2/conf.d/.
- #
- # This is mostly meant as a place for other RPM packages to drop in their
- # configuration snippet.
- #
- # You can comment this out here if you want those bits include only in a
- # certain virtual host, but not here.
- #
- Include /etc/apache2/conf.d/*.conf
-
- # The manual... if it is installed ('?' means it won't complain)
- Include /etc/apache2/conf.d/apache2-manual?conf
- ServerName linux
-
- ServerAdmin root@linux
|
J'ai copié mon fichier index.html à la racine de /srv/www/html.
Sur le serveur, http://127.0.0.1 ou http://192.168.0.1 m'affiche mon index.html correctement.
A distance, sur un autre poste, http://192.168.0.1/index.html m'affiche également la page mais http://192.168.0.1 me jette sur la page d'apache par défaut ("Vous voyez cette page au lieu du site attendu ?" )
Qu'aie-je loupé ? Je cherche en vain ...
Merci Message édité par jeoff le 14-02-2006 à 16:51:50
|