Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

How can I password protect a directory?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
pankaj
Posts: 1
Joined: Thu May 22, 2014 12:16 am

How can I password protect a directory?
  • Quote

Post by pankaj » Sat May 24, 2014 3:52 am

Hi,

I'm new to VestaCP and I want to know how can I make a directory password protected?

Thanks
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: How can I password protect a directory?
  • Quote

Post by drMacFaulty » Sat May 24, 2014 11:52 am

It's up to you, you can choose to use htpasswd (put it outside your public_* folders) in conjunction with htaccess. See here for details: http://www.addedbytes.com/blog/code/pas ... -htaccess/ Though it would be better to not use .htaccess AT ALL and define it in you vhost configuration (much safer, neater and cleaner IMHO). Nginx (if used) might also need a rewrite (depending what contents are inside and what contents are handled by nginx) if I'm correct.

Hope this helps :)
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password