LinuxQuestions.org
Help answer threads with 0 replies.
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 11-04-2004, 09:54 AM   #1
alejandroye
Member
 
Registered: May 2004
Location: SOUTH FLORIDA USA
Distribution: MANDRIVA / CENTOS
Posts: 146

Rep: Reputation: 15
Post HTTP.CONF questions


Hello

I am new in linux, and I installed with apache 2.0.50 also I have apache with default installation.

my question is because after the apache server was installed was working well and editing the httpd.conf and httpd2.conf and having forbidden error when everybody try to access the home page

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache-AdvancedExtranetServer/2.0.50 (Mandrakelinux/5mdk) mod_ssl/2.0.50 OpenSSL/0.9.7d PHP/4.3.8 Server at 127.0.0.1 Port 80"

===================

I am trying to reconfigured but as newbie I have lot of questions.

what apache server use to read the configuration, httpd.cong or httpd2.conf

this is the first line of my http2.conf

=================
ServerRoot /etc/httpd/2.0
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ErrorLog logs/error_log
LogLevel warn
DocumentRoot /var/www/html

==================

this is the first line of my http.conf

=====================
ServerType standalone
ServerRoot /etc/httpd
#ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /var/www/html


===================

any help will be great


thanks
 
Old 11-04-2004, 10:25 AM   #2
belorion
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 124

Rep: Reputation: 16
Just to clarify the question -- which page exactly shows the error? Are you trying to visit the webserver page, such as http://localhost? Or are you trying to access a user page, such as http:://localhost/~username?
 
Old 11-04-2004, 01:15 PM   #3
alejandroye
Member
 
Registered: May 2004
Location: SOUTH FLORIDA USA
Distribution: MANDRIVA / CENTOS
Posts: 146

Original Poster
Rep: Reputation: 15
webserver page

I just trying to access to web-server page and I get that error

thank for you reply
 
Old 11-04-2004, 01:36 PM   #4
belorion
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 124

Rep: Reputation: 16
I'm not an apache expert, but I've had to wade through an apache install and config before.

When someone wants to access a webpage, it must be world readable. And the directory it is in must be world rx as well. Make sure /var/www/html and /var/www/index/ is chmod to 755, and that the index.html files contained therein are 644.

And if you ever intend on using the server to serve out user pages (I recommend that you use a standard user for any webdevelopment you might do), then you'll need "UserDir public_html" uncommented:

Code:
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).  
    #
    #UserDir disable

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disable" line above, and uncomment
    # the following line instead:
    #
    UserDir public_html
 
</IfModule>
The above will make http://www.blah.com/~user work. And make sure that you have the following somewhere:

Code:
DirectoryIndex index.html
Note, there can be other files listed there as well, separated by spaces (such as main.html, index.php, etc.) These are the files that the server will use as the "default" page for each user if the request http://www.blah.com/~user/ is issued.

Let us know if that works for you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
http.conf or router conf ? regnier Mandriva 1 02-25-2005 08:41 AM
Apache 2.0 http.conf - AddDefaultCharset nordickiwi Linux - Networking 0 10-04-2004 03:58 AM
Editing http.conf outside root GinkoOMO Mandriva 2 01-12-2004 01:33 PM
Default HTTP.conf file please? richhoward Linux - General 3 09-14-2003 02:31 PM
.htaccess and http.conf Ratclaws Linux - General 1 11-21-2001 02:54 PM

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

All times are GMT -5. The time now is 03:14 AM.

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