FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-16-2010, 07:32 AM
Timo Schoeler
 
Default easy httpd's problem

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 rootbject_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-0f6390ddacfab39ee973ed8018a32212c2a02199

Cheers,

Timo
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-17-2010, 07:26 AM
Jussi Hirvi
 
Default 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@greenspot.fi * http://www.greenspot.fi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-17-2010, 09:32 AM
"49163653"
 
Default easy httpd's problem

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┬*FollowSymLi nks┬*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┬*throu gh┬*httpd.┬*Is┬*that┬*really┬*
what┬*you┬*want?

-┬*Jussi

--┬*
Jussi┬*Hirvi┬**┬*Green┬*Spot
Topeliuksenkatu┬*15┬*C┬**┬*00250┬*Helsinki┬**┬*Fin land
Tel.┬*+358┬*9┬*493┬*981┬**┬*Mobile┬*+358┬*40┬*771┬ *2098┬*(only┬*sms)
jussi.hirvi@greenspot.fi┬**┬*http://www.greenspot.fi
_______________________________________________
CentOS┬*mailing┬*list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 11-17-2010, 10:14 AM
Leonard den Ottolander
 
Default easy httpd's problem

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


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 06:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ę2007 - 2008, www.linux-archive.org