Config files
server.cfg16 lines · 0.2 KB// Hostname for server.
hostname "SERVERNAME"
// RCON - remote console password.
rcon_password "ADMINPASSWORD"
// Server password - for private servers.
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
What these settings mean
Quick reference for the 8 most important keys in this Team Fortress 2 Classic config. Hover or tap any key to see what it controls — useful when you're tuning a server for the first time and don't want to grep through the upstream wiki.
Core
2 settingshostname- Server name shown in the in-game browser. Keep it under 64 characters and avoid colour codes if you want clean Steam listings.
sv_password- Optional join password. Empty string means a public server.
RCON
1 settingrcon_password- Remote console password. Use a long random string — Source RCON is unencrypted, so anyone sniffing your wire can grab it if it's weak.
Logging
5 settingslog- Master switch for server logging. `on` writes to logs/L<date>.log — required for SourceMod and stats.
sv_logbans- 1 logs ban / kick events. Always on for any moderated server.
sv_logecho- 1 mirrors log lines to the server console — handy when tailing via screen / tmux.
sv_logfile- 1 writes log lines to disk in addition to stdout.
sv_log_onefile- 1 writes all activity into a single log file instead of rotating per map.
More valve / source engine configs
Browse allSkip the setup. Host Team Fortress 2 Classic with XGamingServer.
Spin up a managed Team Fortress 2 Classic server with one click. Backups, mods, control panel and DDoS protection included.






