VM Manual
https://www.gdc-docs.ethz.ch
Name: gdc-linux.ethz.ch
Owner: Hans Hirter
OS: RHEL Server 7.9
IPv4: 129.132.165.22
IPv6: 2001:67c:10ec:4b02::36
Activation Key: 242-cac4947565234b5ad97ba8be422789c4-7
Docs Folders
cd /var/www/html/
Alias (root)
sm
: save and make for mkdocssm2
: same assm
but new version
htaccess
Place htaccess file into the folder you need to protect.
##
# <folder_to_protect>/.htaccess
##
htaccess example file:
## Restricted Access
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/httpd/.htpasswd
Require valid-user
Admin
Note: Before editing httpd.conf, make a copy the original file.
# File: /etc/httpd/conf/httpd.conf
grep "AllowOverride AuthConfig" /etc/httpd/conf/httpd.conf
# Change: AllowOverride none
# AllowOverride AuthConfig