hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : Change LigHTTPD Version Header
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

Change LigHTTPD Version Header

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-16-2005, 06:10 PM
Scott.Mc Scott.Mc is offline
Engineer
 
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380

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);
        }
Which basically means, if server_tag does not exist return LigHTTPD / Version, or whatever has been set previously, instead of having to adjust this like in Apache, below you will see it will print out what you have set.

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
After:
Code:
Server: HostGeekZ
An updated version of this guide can be found Here

Reply With Quote


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
cPanel Conference 2012: What's New with cPanel and WHM with Ken Power Web Hosting News 2012-11-12 13:54:56
Navigating Your Business Through Change with Elliot Noss - HostingCon 2012 Web Hosting News 2012-07-17 09:51:18
Softaculous Launches AMPPS Installer Version 1.5 Web Hosting News 2012-01-26 16:52:40
Web Host Rackspace Adds New Features to Cloud Load Balancer Web Hosting News 2011-09-16 16:35:04
SingleOS Launches Fuscan Linux Cloud 2.0 Web Hosting News 2011-08-12 19:09:05


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?