Apache
Jump to navigation
Jump to search
| File path | What's there | |
|---|---|---|
| Default web root | Logs | Config files |
User/pass restrictions
- Create a user/pass entry in a file for a username
htpasswd -c /usr/local/apache2/conf/htusers username
- Add the relavent bits to the
/etc/apache2/httpd.conffile, eg<Directory />AuthType BasicAuthName "Restricted Access"AuthUserFile /usr/local/apache2/conf/htusersRequire valid-user</Directory>
- Restart the apache service
service apache2 restart