| #ServerName localhost ↓ ServerName ehehe.hogehoge.ac.jp(自分のマシン名) |
| root# /etc/rc.d/init.d/httpd restart |
| akio# mkdir public_html akio# chmod 701 public_html |
| Script Alias /cgi-bin/ /home/*/public_html/cgi-bin |
| <Directory /home/*/public_html/cgi-bin> AlloOverride None Options ExecCGI Oder allow,deny from all </Directory> |
| #AddHandler cgi-script .cgi ↓ AddHandler cgi-script .cgi |
| DocumentRoot "/usr/local/apache/htdocs" ↓ DocumentRoot "/home/www/htdocs" |
| <Directory> "/usr/local/apache/htdocs" ↓ <Directory> "/home/www/htdocs" |
| AllowOverride None ↓ AllowOverride All |
| ServerAdmin root@localhost ↓ ServerAdmin webmaster@ehehe.hogehoge.ac.jp |
| AuthType Basic AuthUserFile /home/akio/public_html/nak/.htpasswd AuthGroupFile /dev/null AuthName "Enter password" <limit GET POST> require valid-user </limit> |
| akio# /usr/bin/htpasswd -c /home/akio/public_html/nak/.htpasswd ehehe |