httpd : You don't have permission

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat httpd : You don't have permission
# 1  
Old 11-04-2009
httpd : You don't have permission

i have httpd installed on RHEL5 webserver

but i have linked

Code:
#ln -s /rhelREPO /var/www/html/rhel5

/rhelREPO contains all 5cds of RHEL and it is a mount of /dev/sdb1

ip: 192.168.1.133 :works /var/www/html/index.html content is in browser
ip: 192.168.1.133/rhel5 :does not work /var/www/html/rhel5/
Forbidden

You don't have permission to access /rhel5 on this server.

i have changed
Code:
#/etc/httpd/conf/httpd.conf

</directory />

  Options Indexes FollowSymLinks    # i added Indexes
  AllowOverride None
   
 # i added next two line thinking it will work since the /rhelREPO is in / (root)

  Order allow,deny
  Allow from all

</Directory >

</directory "/var/www/html">

  Options Indexes FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
  
</Directory >


why is the directory not being indexed...

Last edited by pludi; 11-05-2009 at 02:14 AM.. Reason: code tags, please...
# 2  
Old 11-05-2009
First, either you made some mistakes when posting that excerpt from your httpd.conf, as you only have closing tags for the Directory directive, but no opening tags.

Seconds, in order for the web server to be able to access /rhelREPO, it needs the appropriate rights on that directory (at least read, and maybe execute).
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

Httpd not starting

I compiled apache 2.2.15 from source and installed it. When I try to start it, its not coming up. # ./httpd -k start # echo $? 1 # ps -ef | grep httpd | grep -v grep # # ./httpd -v Server version: Apache/2.2.15 (Unix) Server built: Dec 13 2013 04:31:41When I run it in gdb I am... (4 Replies)
Discussion started by: chacko193
4 Replies

2. UNIX for Dummies Questions & Answers

Change unix permission when I don't own the file

Hi, A file is transferred from a Windows server(say username : user1) to Unix server via ftp. In unix, the permission of the file for a user, say user2 will be "-rw-r-----". Since the user1 is the owner of the file, user2 is not able to change the file permission using chmod. Is there... (5 Replies)
Discussion started by: merin
5 Replies

3. Solaris

setfacl don't change permission on group owner

I try to use setfacl command to change the permission of the group primary it does not accept the command , it really accept but don't change the permission on the group. the point here I read that if I use chmod command on group primary the mask changed, but if I use setfacl mask should not... (0 Replies)
Discussion started by: hard_revenge
0 Replies

4. Red Hat

HTTPD and telnet

Hi there I have installed httpd and telnet-server on RHEL5 standalone machine. Normally when i install these services they work once i edit /etc/xinetd.d/telnet disable = no start httpd and xinetd services .. #chkconfig --level 345 httpd on #chkconfig --level 345 xinetd on ... (4 Replies)
Discussion started by: dplinux
4 Replies

5. Web Development

You don't have permission to access / on this server.

Hello, I've set all permissions for all on my Server folders: chmod a+rwx ServerFolder When I browse to localhost:8000 I receive the following error: You don't have permission to access / on this server. why ? thanks (9 Replies)
Discussion started by: aneuryzma
9 Replies

6. Solaris

Solaris 10 / NetApp volumes - Forbidden: You don't have permission to access...

Hi all We have a couple of solaris zones running a jboss app in a cluster. Each zone has a shared netapp volume mounted to /app/xxx with everything under that subdir apart from jboss which is local to each zone in /app/jboss-3.2.5 There is a symlink in /app/xxx/jboss-3.2.5 which points to... (0 Replies)
Discussion started by: skewbie
0 Replies

7. Web Development

httpd problem or something else

Hi, I have a bit problem with my server.. The httpd server seems to be running and all but the websites which are hosted on it are not opening .. any hints what else it might be, here is what I get when /etc/init.d/httpd status Thank you for your replies (6 Replies)
Discussion started by: c0mrade
6 Replies

8. UNIX for Dummies Questions & Answers

httpd error

I installed FreeBSD6.x and apache2.x using gzip the tar files.i then gave ./configure command.It is know that by default apache2 will be created in /usr/local/apache2 but when i give ./configure command apache2 is not created and iam not able to execute apachectl start it says command not... (2 Replies)
Discussion started by: kumarangopi
2 Replies
Login or Register to Ask a Question