Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

htaccess & SSL

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Help needed - Mod Rewrite/redirect for subdomains  
Author Message
ecante

External


Since: May 14, 2004
Posts: 3



(Msg. 1) Posted: Fri May 14, 2004 2:05 pm
Post subject: htaccess & SSL
Archived from groups: alt>apache>configuration (more info?)

I would like to control with htaccess the acces for one directory
of my site.

But I don't know how to configure my htaccess to limit the access from
"https://".

Thank's Edz ...

 >> Stay informed about: htaccess & SSL 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 2) Posted: Fri May 14, 2004 2:05 pm
Post subject: Re: htaccess & SSL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Cante edouard" <ecante.DeleteThis@buyingpack.com> wrote in message
news:pan.2004.05.14.09.05.16.147517@buyingpack.com...

 > But I don't know how to configure my htaccess to limit the access from
 > "https://".

<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslrequiressl" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslrequiressl</a>

Richard.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: htaccess & SSL 
Back to top
Login to vote
ecante

External


Since: May 14, 2004
Posts: 3



(Msg. 3) Posted: Fri May 14, 2004 2:27 pm
Post subject: Re: htaccess & SSL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I found a solution : the rewriting. But now, I have a problem with right
access. I think I made a mistake in this htaccess file. If you have an
idea ?


RewriteEngine on
RewriteCond %{REQUEST_METHOD} !^https
RewriteRule ^(.*) <a style='text-decoration: underline;' href="https://%" target="_blank">https://%</a>{SERVER_NAME}/$1 [R,L]
AuthUserFile /home/ecante/Project/dvl/buyingpack/data_warehouse/serveur/.htpasswd
AuthGroupFile /dev/null
AuthName "Veuillez vous identifier"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

Edz ..

PS : Sorry for my english (french)


Le Fri, 14 May 2004 11:05:17 +0200, Cante edouard a écrit :

 > I would like to control with htaccess the acces for one directory
 > of my site.
 >
 > But I don't know how to configure my htaccess to limit the access from
 > "https://".
 >
 > Thank's Edz ...<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess & SSL 
Back to top
Login to vote
ecante

External


Since: May 14, 2004
Posts: 3



(Msg. 4) Posted: Fri May 14, 2004 4:15 pm
Post subject: Re: htaccess & SSL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank's but I want to use SSL in a htaccess file for one directory, and
not all the site. Perhaps I don't understand correctly how to use
SSLRequireSSL but it seems to integrate in httpd.conf and then for all my
virtual host, no ?

Edz ...

Le Fri, 14 May 2004 10:35:37 +0000, Richard Antony Burton a écrit :

 >
 > "Cante edouard" <ecante.TakeThisOut@buyingpack.com> wrote in message
 > news:pan.2004.05.14.09.05.16.147517@buyingpack.com...
 >
  >> But I don't know how to configure my htaccess to limit the access from
  >> "https://".
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslrequiressl</font" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslrequiressl</font</a>>
 >
 > Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess & SSL 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 5) Posted: Fri May 14, 2004 7:30 pm
Post subject: Re: htaccess & SSL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Cante edouard" <ecante.DeleteThis@buyingpack.com> wrote in message
news:pan.2004.05.14.11.15.07.625231@buyingpack.com...
 > Thank's but I want to use SSL in a htaccess file for one directory, and
 > not all the site. Perhaps I don't understand correctly how to use
 > SSLRequireSSL but it seems to integrate in httpd.conf and then for all my
 > virtual host, no ?

SSL can only be enabled at the virtual host & server config levels, you can't
simply enable it for one directory on your site and not for the rest. Easiest
thing for you to do is to enable it for your whole site, and add the
SSLRequireSSL to the directory you want (using .htaccess) to restrcit to SSL
only, this directive will then prevent unencrypted access to that directory.

Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess & SSL 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 6) Posted: Sat May 15, 2004 1:40 am
Post subject: Re: htaccess & SSL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Cante edouard" <ecante.DeleteThis@buyingpack.com> schreef in bericht
news:pan.2004.05.14.09.27.53.836886@buyingpack.com...
 > I found a solution : the rewriting. But now, I have a problem with right
 > access. I think I made a mistake in this htaccess file. If you have an
 > idea ?
 > RewriteEngine on
 > RewriteCond %{REQUEST_METHOD} !^https
Is n't %{REQUEST_METHOD} one of GET, PUT, POST etc
and %{SERVER_PROTOCOL} on of HTTP and HTTPS ?

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: htaccess & SSL 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
htaccess with SQL - Hi, I have a problem (well more than one), I want to use htaccess to allow users in an MySQL database to gain access to the specified directory only when there authorization in the database is good. e.g. person1 when with authorization level 1 gains no..

HTAccess - Hi NG! I have defined by HTAccess to show my own 404 Errorfile if a file can't found on my Server. The problem is that everytime this file is loaded, even if only picture is missing. How can i say that the Error-HTML is only shown if a HTML File is..

.htaccess - Hello Guys, I try desesperatly to make .htaccess run. It runs when files are put on the root, but not with sub-directories. My ".htaccess" : -------------------------------------------------------------------- Options +FollowSymlinks RewriteEng...

HTACCESS - Hi All! I am very new with Apache and for now I am running apache localy. http://127.0.0.1 gets my index up and running! So that works fine! What I am trying to do is to resolve a name like http://thatsme.lan and make a subdirectory like..

Need help with .htaccess - Hi, I'm a newbie to apache. I just create a .htpasswd .htaccess in my ~/www/.htaccess and ~/www.htpasswd. OS Solaris 8 ..htaccess file AuthType Basic AuthName "Secret Section. Password Required" AuthUserFile /www/.htpasswd Require valid-u...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]