Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user-es
Navigation:
Lists: gentoo-user-es: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user-es@g.o
From: Borja Rossell <sborja38@...>
Subject: Apache configuracion del userdir
Date: Sat, 25 Apr 2009 11:36:18 +0200
Necesito configurar el mod de userdir en mi apache. La version de apache que uso es un mod de la 2.2. Hay varios archivos de configuracion que se cargan desde el archivo principal. Tambien he creado en los home&#39;s la carpeta public_html y le he dado los permisos con chmod.<br>
<br>Este es el archivo inicial:<br><br># This is a modification of the default Apache 2.2 configuration file<br># for Gentoo Linux.<br>#<br># Support:<br>#   <a href="http://www.gentoo.org/main/en/lists.xml">http://www.gentoo.org/main/en/lists.xml</a>   [mailing lists]<br>
#   <a href="http://forums.gentoo.org/">http://forums.gentoo.org/</a>                 [web forums]<br>#   irc://<a href="http://irc.freenode.net#gentoo-apache">irc.freenode.net#gentoo-apache</a>      [irc chat]<br>#<br># Bug Reports:<br>
#   <a href="http://bugs.gentoo.org">http://bugs.gentoo.org</a>                    [gentoo related bugs]<br>#   <a href="http://httpd.apache.org/bug_report.html">http://httpd.apache.org/bug_report.html</a>   [apache httpd related bugs]<br>
#<br>#<br># This is the main Apache HTTP server configuration file.  It contains the<br># configuration directives that give the server its instructions.<br># See &lt;URL:<a href="http://httpd.apache.org/docs/2.2">http://httpd.apache.org/docs/2.2</a>&gt; for detailed information.<br>
# In particular, see<br># &lt;URL:<a href="http://httpd.apache.org/docs/2.2/mod/directives.html">http://httpd.apache.org/docs/2.2/mod/directives.html</a>&gt;<br># for a discussion of each configuration directive.<br>#<br>
# Do NOT simply read the instructions in here without understanding<br># what they do.  They&#39;re here only as hints or reminders.  If you are unsure<br># consult the online docs. You have been warned.<br>#<br># Configuration and logfile names: If the filenames you specify for many<br>
# of the server&#39;s control files begin with &quot;/&quot; (or &quot;drive:/&quot; for Win32), the<br># server will use that explicit path.  If the filenames do *not* begin<br># with &quot;/&quot;, the value of ServerRoot is prepended -- so &quot;var/log/apache2/foo_log&quot;<br>
# with ServerRoot set to &quot;/usr&quot; will be interpreted by the<br># server as &quot;/usr/var/log/apache2/foo.log&quot;.<br><br># ServerRoot: The top of the directory tree under which the server&#39;s<br># configuration, error, and log files are kept.<br>
#<br># Do not add a slash at the end of the directory path.  If you point<br># ServerRoot at a non-local disk, be sure to point the LockFile directive<br># at a local disk.  If you wish to share the same ServerRoot for multiple<br>
# httpd daemons, you will need to change at least LockFile and PidFile.<br>ServerRoot &quot;/usr/lib/apache2&quot;<br><br># Dynamic Shared Object (DSO) Support<br>#<br># To be able to use the functionality of a module which was built as a DSO you<br>
# have to place corresponding `LoadModule&#39; lines at this location so the<br># directives contained in it are actually available _before_ they are used.<br># Statically compiled modules (those listed by `httpd -l&#39;) do not need<br>
# to be loaded here.<br>#<br># Example:<br># LoadModule foo_module modules/mod_foo.so<br>#<br># GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.<br>#         Do not change manually, it will be overwritten on upgrade.<br>
#<br># The following modules are considered as the default configuration.<br># If you wish to disable one of them, you may have to alter other<br># configuration directives.<br>#<br># Change these at your own risk!<br><br>
LoadModule actions_module modules/mod_actions.so<br>LoadModule alias_module modules/mod_alias.so<br>LoadModule auth_basic_module modules/mod_auth_basic.so<br>LoadModule authn_alias_module modules/mod_authn_alias.so<br>LoadModule authn_anon_module modules/mod_authn_anon.so<br>
LoadModule authn_dbm_module modules/mod_authn_dbm.so<br>LoadModule authn_default_module modules/mod_authn_default.so<br>LoadModule authn_file_module modules/mod_authn_file.so<br>LoadModule authz_dbm_module modules/mod_authz_dbm.so<br>
LoadModule authz_default_module modules/mod_authz_default.so<br>LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br>LoadModule authz_host_module modules/mod_authz_host.so<br>LoadModule authz_owner_module modules/mod_authz_owner.so<br>
LoadModule authz_user_module modules/mod_authz_user.so<br>LoadModule autoindex_module modules/mod_autoindex.so<br>&lt;IfDefine CACHE&gt;<br>LoadModule cache_module modules/mod_cache.so<br>&lt;/IfDefine&gt;<br>LoadModule cgid_module modules/mod_cgid.so<br>
&lt;IfDefine DAV&gt;<br>LoadModule dav_module modules/mod_dav.so<br>&lt;/IfDefine&gt;<br>&lt;IfDefine DAV&gt;<br>LoadModule dav_fs_module modules/mod_dav_fs.so<br>&lt;/IfDefine&gt;<br>&lt;IfDefine DAV&gt;<br>LoadModule dav_lock_module modules/mod_dav_lock.so<br>
&lt;/IfDefine&gt;<br>LoadModule deflate_module modules/mod_deflate.so<br>LoadModule dir_module modules/mod_dir.so<br>&lt;IfDefine CACHE&gt;<br>LoadModule disk_cache_module modules/mod_disk_cache.so<br>&lt;/IfDefine&gt;<br>
LoadModule env_module modules/mod_env.so<br>LoadModule expires_module modules/mod_expires.so<br>LoadModule ext_filter_module modules/mod_ext_filter.so<br>&lt;IfDefine CACHE&gt;<br>LoadModule file_cache_module modules/mod_file_cache.so<br>
&lt;/IfDefine&gt;<br>LoadModule filter_module modules/mod_filter.so<br>LoadModule headers_module modules/mod_headers.so<br>LoadModule include_module modules/mod_include.so<br>&lt;IfDefine INFO&gt;<br>LoadModule info_module modules/mod_info.so<br>
&lt;/IfDefine&gt;<br>LoadModule log_config_module modules/mod_log_config.so<br>LoadModule logio_module modules/mod_logio.so<br>&lt;IfDefine CACHE&gt;<br>LoadModule mem_cache_module modules/mod_mem_cache.so<br>&lt;/IfDefine&gt;<br>
LoadModule mime_module modules/mod_mime.so<br>LoadModule mime_magic_module modules/mod_mime_magic.so<br>LoadModule negotiation_module modules/mod_negotiation.so<br>LoadModule rewrite_module modules/mod_rewrite.so<br>LoadModule setenvif_module modules/mod_setenvif.so<br>
LoadModule speling_module modules/mod_speling.so<br>&lt;IfDefine SSL&gt;<br>LoadModule ssl_module modules/mod_ssl.so<br>&lt;/IfDefine&gt;<br>&lt;IfDefine STATUS&gt;<br>LoadModule status_module modules/mod_status.so<br>&lt;/IfDefine&gt;<br>
LoadModule unique_id_module modules/mod_unique_id.so<br>&lt;IfDefine USERDIR&gt;<br>LoadModule userdir_module modules/mod_userdir.so<br>UserDir public_html<br>&lt;/IfDefine&gt;<br>LoadModule usertrack_module modules/mod_usertrack.so<br>
LoadModule vhost_alias_module modules/mod_vhost_alias.so<br><br># If you wish httpd to run as a different user or group, you must run<br># httpd as root initially and it will switch.<br>#<br># User/Group: The name (or #number) of the user/group to run httpd as.<br>
# It is usually good practice to create a dedicated user and group for<br># running httpd, as with most system services.<br>User apache<br>Group apache<br><br># Supplemental configuration<br>#<br># Most of the configuration files in the /etc/apache2/modules.d/ directory can<br>
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features<br># or to modify the default configuration of the server.<br>#<br># To know which flag to add to APACHE2_OPTS, look at the first line of the<br>
# the file, which will usually be an &lt;IfDefine OPTION&gt; where OPTION is the<br># flag to use.<br>Include /etc/apache2/modules.d/*.conf<br><br># Virtual-host support<br>#<br># Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we<br>
# include a default vhost (enabled by adding -D DEFAULT_VHOST to<br># APACHE2_OPTS in /etc/conf.d/apache2).<br>Include /etc/apache2/vhosts.d/*.conf<br><br># vim: ts=4 filetype=apache<br><br><br>-----------------------------------------------------------<br>
<br>y este es el archivo donde esta la configuracion de userdir.<br><br><br>--------------------------------------------------------------<br><br># Settings for user home directories<br><br>&lt;IfDefine USERDIR&gt;<br>&lt;IfModule userdir_module&gt;<br>
<br># UserDir: The name of the directory that is appended onto a user&#39;s home<br># directory if a ~user request is received.  Note that you must also set<br># the default access control for these directories, as in the example below.<br>
<br>UserDir public_html<br><br># Control access to UserDir directories.  The following is an example<br># for a site where these directories are restricted to read-only.<br>&lt;Directory /home/*/public_html&gt;<br>    AllowOverride FileInfo AuthConfig Limit Indexes<br>
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec<br>    &lt;Limit GET POST OPTIONS&gt;<br>        Order allow,deny<br>        Allow from all<br>    &lt;/Limit&gt;<br>    &lt;LimitExcept GET POST OPTIONS&gt;<br>
        Order deny,allow<br>        Deny from all<br>    &lt;/LimitExcept&gt;<br>&lt;/Directory&gt;<br><br># Suexec isn&#39;t really required to run cgi-scripts, but it&#39;s a really good<br># idea if you have multiple users serving websites...<br>
&lt;IfDefine SUEXEC&gt;<br>&lt;IfModule suexec_module&gt;<br>&lt;Directory /home/*/public_html/cgi-bin&gt;<br>    Options ExecCGI<br>    SetHandler cgi-script<br>&lt;/Directory&gt;<br>&lt;/IfModule&gt;<br>&lt;/IfDefine&gt;<br>
<br>&lt;/IfModule&gt;<br>&lt;/IfDefine&gt;<br><br># vim: ts=4 filetype=apache<br>------------------------------------------------------<br>Parece que esta activado pero la verdad es que no responde en la url <a href="http://ip/~usuario/">http://ip/~usuario/</a><br>
<br><br><br><br>Saludos<br><br><br clear="all"><br><br><br><br>
Replies:
Re: Apache configuracion del userdir
-- Arnau Bria
Navigation:
Lists: gentoo-user-es: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Bash
Next by thread:
Re: Apache configuracion del userdir
Previous by date:
Re: Bash
Next by date:
Re: Apache configuracion del userdir


Updated Jun 17, 2009

Summary: Archive of the gentoo-user-es mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.