httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Palmer <>
Subject [users@httpd] UserDir + Alias = suexec not being invoked
Date Wed, 24 Aug 2011 17:09:20 GMT

I have an Apache HTTPD instance I am trying to configure for a fairly
small group of users.  We're using mod_userdir and mod_suphp to ensure
that user scripts are run as the users themselves rather than as the www

My objective is to configure the website in such a way that certain
distinguished portions of the site can be made easier to access.  For
instance, I would like

to be equivalent to

To this end, we have the following subset of configuration:

<VirtualHost *:80>
              Options Indexes FollowSymLinks MultiViews ExecCGI Includes
              AllowOverride None
              Order allow,deny
              allow from all
              Options ExecCGI MultiViews Indexes SymLinksIfOwnerMatch
              AllowOverride All
                  Order allow,deny
                  allow from all
                  Order deny,allow
                  deny from all
              Order allow,deny
              allow from all
          Alias /bazsite /home/foouser/public_html/barsite
          UserDir public_html
          UserDir disabled root
          # ... more stuff here ...

Unfortunately, this does not permit suexec to do its job; in fact, it
seems that suexec is never used.  A script
/home/foouser/public_html/barsite/ is executed correctly if
accessed via the URL

but, when accessed via the URL

the script runs as the www user rather than as foouser.  I would not
have expected this, since it doesn't meet my intuitions about aliasing.

Clearly, these alias directories need not be generative; they will be
assigned on a case-by-case basis.  Does anyone know how I would express
to Apache that scripts in a specific subdirectory (recursively downward,
of course) should always be executed by suexec to a given user?



View raw message