LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-17-2008, 07:39 AM   #1
TruthSeeker
LQ Newbie
 
Registered: Oct 2005
Location: Cartaxo, Portugal
Distribution: Red Hat Enterprise 4 Mostly
Posts: 25

Rep: Reputation: 15
Question 403 forbidden in Alias on apache2


Hello,
i've recently started on server setting up and everything has been more more or less smooth. Now i'm getting a 403 on a aliased folder and i can't understand why... :/

the httpd.conf last lines of code, the only virtual host on server, and no other directory directive for "/home/gnet" exists:
Code:
NameVirtualHost *:80

<VirtualHost *:80>
    ServerName hostname.hostname.com
    DocumentRoot /var/www/html
    ServerAdmin adminemail@host.com
	Alias /gestix/ /home/gnet/
	<Directory "/home/gnet">
	    AllowOverride None
	    Options All
	    Order allow,deny
	    Allow from all
	</Directory>
</VirtualHost>
nano /etc/httpd/logs/error_log:
Code:
[Tue Jun 17 07:02:46 2008] [error] [client 81.193.12.18] (13)Permission denied: access to /gestix/index.html denied
ls -lisa /home/gnet :
Code:
18366842  4 -rwxr-xr-x   1 root root    0 Jun 16 13:58 index.html
ls -lisa /home :
Code:
18366466 8 drwx--x--x  12 root root 4096 Jun 17 06:32 gnet
Am i doing anything wrong?

How can i further debug it?

Thanx

PS: everything in /var/www/html and it's subfolders works fine, i've tried "chmod -R 777 /home/gnet" and i keep getting the error.

Last edited by TruthSeeker; 06-17-2008 at 07:46 AM. Reason: forgot something :s
 
Old 06-17-2008, 11:54 AM   #2
houdelou
Member
 
Registered: Nov 2004
Location: Canada
Distribution: Ubuntu
Posts: 44

Rep: Reputation: 15
Try to quote /home/gnet/ like this :

Alias /gestix/ "/home/gnet/"

This is how I did it.
 
Old 06-17-2008, 12:35 PM   #3
TruthSeeker
LQ Newbie
 
Registered: Oct 2005
Location: Cartaxo, Portugal
Distribution: Red Hat Enterprise 4 Mostly
Posts: 25

Original Poster
Rep: Reputation: 15
Nope, it's the same :/
 
  


Reply



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
Apache2: Access forbidden! Error 403 vous Linux - Server 4 10-11-2011 04:46 AM
403 Forbidden 1veedo Linux - Newbie 2 11-27-2005 05:46 PM
Apache2 virtual host cgi 403 Forbidden / mossy Linux - Software 15 07-27-2005 04:56 PM
403 Forbidden JanDeMan Linux - Newbie 7 04-12-2004 03:02 PM
403 Forbidden??? morbo Linux - Networking 11 07-04-2002 10:17 AM

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

All times are GMT -5. The time now is 05:55 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