Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to have separate Apache2 log files depending on the user of mod_userdir?
    primarykey
    data
    text
    <p>I'm using mod_userdir on Apache 2.2 to give multiples users access to a web server (for their tests and other stuff).</p> <p>I would like to give my users access to apache logs (so that they can debug their scripts) but log entries (both <code>ErrorLog</code> and <code>CustomLog</code>: <em>error.log</em> and <em>access.log</em>) are combined together (whatever "user" directory is concerned).</p> <p>Is there a way to separate log into multiple files (depending of the user).</p> <p>Apache version : 2.2.16</p> <p>"<em>/etc/apache2/sites-enabled/000-default</em>" config file:</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin webmaster@localhost DocumentRoot /var/www &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /var/www/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all &lt;/Directory&gt; ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ &lt;Directory "/usr/lib/cgi-bin"&gt; AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all &lt;/Directory&gt; ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" &lt;Directory "/usr/share/doc/"&gt; Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>"<em>/etc/apache2/mods-enabled/userdir.conf</em>" config file:</p> <pre><code>&lt;IfModule mod_userdir.c&gt; UserDir /home/*/public_html UserDir disabled root &lt;Directory /home/*/public_html&gt; AllowOverride FileInfo AuthConfig Limit Options Options MultiViews Indexes IncludesNoExec IndexOptions FoldersFirst FancyIndexing IgnoreCase php_admin_value open_basedir "..:/usr/share/php/" &lt;/Directory&gt; ErrorLog /tmp/apache2-userdir-error.log LogLevel warn CustomLog /tmp/apache2-userdir-access.log &lt;/IfModule&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload