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
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 ------------------------------------------------------------------------ 49163653
Hi,
I assume your machines' SELinux is enabled:
http://wiki.centos.org/HowTos/SELinux#head-0f6390ddacfab39ee973ed8018a32212c...
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
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
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.