Definitive guide to protect all site with htaccess?

Hello I have found many solutions for the htaccess but no one clean and fast.

I need to protect entire website with htaccess and password… how to do this?

Hi @openaspace2,

You can use command v-add-web-domain-httpauth to do it clean and fast.

Usage: v-add-web-domain-httpauth USER DOMAIN AUTH_USER AUTH_PASSWORD [RESTART]

Example:

v-add-web-domain-httpauth openaspace2 example.com test 'secret$pass0!0'
1 Like