Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/07/2005, à 21:38

artik

public_html, comment ça marche ?

Je me souviens avoir utilisé par le passé un dossier public_html pour partager des fichiers dans mon réseau, mais je ne me souviens plus de ce qu'il faut faire pour l'utiliser ...

Quand je tape mon ip dans firefox je tombe sur ça :

Placeholder page
If you are just browsing the web

The owner of this web site has not put up any web pages yet. Please come back later.

Move along, nothing to see here... :-)
If you are trying to locate the administrator of this machine

If you want to report something about this host's behavior, please contact the Internet Service Provider (ISP) involved directly.

See the Network Abuse Clearinghouse for how to do this.
If you are the administrator of this machine

The initial installation of Debian's apache web server package was successful.

You should replace this page with your own web pages as soon as possible.

Unless you changed its configuration, your new server is configured as follows:

    * Configuration files can be found in /etc/apache.
    * The DocumentRoot, which is the directory under which all your HTML files should exist, is set to /var/www.
    * CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian packages will place their scripts.
    * Log files are placed in /var/log/apache, and will be rotated weekly. The frequency of rotation can be easily changed by editing /etc/logrotate.d/apache.
    * The default directory index is index.html, meaning that requests for a directory /foo/bar/ will give the contents of the file /var/www/foo/bar/index.html if it exists (assuming that /var/www is your DocumentRoot).
    * User directories are enabled, and user documents will be looked for in the public_html directory of the users' homes. These dirs should be under /home, and users will not be able to symlink to files they don't own.

All the standard apache modules are available with this release and are now managed with debconf. Type dpkg-reconfigure apache to select which modules you want enabled. Many other modules are available through the Debian package system with the names libapache-mod-*. If you need to compile a module yourself, you will need to install the apache-dev package.

More documentation on Apache can be found on:

    * The Apache documentation stored on your server.
    * The Apache Project home site.
    * The Apache-SSL home site.
    * The mod perl home site.
    * The ApacheWeek newsletter.
    * The Debian Project Documentation which contains HOWTOs, FAQs, and software updates.

You can also consult the list of World Wide Web Frequently Asked Questions for information.
Let other people know about this server
Netcraft provides an interesting free service for web site monitoring and statistic collection. You can let them know about your server using their interface. Enabling the monitoring of your server will provide a better global overview of who is using what and where, and it would give Debian a better overview of the apache package usage.
About this page

This is a placeholder page installed by the Debian release of the apache Web server package.

This computer has installed the Debian GNU/Linux operating system, but it has nothing to do with the Debian Project. Please do not contact the Debian Project about it.

If you find a bug in this apache package, or in Apache itself, please file a bug report on it. Instructions on doing this, and the list of known bugs of this package, can be found in the Debian Bug Tracking System.

Thanks for using this package, and congratulations for your choice of a Debian system!
Debian Apache

Dernière modification par artik (Le 08/07/2005, à 22:29)


Artik

Hors ligne

#2 Le 09/07/2005, à 06:17

ubeo

Re : public_html, comment ça marche ?

Dans /etc/apache/http.conf ou /etc/apache2/apache.conf il faut décommenter #UserDir public_html
et #<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options Indexes SymLinksIfOwnerMatch IncludesNoExec
#</Directory>

#3 Le 09/07/2005, à 12:39

eks

Re : public_html, comment ça marche ?

Il faut surtout que tu ajoutes "~login/" (sans les guillemets, et en remplaçant login par ton login) pour tomber sur les pages d'un utilisateur. Par exemple, si ton ip est 192.168.0.2 et ton login est artik, il faut aller à l'adresse : http://192.168.0.2/~artik/

En effet, http://192.168.0.2/ te dirigeras vers le site web "principal" de ta machine (généralement situé dans /var/www), et non les pages d'un utilisateur.


eks

Hors ligne

#4 Le 25/09/2005, à 17:34

pepe

Re : public_html, comment ça marche ?

Salut,

mon dossier public_html est accessible en local, tout fonctionne bien, mais dès que je vais sur http://mon_ip/~pepe , ca fonctionne plus sad

Une idée ?

Merci big_smile

Hors ligne