Help - Search - Members - Calendar
Full Version: httpd.conf How to prevent user to view it?
The Planet Forums > Control Panels > cPanel/WHM
DCUA
httpd.conf has 644 by default.
This means that any user can view this file from any (php, cgi) script.

Anybody knows how to make it unaccessible for users?
DCUA
Try to run the following cgi, guys, on your cPanel server and get httpd.conf into your browser even if you have suexec installed:
*********************
open(MYINPUTFILE, "my(@lines) = ;
my($line);
foreach $line (@lines)
{
print "$line";
}
close(MYINPUTFILE);
*********************

640 will stop this but it'll broke the cPanel.
How can I prevent this?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.