... | ... | @@ -46,7 +46,7 @@ Add `vhost` directory directive in `/etc/httpd/conf.d/staging.digitec.io.conf`. |
|
|
<Directory "/www/staging.digitec.io/{org}">
|
|
|
AuthType Basic
|
|
|
AuthName "Digitec RHS-1 Staging Server - {Org}"
|
|
|
AuthUserFile /etc/httpd/secure/staging.digitec.io/disney.htpasswd
|
|
|
AuthUserFile /etc/httpd/secure/staging.digitec.io/{org}.htpasswd
|
|
|
Require valid-user
|
|
|
<FilesMatch "\.(mp4|flv|webm|ogg|pdf)$">
|
|
|
Satisfy any
|
... | ... | @@ -60,5 +60,8 @@ Add `vhost` directory directive in `/etc/httpd/conf.d/staging.digitec.io.conf`. |
|
|
|
|
|
#### Add Password Protection to New `vhost` Entry
|
|
|
|
|
|
1. `ssh` in as root to the staging server.
|
|
|
2. Navigate to the `/etc/httpd/secure/staging.digitec.io/` directory.
|
|
|
3. Create the `{org}.htpasswd` file.
|
|
|
|
|
|
|