1.

Solve : Server Security and/or User Account setup?

Answer»

Hi there,
I'm trying to set up a friend's website and I was wondering how I could MAKE his portion of the site completely separate from mine (ie, it is accessed when someone goes to his domain name).  I know this includes setting up separate users in Apache (I'm running Apache 2.2.3 for Win32), but I'm not sure how.

I'd also like to make a portion of his site PASSWORD/login protected, but after some research it seems like .htaccess is a bad way to go.  How do I stop users from entering a part of his site without using .htaccess? (and if .htaccess is the best way, how do I do THAT?)

-Thanks
-RockLook up the VirtualServer configuration directive in your Apache manual.

As for restricting access: what exactly do you want to do, and why?  Are you talking about read/write (i.e. FTP) access?Yes.  But only for one account.

Ok, here's the hierarchy of the server.

MY SERVER
-----------
       |
  Sub Site
     |      \
HTTP       Client
     |           \
PW login      FTP Upload

So basically, I need to have my client be able to access the server and upload files, and I need the whole world to be able to access the front page, but I need one page or so to be accessible only by entering the correct password, which would change on a monthly basis.

-Rock

Edit:  SORRY, about the "why": My client is a tutor, and he wants his kids that he's tutoring to be able to login to download help sheets for various classes, but he doesn't want them available to the general public.Well in that case .htaccess/.htpasswd is the SIMPLEST solution.

Start here: http://httpd.apache.org/docs/2.0/programs/htpasswd.html

and here: http://www.javascriptkit.com/howto/htaccess3.shtmlI'll look into it.  Thanks for the links.



Discussion

No Comment Found