Visit Our UNIX and Linux User Community


http to https Apache, AllowOverride All receives 403 err htaccess


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers http to https Apache, AllowOverride All receives 403 err htaccess
# 1  
Old 02-04-2011
http to https Apache, AllowOverride All receives 403 err htaccess

Hi new to the forum,

I have a Apache server on CentOS which hosts a web site. I've set up the SSL which has been tested as I can access my website via http and https.

I would like to redirect all browsers to use https instead of http. I have created the htaccess file which contains 'Allow from all' as I wanted to see if the htacess files works.

But when I change the httpd.conf file 'AllowOveride to All', the browsers (accessing website) shows 403 error on both http and https.

I've been searching the internet for the past two weeks, hopefully someone can help.

Thanks
# 2  
Old 02-07-2011
Anyone, please?
# 3  
Old 02-07-2011
When you have apache errors, best to look for clues in the log file.

Where are your log file entries for these errors?
# 4  
Old 02-15-2011
Quote:
Originally Posted by Neo
When you have apache errors, best to look for clues in the log file.

Where are your log file entries for these errors?
Hi Neo,

Thanks for your response.

I have a htaccess file on the website which has the entry 'Allow from all' and I have the https.conf set to 'AllowOveride to All'

The error log says unable to check htaccess file, ensure it is readable.
I've searched this error and people are saying it could be a permission issue, if this is the case, how do I go by setting the permission?

Thanks
 

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Apache Tomcat(403 Access Denied)

Good evening, i've got a problem. I fail to enter "Manager App" in Apache Tomcat/9.0.0.M9 on server, it says "403 Access Denied». for example, server address is 192.168.1.4, when I type 'localhost ' in the browser and press "Manager App", then everything is ok. but if I enter 192.168.1.4 and press... (0 Replies)
Discussion started by: v.k.l.chr.by
0 Replies

2. UNIX for Advanced & Expert Users

Apache - tcpdump get HTTP and HTTPS Headers

Hello I googled for "tcpdump view HOST http headers" -- that fine However can we do same for HTTPS like after the HTTPS gets decrypted by Apache ? I think this is legitimate on the server where the site is hosted since at some point the Apache itself needs to get the HOST patrameter in... (1 Reply)
Discussion started by: coolatt
1 Replies

3. Web Development

Mod_rewrite http to https

Hi Team, I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https. Requirement below:- want to match a word (test) on the url and if matches then it should rewrite to https. example:- ... (1 Reply)
Discussion started by: arumon
1 Replies

4. Shell Programming and Scripting

sed -i '11 b; s/AllowOverride None\b/AllowOverride All/' test

I searched everywhere and have had no luck. here is what I'm trying to do. sed -i '11 b; s/AllowOverride None\b/AllowOverride All/' test I have a single file I want to edit one line that appears 4 times. in this case line 11. I want to change it from AllowOverride None to AllowOverride All... (2 Replies)
Discussion started by: lmao32895
2 Replies

5. Web Development

.htaccess Not Working With AllowOverride All

Source: Apache.org The .htaccess file is not read by the server based the test above and the lack of change in the operation of the server. httpd.conf <Directory /> Options None AllowOverride All # Initially this was set to None and I would prefer it be again, just testing ... (6 Replies)
Discussion started by: gnurob
6 Replies

6. Web Development

redirect http to https in apache

i read thru a few article how to do it, but i could not get it to work the way i want it. vi ../httpd.conf Redirect permanent /dev https://servername/portal/ when i type servername, works fine. my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies

7. Shell Programming and Scripting

http and https

Hi friends, I have a local host http://ss3/cgi-bin/page/page_list.cgi running on apache webserver perfectly well. But suddenly, it stopped working and gave an error "Internet explorer Explorer cannot display the webpage". But when i added https, as https://ss3/cgi-bin/page/page_list.cgi the... (2 Replies)
Discussion started by: nmattam
2 Replies

8. Shell Programming and Scripting

stripping http and https from a url using sed

I have to write a sed script which removes http and https from a URL. So if a URL is https://www.example.com or Example Web Page, script should return me Example Web Page i tried echo $url | sed 's|^http://||g'. It doesn't work. Please help (4 Replies)
Discussion started by: vickylife
4 Replies

9. UNIX for Advanced & Expert Users

403 Error in Apache?

I have installed Apache lots of times before. I have recently installed apache on FreeBSD. And it gives me all the time 403 Frobidden - you don't have permittion to access / directory. I have checked permitions. I've got -rwxrwxr-x for for all Apache DocumentRoot. I've checked Files directive in... (6 Replies)
Discussion started by: solvman
6 Replies

Featured Tech Videos