[RHCE] notes
Jim Ray
jim at neuse.net
Thu Feb 19 21:07:05 EST 2004
Rhce study session 19 Feb 2004
Attendees
Matt, max, Raymond, tom, jim
Business
none
Meeting
1. rh-9 fresh load
2. vncserver :1 -> choose password and verify -> vnc server started ->
Xvnc pid 3329
3. 192.168.1.100 picked up from DHCP
4. apache config -> /etc/httpd/conf/httpd.conf
5. cd /var/www/html
6. echo elmo was here>index.html
7. refresh web browser
8. mkdir secret
9. cd secret
10. echo secret elmo was here>index.html
11. http://192.168.1.100/secret/
12. vi /etc/httpd/conf/httpd.conf
a. end of file -> shift g
b. new line -> o
i. <Directory "/var/www/html/secret">
ii. AllowOverride All
iii. </Directory>
c. Esc
13. cd /var/www/html/secret
14. vi .htaccess -> see
http://httpd.apache.org/docs-2.0/howto/htaccess.html
a. AuthType Basic
b. AuthName "Password Required" -> See
http://httpd.apache.org/docs-2.0/howto/auth.html
c. Require valid-user
15. cd /etc/httpd/conf -> man htpasswd
a. htpasswd -c htpasswd bob
b. test
16. cd /var/www/html/secret
17. vi .htaccess -> add line to end -> o
a. AuthUserFile /etc/httpd/conf/htpasswd
18. service httpd restart
19. apachectl configtest -> syntax error on line 1042 -> vi -> :1042
20. prompt for password, auth fails
21. nix AuthUserFile line in .htaccess
More information about the RHCE
mailing list