nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Apache error 403 Permission access on RHEL5

This is a discussion on Apache error 403 Permission access on RHEL5 within the Web servers forums, part of the Mastering Servers category; 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 ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-2009, 02:47 PM
Junior Member
User
 
Join Date: Sep 2008
OS: RHEL
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
samengr is on a distinguished road
Default Apache error 403 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.
Reply With Quote
  #2 (permalink)  
Old 12-02-2009, 11:43 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Run following on /home/http/test:
Code:
mkdir +x /home/http/test
See following FAQ for more info:
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 06-06-2009, 02:18 AM
Junior Member
User
 
Join Date: Dec 2008
OS: Centos
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
maxleonca is on a distinguished road
Default

Add a <Directory> configuration for the DocumentRoot
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Grant Start / Stop Apache Server Permission to Normal User tanweernoor Web servers 3 01-12-2008 04:13 AM
Apache 503 error sweta Web servers 0 01-11-2007 03:00 AM
Set and access apache from DSL / ADSL connection paul555 Web servers 4 17-07-2007 04:38 PM
Relay Access Denied Error 554 rbizzell All about FreeBSD/OpenBSD/NetBSD 3 20-07-2006 02:48 AM
Debian recovery mode read only access make it write access Donavit Linux software 1 30-12-2005 12:49 AM


All times are GMT +5.5. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38