LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2014, 08:03 AM   #1
piyushsingh
LQ Newbie
 
Registered: Sep 2012
Posts: 21

Rep: Reputation: Disabled
How to share folders on apache server in rhel 6.0


<Direcory "/webdata">
Order deny,allow
Allow from all
</Directory>



webdata folder contains 3 folders and i have already manged semanage



<virtualhost*:80>
documentroot /webdata
servername sunday.com
</virtualhost>


Please help me..your help would be highly appreciated...
 
Old 09-10-2014, 08:45 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,388

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
I don't know what apache version you use but "Allow from all" syntax is outdated

Code:
<Direcory "/webdata">
  Require all granted
</Directory>
 
Old 09-10-2014, 03:40 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,980

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
if this is the very old rhel6.0
then likely it is apache 2.2
for 2.2 amd 2.0
"Allow from all" was used

i WOULD advise upgrading to the current RHEL 6.5 or 7.0

and building the CURRENT apache 2.4.10
 
Old 09-11-2014, 02:26 AM   #4
piyushsingh
LQ Newbie
 
Registered: Sep 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
You are right it is apache 2.2...i have done all the changes but still it shows like htttp://192.168.1.1/webdata

URL not found
 
Old 09-11-2014, 02:50 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,980

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
your web folder
"<Direcory "/webdata">"
that would be a folder directly on the / root partition

SElinux hates having folders mounted there that are usable by EVERYONE
not even your /home folder is accessible to everyone

is there a SE-troubleshooter WARNING ?

there would be if "/webdata" is read/writeable by non root users

there is a reason that RHEL uses /var/www
/var/www
/var/www/htpd
 
Old 09-11-2014, 05:09 AM   #6
piyushsingh
LQ Newbie
 
Registered: Sep 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
John .ther is no SE-troubleshooter WARNING.all is good i just want one thing folders or files like(folder1,folder2,folder3or file1,file2,file3) should display on apache server.all these folders or files are in /webdata directory.
 
  


Reply

Tags
apache


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please suggest how to Install Apache Httpd server on RHEL 6 in easy steps. dheeraj_pr10 Linux - Desktop 6 04-09-2013 03:14 AM
Apache Share server - how to configure dlugasx Linux - Server 2 12-26-2011 04:40 AM
RHEL 4 does not recognize file permissions from w3k storage server cifs share rockfx01 Linux - Server 2 07-14-2008 10:22 AM


All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration