hey everyone,

i'm just starting to use https with my site (got it working today) and i
came up against a problem with how i create my directory tree and
organize my files.

originally i did the following:

http root:
/home/cparker/www/domain.com/

https root:
/home/caprker/www/domain.com/ssl

but then i got to thinking that i'd like to have the customer log in
under https. the problem is that those login files are not contained
within the https root and will therefore not be secure.

so then a friend suggested to me to do something like the following:

http root:
/home/cparker/www/domain.com/http/

https root:
/home/cparker/www/domain.com/https/

this will then allow me to separate the two "sides" of the site more
completely. for example i can now put my two login pages (a page that
presents the form, and a page that processes it) within the https/
directory and access it using the same links i've got on my site now
(except that i need to add an 's' on the http of course).

but then i got to thinking about the include files. do i make duplicates
of the include files and stick them into identical directory tree's
within each directory? i.e. http/includes, and https/includes?

my next idea was to have a third directory called includes that would
store all my libraries and be a central repository for both sides of the
site.

example:

http root:
/home/cparker/www/domain.com/http/

https root:
/home/cparker/www/domain.com/https/

includes directory:
/home/cparker/www/domain.com/includes/

this way i don't have to worry about symlinks or keeping two separate
and identical directory trees up to date (if i chose to put the includes
within each directory).


anyone have any thoughts on this? am i making this more complicated than
it is? ;)



chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to