Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 suexec docroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Dalrain
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 136
Location: Wooster, OH USA

PostPosted: Sat Oct 25, 2003 4:32 pm    Post subject: Apache2 suexec docroot Reply with quote

Greetings all,
I did a search on the forums for this, but it didn't turn up anything. (suexec docroot)

I was wondering how I could possibly change the docroot the suexec module is expecting to find, as I keep my webpages on a special mount under /wwwroot

Anytime someone tries to start up cgi on any of the virtual hosts under that directory, my suexec log reports that the script is outside of the docroot. Well, that's a nice security measure I know, but not so helpful when I don't want to use the default docroot. With the last apache installation I had, I just hacked suexec's .h file and corrected the docroot, then did a make suexec

Is it possible to cleanly change the docroot suexec expects in apache2? I'd like to avoid a hack like the previous way I did it there, as I'm trying to go "all e-builds" now with this system to simplify my administration.

Thanks in advance,
-J
Back to top
View user's profile Send private message
Houdini
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 224
Location: New Mexico Tech, Socorro, NM

PostPosted: Mon Aug 02, 2004 4:26 pm    Post subject: Reply with quote

The docroot is set in the ebuild. If you open the ebuild in an editor and search for "suexec", you'll see it.

Just change it there and re-emerge apache. Downside: you'll have to do this every time there's a new apache
_________________
^]:wq
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum