Catalog / Cherokee Web Server Cheatsheet
Cherokee Web Server Cheatsheet
A comprehensive cheat sheet for the Cherokee web server, covering configuration, common tasks, and useful modules.
Basic Configuration
Installation
Install Cherokee on Debian/Ubuntu:
Install Cherokee on CentOS/RHEL:
|
Start Cherokee:
|
Stop Cherokee:
|
Restart Cherokee:
|
Check Cherokee status:
|
Web Administration Interface
Access the Cherokee admin interface by navigating to Default username is |
Change the default password immediately after logging in for security reasons. |
Configuration Files
|
Main configuration file. Located in |
|
Directory containing virtual host configurations. Located in |
Virtual Host Configuration
Creating a Virtual Host
Using the Web Admin Interface:
|
Manually Editing Configuration Files:
|
Example Virtual Host Configuration
|
Explanation:
|
Common Virtual Host Directives
|
Specifies the domain name for the virtual host. |
|
Defines the root directory for the website files. |
|
Specifies the path to the error log file. |
|
Specifies the path to the access log file. |
Advanced Configuration
Enabling SSL/TLS
Using the Web Admin Interface:
|
Manually Editing Configuration Files:
|
Reverse Proxy Configuration
Using the Web Admin Interface:
|
Manually Editing Configuration Files:
|
Load Balancing
Cherokee supports load balancing by configuring multiple upstream servers.
|
Modules and Handlers
Common Handlers
|
Serves static files (HTML, CSS, JavaScript, images). |
|
Acts as a reverse proxy, forwarding requests to upstream servers. |
|
Handles PHP requests using FastCGI. |
|
Handles CGI scripts. |
Configuring PHP-FastCGI
Using the Web Admin Interface:
|
Manually Editing Configuration Files:
|
Logging
|
Specifies the path to the error log file. Example: |
|
Specifies the path to the access log file. Example: |