GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 31-Jan-2004, 19:26
jovan jovan is offline
New Member
 
Join Date: Jan 2004
Posts: 1
jovan is on a distinguished road

Ssl


hello.
how can i get my apache-ssl server to send 403 Forbidden instead of 400 Bad Request on attempts to access a specified directory with http instead of https?
thank you in advance.
jovan
  #2  
Old 31-Jan-2004, 22:44
cs2 cs2 is offline
Member
 
Join Date: May 2003
Location: California
Posts: 107
cs2 will become famous soon enough
In .htaccess, add the line:

Code:
Options -Indexes
__________________
The Whole Internet, LLC
Visit our Homepage, -or-
use our online CSS Editor
  #3  
Old 31-Jan-2004, 22:53
cs2 cs2 is offline
Member
 
Join Date: May 2003
Location: California
Posts: 107
cs2 will become famous soon enough
Whoops, I misread the original question!

Looks like a 400 is the appropriate response for the scenario you describe:
http://www.w3.org/Protocols/rfc2616/...html#sec10.4.1
http://support.microsoft.com/default...b;en-us;293131
__________________
The Whole Internet, LLC
Visit our Homepage, -or-
use our online CSS Editor
  #4  
Old 01-Feb-2004, 01:36
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello jovan,

If you're interested in possibly trying a mod-rewrite solution to this, I may be able to suggest a few things...

I say "suggest" because I have never set up anything to work with SSL / https; but I know my way around mod-rewrite
 
 

Recent GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:06.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.