CPSA ยท Web servers, architecture and protocols
IIS and Apache and their typical flaws
Differences between the servers, default content, modules and common misconfigurations.
Key points
- Apache httpd: many platforms; text config (httpd.conf, per-directory .htaccess).
- IIS: Microsoft's Windows server; applicationHost.config, web.config, IIS Manager.
- Both extend via modules.
- Typical flaws: default or sample content, directory listing, status or admin pages (e.g. mod_status) open to the internet, exact version banners, unneeded modules or handlers, risky methods, missing patches.
Source: https://learn.microsoft.com/en-us/iis/configuration/system.webserver/isapifilters/
Practice questions
Which file type is the main place where an IIS site's own settings are usually stored?
- httpd.conf
- .htaccess
- web.config
- php.ini
Show answer
Answer: C. web.config
IIS site and application settings live in web.config (server-wide in applicationHost.config). httpd.conf and .htaccess are Apache files.
Which items are common misconfigurations on a web server?
- Directory listing enabled on a content folder
- Sample or default pages left installed
- Redirecting all HTTP traffic to HTTPS
- Removing modules the site does not use
- Serving only the files the site needs
Show answer
Answer: A. Directory listing enabled on a content folder, B. Sample or default pages left installed
Directory listing and leftover sample content are classic leaks. Forcing HTTPS and removing unused modules are hardening steps, not flaws.
True or false: hiding the Server banner fully secures an unpatched web server.
Show answer
Answer: False
False. Hiding the banner only removes one clue; the vulnerable code is still there and can be found by behaviour or by trying exploits.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

More CPSA topics in this module
- Web server operation, virtual hosting and proxies
- Tiered web architectures
- HTTP methods and response codes
- HTTPS, SOAP and security-related headers
- HTML and XML
- Server-side and client-side web languages
- Application servers and frameworks
- Server extension interfaces
- Thin and thick web clients, applets and decompilation