Languages :: PHP :: How can these be done? |
|||
| By: omuyelijah |
Date: 16/06/2008 14:42:28 |
Points: 20 | Status: Answered Quality : Excellent |
|
Hi all, how can i achieve the following tasks? 1. use encrypted pages with PHP, i.e. https:// and SSL? I use Apache 2.0.63/php 5.2.5. 2. Disable folder browsing so that clients and hackers won't hack into server folder. I got 2 reading stuff on ssl but need some consolidation on it. Regards. |
|||
| By: GrandSchtroumpf | Date: 22/06/2008 13:19:23 | Type : Comment |
|
I don't think your questions are related to PHP. To disable Apache directory browsing: http://www.techiecorner.com/106/how-to-disable-directory-browsing-using-htaccess-apache-web-server/ For SLL, I don't think it makes a difference whether you use PHP or plain HTML files... There are several tutorials for SSL on Apache. http://www.google.be/search?hl=en&q=apache+ssl+tutorial A few years ago, I installed SSL on my local machine using a self-signed certificate... i remember finding it a little confusing (public and private keys), but if you follow a step by step tutorial, you should be able to make it. Cheers. |
|||
| By: VGR | Date: 02/07/2008 08:08:33 | Type : Comment |
|
| ok ? If no more feedback, then close the Question... | |||
| By: omuyelijah | Date: 12/07/2008 16:21:06 | Type : Comment |
|
| Hi all, will get back shortly (a few days time). Still working and playing with the tasks. |
|||
| By: omuyelijah | Date: 16/07/2008 20:14:48 | Type : Answer |
|
| Hi all, Thanks GrandSchtroumpf for the links. It got me to study to find out 4rm the Apache docs. 4 disabling directory listing, I found the <Directory ...> directive more effective than the <VirtualHost ...> directive. For disabling directory browsing in the localhost folder (Note: My server is practice/development server, so its not hosted), this worked (in the /conf/httpd.conf file) <Directory htdocs> Options -Indexes </Directory> Note that directory listing will be disabled (4 the above) provided there is an 'index' file (as index.html 4 instance), cos the default value for DirectoryIndex diective is index.html. If there isn't an index file in the directory, directory listing will not be disabled except u specify an alternative file to load as in <Directory htdocs> Options -Indexes DirectoryIndex somefile.html </Directory> On using HTTP over SSL, I got 2 see dat its great and (4 now) no troubles only hit brickwall when installing OpenSSL 0.9.8h, compiling with VC++ 2005 .NET Express Edition (cl.exe). So, I'll try it again and share it with the OPENSSL guys. Thanks all and closing peacefully. |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








