File paths Flashcards
Important system and file paths
Whats the default webroot for Apache?
/var/www/html/
Whats the default webroot for Nginx?
/usr/local/nginx/html/
Whats the default webroot for IIS?
c:\inetpub\wwwroot\
Whats the default webroot for XAMPP?
C:\xampp\htdocs\
Where are apache logs stored?
/var/log/apache2/access.log
Where are nginx logs stored?
/var/log/nginx/access.log
Where are openssh logs stored?
/var/log/auth.log
or
/var/log/secure
Where are mysql logs stored?
/var/log/mysql/mysql.log
Where are postgresql logs stored?
/var/log/postgresql/postgresql-main.log
or
/var/log/postgresql/postgresql-<version>-main.log</version>
Where are fail2ban logs stored?
/var/log/fail2ban.log
Where are systemd logs stored?
/var/log/journal/*
Where are UFW logs stored?
/var/log/ufw.log
Where are system logs stored?
/var/log/syslog
or
/var/log/auth.log
Where is the NTDS.DIT file stored in AD?
C:\Windows\NTDS\
Where is etc/hosts in Windows?
c:\Windows\System32\drivers\etc\hosts