Listen to this Post

Not all servers are built the same. Each one plays a unique role in powering the internet. Here’s a detailed breakdown of essential server types:
1. Web Server
➢ Delivers websites and web apps via HTTP/HTTPS.
➢ Handles client requests for static and dynamic content.
You Should Know:
- Apache HTTP Server:
sudo apt install apache2 sudo systemctl start apache2 sudo systemctl enable apache2
- Nginx:
sudo apt install nginx sudo systemctl start nginx
- Test with:
curl http://localhost
2. File Server
➢ Stores and shares files over a network.
➢ Uses SMB (Windows), NFS (Linux), or FTP.
You Should Know:
- Samba (SMB) Setup:
sudo apt install samba sudo smbpasswd -a username sudo systemctl restart smbd
- NFS Server (Linux):
sudo apt install nfs-kernel-server sudo mkdir -p /srv/nfs/share sudo chown nobody:nogroup /srv/nfs/share sudo nano /etc/exports
Add:
/srv/nfs/share (rw,sync,no_subtree_check)
Then:
sudo exportfs -a sudo systemctl restart nfs-kernel-server
3. Mail Server
➢ Manages emails using SMTP, IMAP, or POP3.
You Should Know:
- Postfix (SMTP):
sudo apt install postfix
- Dovecot (IMAP/POP3):
sudo apt install dovecot-core dovecot-imapd sudo systemctl restart postfix dovecot
- Test with:
telnet localhost 25 (SMTP) telnet localhost 143 (IMAP)
4. Proxy Server
➢ Acts as a bridge between clients and other servers.
➢ Enhances security, filters traffic, and caches content.
You Should Know:
- Squid Proxy:
sudo apt install squid sudo nano /etc/squid/squid.conf
Add:
http_access allow localnet
Then:
sudo systemctl restart squid
– Test with:
curl --proxy http://localhost:3128 http://example.com
5. DNS Server
➢ Translates domain names into IP addresses.
You Should Know:
- Bind9 (DNS Server):
sudo apt install bind9 sudo nano /etc/bind/named.conf.local
Add zone configuration, then:
sudo systemctl restart bind9
– Test with:
dig example.com @localhost
6. Origin Server
➢ Hosts the original version of content.
➢ Feeds data to users directly or through a CDN.
You Should Know:
- CDN Integration (Cloudflare, AWS CloudFront)
- Caching Headers (Nginx):
location /static { expires 30d; add_header Cache-Control "public"; }
What Undercode Say
Understanding server types is crucial for backend optimization, security, and scalability. Whether deploying web apps, managing emails, or setting up a private file-sharing system, mastering these servers enhances IT infrastructure resilience.
Expected Output:
- A functional web server (Apache/Nginx).
- A secure file-sharing system (Samba/NFS).
- A configured mail server (Postfix/Dovecot).
- A caching proxy (Squid).
- A local DNS resolver (Bind9).
Prediction:
As cloud computing evolves, hybrid server setups (on-prem + cloud) will dominate, requiring deeper knowledge of load balancing, containerization (Docker/Kubernetes), and edge computing.
Relevant URL:
References:
Reported By: Ashsau Basic – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅


