Michael Schwendt wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 18 Jun 2003 08:37:45 -0500, John Nichel wrote:


-D DOC_ROOT="/var/www"
-D GID_MID=100
-D HTTPD_USER="apache"
-D LOG_EXEC="/var/log/httpd/suexec_log"
-D SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D UID_MID=100
-D USERDIR_SUFFIX="public_html"

Ok, so I changed everything to match what that output says. I changed my UserDir prefix in httpd.conf to use public_html instead. According to the Apache Docs, suEXEC will pick both the --suexec-docroot as well as UserDir as it's hierarchy of allowed locations to execute something. I changed the user's layout to reflect the change (/home/rash/public_html), and I've adjusted the vhost file to point to thet public_html instead. I'm still getting the 'not in docroot' error whenever it tries to execute a CGI.


Your document root is /var/www, so your virtual host doc root needs
to be below /var/www. /home is not below /var/www.

<snip>


Not so. Using apache's virtual host directive, you can set the document for a paticular virtual host to anywhere on the file system, provided that apache can read from that directory.


You can do that, but this thread is about suexec. What do you
have to say about suexec and vhosts?

I have to say that I had a brain fart, and didn't follow the thread. Yes, with with suEXEC, you have to be under the document root that it was configured for. Now, before I go any further, I have displayed the need for some strong coffee. :)



-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to