LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2006, 10:10 PM   #1
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Rep: Reputation: 15
Question apache2 403 error


I am lost on what to do. I have an Hp computer set up with Linux Suse 10.0, and am trying to use it as a server for my web site. I am attempting to install apache, but after i install it, and start it, i get a 403 error stating that i cannot access the folder or there is not index file in it. I have tried putting an index file in it, and changing all the permissions....that did not work. I tried to change the directory that apache looks for...that did not work. I put a copy of the htaccess file in both directories that i tried to get to work and that did not work either. What should i do now? I really need some help on this!

Thanks!
Tim
 
Old 01-03-2006, 10:37 PM   #2
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
You use the DirectoryIndex directive to define the index (default) file to serve when / is requested

DirectoryIndex index.html index.htm index.php

The above directive will tell apache to search, in order, for index.html, index.htm, and then index.php. It will display the first match it finds. If none is found it will send a 403 (forbidden) error unless you have Option +Indexes enabled (you generally don't want to enable that)

Also note: if you want to use .htaccess to enable this rather than the .conf files, you need to enable AllowOverride in the .conf file(s)

Last edited by KimVette; 01-03-2006 at 10:39 PM.
 
Old 01-03-2006, 10:39 PM   #3
eagletalontim
Member
 
Registered: Jan 2006
Posts: 34

Original Poster
Rep: Reputation: 15
I just tried that a sec ago it works now now all i have left to do is fugure out how to set a static ip address on the linux machine and get it to connect to the internet afterwards. Thanks!

Tim
 
  


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
can't get anything but error 403 kuplo Linux - Software 2 11-02-2005 10:11 AM
httpd ,error num:403 hrajabi Linux - Networking 1 10-17-2005 01:37 PM
Apache2 virtual host cgi 403 Forbidden / mossy Linux - Software 15 07-27-2005 04:56 PM
Nagios (403 Error) cuiguy Linux - Software 1 04-05-2005 06:27 PM
Apache 403 Error?? jlsain Linux - Software 4 05-08-2004 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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