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 03-23-2007, 02:33 AM   #1
baosheng
Member
 
Registered: Oct 2004
Location: Lubbock, TX, USA
Distribution: Ubuntu 7.10
Posts: 74

Rep: Reputation: 15
Apache: 403 Forbidden, You don't have permission


I installed Apache2 via compiling the source code. It was installed at /usr/local/apache2.

It is very strange that I can only put files in /usr/local/apache2/htdocs
to let others access html files via HTTP.

If I put files in other directory, Apache said this on the browser
403 Forbidden
You don't have permission to access / on this server
But I have already even set the mod of the folder and files under the folder as 0777. I have also set all parent directories searchable.

I haven't encounter this problem before.

Can anyone help me? Thanks.

Last edited by baosheng; 03-23-2007 at 03:10 AM.
 
Old 03-23-2007, 03:45 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You need to create an Alias
Code:
Alias /somedir "/path/to/somedir"
and then add a <Directory> directive for that dir similar to that of DocumentRoot:
Code:
<Directory "//path/to/somedir">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
Regards
 
  


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
apache: 403 forbidden johnty01 Linux - Networking 5 04-05-2008 02:20 PM
Apache 403 Forbidden HelplessNewbie Linux - Software 3 05-19-2006 11:12 PM
apache 403 forbidden munchkins Linux - Software 1 12-25-2005 07:10 AM
Apache 403 Forbidden mrmike Linux - Newbie 3 07-10-2004 11:31 AM
Apache 403 Forbidden quozt Linux - Networking 10 02-24-2004 04:59 PM

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

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