httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] PHP page only accessible via SSL
Date Wed, 05 Apr 2006 14:48:54 GMT
On 4/5/06, P.M <pmdanger@yahoo.com> wrote:
> Hi,
>
> I would like to know how can i do if i want to force user to type https://
> for a particular page.
>
> for example, i have a web page "admin.php" which should be ONLY accessible
> via SSL.
>
> if user types -->> http://admin.php, server should answer that this page
> does not exist.
> on the other hand, if user types -->> https://admin.php, so page is
> accessible and user can use this page.

You can use SSLRequireSSL:
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequiressl
and/or you can use the normal Deny statements scoped in the non-ssl
<VirtualHost>.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message