your guys: I can't see the direcotry under / produced by mkdir command via Internat Explorer, except the any direcotry and file that exist after the CentOS installation complete. This is my directory 's detail information: drwxr-xr-x root www-data root:object_r:default_t CenterRepo and my httpd's configuration information: <VirtualHost *:80> ServerAdmin gitserver DocumentRoot / <Directory /> Options Indexes FollowSymLinks includes order allow,deny AllowOverride None allow from all </Directory> ServerName dummy-host.example.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> I just make sure the the CenterRepo directory belong to the www-date group which run by httpd ,why can't I still access that directory? Thanks for your help! 2010-11-16 49163653 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20101116/37cf3d59/attachment-0001.html>
On 11/16/2010 09:25 AM, 49163653 wrote:> your guys: > I can't see the direcotry under / produced by *mkdir* command via > Internat Explorer, except the any direcotry and file that exist after > the CentOS installation complete. > This is my directory 's detail information: > drwxr-xr-x root www-data root:object_r:default_t CenterRepo > and my httpd's configuration information: > <VirtualHost *:80> > ServerAdmin gitserver > DocumentRoot / > <Directory /> > Options Indexes FollowSymLinks includes > order allow,deny > AllowOverride None > allow from all > </Directory> > ServerName dummy-host.example.com > ErrorLog logs/dummy-host.example.com-error_log > CustomLog logs/dummy-host.example.com-access_log common > </VirtualHost> > I just make sure the the CenterRepo directory belong to the www-date > group which run by httpd ,why can't I still access that directory? > Thanks for your help! > 2010-11-16 > ------------------------------------------------------------------------ > 49163653Hi, I assume your machines' SELinux is enabled: http://wiki.centos.org/HowTos/SELinux#head-0f6390ddacfab39ee973ed8018a32212c2a02199 Cheers, Timo
On 16.11.2010 10.25, 49163653 wrote:> <VirtualHost *:80> > ServerAdmin gitserver > DocumentRoot / > <Directory /> > Options Indexes FollowSymLinks includes > order allow,deny > AllowOverride None > allow from all > </Directory> > ServerName dummy-host.example.com > ErrorLog logs/dummy-host.example.com-error_log > CustomLog logs/dummy-host.example.com-access_log common > </VirtualHost>You are publishing your entire machine through httpd. Is that really what you want? - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi * http://www.greenspot.fi
This is just for test,not for the serious situation! And I just find the solution to my problem yesterday. The reason is that the selinux on my CentOS prevent httpd from visiting file. Issus will be fine after I change the file's context label via chcon.May be this can be useful to you! 2010-11-17 49163653 ???? Jussi Hirvi ????? 2010-11-17 16:26:39 ???? CentOS mailing list ??? ??? Re: [CentOS] easy httpd's problem On 16.11.2010 10.25, 49163653 wrote:> <VirtualHost *:80> > ServerAdmin gitserver > DocumentRoot / > <Directory /> > Options Indexes FollowSymLinks includes > order allow,deny > AllowOverride None > allow from all > </Directory> > ServerName dummy-host.example.com > ErrorLog logs/dummy-host.example.com-error_log > CustomLog logs/dummy-host.example.com-access_log common > </VirtualHost>You are publishing your entire machine through httpd. Is that really what you want? - Jussi -- Jussi Hirvi * Green Spot Topeliuksenkatu 15 C * 00250 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hirvi at greenspot.fi * http://www.greenspot.fi _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20101117/f2987a8f/attachment-0001.html>
On Wed, 2010-11-17 at 18:32 +0800, 49163653 wrote:> This is just for test,not for the serious situation! > And I just find the solution to my problem yesterday. > The reason is that the selinux on my CentOS prevent httpd from > visiting file. > Issus will be fine after I change the file's context label via > chcon.May be this can be useful to you!You should rather fix your docroot to use /var/www/html. That way you wont even stumble into these selinux restrictions. You shouldn't relabel your whole system to "fix" your poor configuration, even on a test system. Regards, Leonard. -- mount -t life -o ro /dev/dna /genetic/research