LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-11-2007, 01:49 AM   #1
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Rep: Reputation: 15
Question https returns 403 forbidden error


Hi all,

I am encountering problem with setting up Apache secure server on a old RH 9.0 box.

The web server is running alright and http requests work fine.

I had recompiled with --enable-ssl and the both http and https requests work if I set the DocumentRoot to the default /usr/local/apache2/htdocs. But whenever I change it to my server specific /home/web/homepage, I get a 403 forbidden error message "You don't have permission to access / on this server." for https requests only. But the http request still works very fine ! :O

Since http works, it is perhaps not an issue with access permissions to files and folders.

The error_log shows:

[Tue Dec 11 12:00:55 2007] [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a PHP/5.2.2 configured -- resuming normal operations
[Tue Dec 11 12:02:51 2007] [notice] SIGHUP received. Attempting to restart
[Tue Dec 11 12:02:51 2007] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Dec 11 12:02:51 2007] [warn] RSA server certificate CommonName (CN) `liquid.sscu.iisc.ernet.in' does NOT match server name!?
[Tue Dec 11 12:02:51 2007] [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a PHP/5.2.2 configured -- resuming normal operations
[Tue Dec 11 12:02:55 2007] [error] [client 10.96.10.10] client denied by server configuration: /usr/local/apache2/htdocs/

I could not figure out the problem from the error message. Any help or suggestion will be appreciated.


Thanks,
Suman Chakrabarty.
 
Old 12-11-2007, 02:00 AM   #2
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Original Poster
Rep: Reputation: 15
Thumbs up

Well, I have solved the above problem just after posting the thread !

The indication was in "Tue Dec 11 12:02:55 2007] [error] [client 10.96.10.10] client denied by server configuration: /usr/local/apache2/htdocs/"

I did not know that SSL needs separate DocumentRoot setting in httpd-ssl.conf ! When I change it from /usr/local/apache2/htdocs/ to /home/web/homepage, it works perfectly !

Now I have a second related question to ask. I want to serve a few folders (e.g. webmail) ONLY under https, and NOT http. How do I achieve that ?


Thanks,
Suman.
 
Old 12-11-2007, 08:56 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by sumanc View Post
Now I have a second related question to ask. I want to serve a few folders (e.g. webmail) ONLY under https, and NOT http. How do I achieve that ?
Only plug the https where you want to use it. If someone tries http, create some .htaccess that redirects to https.
 
  


Reply

Tags
https, redhat, server


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
Apache: 403 Forbidden Error daemonkl Linux - Newbie 4 10-14-2007 01:15 PM
403 Forbidden error was encountered pilot11 Linux - Newbie 7 10-18-2006 12:28 PM
Apache returns 'Forbidden 403' for phpMyAdmin Notwerk Linux - Software 1 01-24-2006 03:04 AM
HTTP 403 (Forbidden) error lothario Fedora 6 02-08-2005 05:43 AM
apache 403 error forbidden? bulliver Linux - General 4 01-31-2003 08:47 AM


All times are GMT -5. The time now is 10:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration