LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-10-2009, 04:18 AM   #1
samengr
Member
 
Registered: Jan 2008
Posts: 59

Rep: Reputation: 15
appache error: Permission access - on RHEL5


Hi,

I have built a test machine in our LAN environment. I am using https-2.2.3-6 on RHEL5 (2.6.18-8.el5). If I run the normal server without virtual hosts I can see the page over the LAN and on that box. But when i introduced a virtual host with the following code in httpd.conf it doesnt work and give me the error on the same box.

"403 Forbidden
You don't have permission to access / on this server"

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /home/http/test
ServerName test.mycompany.com
ErrorLog logs/test.mycompany.com-error_log
CustomLog logs/test.mycompany.com-access_log combined
</VirtualHost>


If I check the syntax it shows OK.

=============

# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server test.mycompany.com (/etc/httpd/conf/httpd.conf:1020)
port 80 namevhost test.mycompany.com (/etc/httpd/conf/httpd.conf:1020)
Syntax OK

=============

Can any body tell me what can be the problem??

waiting for reply.

Many thanks.
 
Old 02-10-2009, 04:59 AM   #2
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
Have You tried with


<VirtualHost yourlocalIP:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /home/http/test
ServerName yourlocalIP
ErrorLog logs/test.mycompany.com-error_log
CustomLog logs/test.mycompany.com-access_log combined
</VirtualHost>

?

Do You have configured domain ?
 
Old 02-12-2009, 03:20 AM   #3
samengr
Member
 
Registered: Jan 2008
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dlugasx View Post
Have You tried with


<VirtualHost yourlocalIP:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /home/http/test
ServerName yourlocalIP
ErrorLog logs/test.mycompany.com-error_log
CustomLog logs/test.mycompany.com-access_log combined
</VirtualHost>

?

Do You have configured domain ?


===================

I have tried this as well but its not working. But if move the /home/http/test directory to /var/www/ then it works, I mean then i can see the test page on the same box and on LAN with editing the systems host file. It seems its permission errors but how can i check then, there is nothing in /var/log/httpd/test.mycompany.com-error.log.

waiting for reply.
 
Old 02-12-2009, 03:46 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
This is a typical SELinux behavior. Read this to see what you can do.

Regards
 
Old 02-12-2009, 04:49 AM   #5
vinaystyle
LQ Newbie
 
Registered: Feb 2009
Location: Dehradun
Distribution: REDHAT LINUX 6.0
Posts: 7
Blog Entries: 2

Rep: Reputation: 0
Dear user,
you do all things but you are not seting context type on your web page that you want to accesss via http service this can be done by selinux .For http context see manul pages of selinux.




thanks for


your question
 
  


Reply


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
VNC access from Linux RHEL5.0 to Windows xp its possible jpmaxyusuf Linux - Newbie 1 07-23-2008 01:01 AM
Unable to Access Intranet sites through Firefox in RHEL5 viral_Ahire Linux - Software 1 02-29-2008 08:49 AM
Xen in RHEL5: Unable to finish install of virtual domains (cannot access cdrom) Swakoo Red Hat 11 01-22-2008 09:48 PM
Allow/Deny access to page on website in RHEL5 sandeshsk007 Linux - Server 0 10-26-2007 11:15 AM
Permission error attempting to access a web image ServerStorm Linux - Software 2 03-07-2005 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:47 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
Open Source Consulting | Domain Registration