Kirjoitanko nämä komennot httpd.conf vai apache2.conf tiedostoon? koodia:
rivi 339: #UserDir disable
rivi 346: UserDir public_html
mkdir ~oppilas/public_html
$EDITOR ~oppilas/public_html/index.htm
chmod 711 ~oppilas/public_html
chmod a+r ~oppilas/public_html/index.htm
<Directory /home/oppilas/public_html/suojattu*>
AllowOverride AuthConfig
AuthUserFile /home/oppilas/public_html/.htpasswd
AuthType Basic
AuthName “Salasanaa vaativa hakemisto�?
Require valid-user
</Directory>
<Directory /home/oppilas/*>
Order deny.allow
Deny from all
Allow from sallittavan.koneen.ip.osoite
</Directory>
<VirtualHost apache.palvelimen.ip.osoite>
ServerAdmin webmaster@wwwmalli.jee
DocumentRoot /home/oppilas/public_html
ServerName wwwmalli.jee
ServerAlias
www.wwwmalli.jee ErrorLog logs/wwwmalli.jee-error_log
CustomLog logs/wwwmalli.jee-access_log common
</VirtualHost>