Results 1 to 1 of 1
Thread: Change LigHTTPD Version Header
-
11-16-2005, 06:10 PM #1Engineer
- Join Date
- Jan 2005
- Location
- Scotland, UK
- Posts
- 2,681
Change LigHTTPD Version Header
Change LigHTTPD Version Header
This is a follow on guide from Change Apache Version Header
Unlike Apache I found LigHTTPD has a option in the config that allows you to set the version without any real difficulty. No need to adjust the source and then compile. For those interested src/response.c contains
Code:if (buffer_is_empty(con->conf.server_tag)) { BUFFER_APPEND_STRING_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION); } else { BUFFER_APPEND_STRING_CONST(b, "\r\nServer: "); buffer_append_string_buffer(b, con->conf.server_tag); }
So its a simple task of opening lighttpd.conf and adding
server.tag = "HostGeekZ"
Now restart LigHTTPD and it will adjust your version.
Before:
Code:Server: lighttpd/1.4.7
Code:Server: HostGeekZ
Server Management - AdminGeekZ.com
Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Check our wordpress varnish plugin. Contact us for quote: sales@admingeekz.com