Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2001

    Upgrade to Apache 2.0 or change to thttpd?

    Hi all,

    I am thinking whether I should upgrade my apache server to version 2.0 or change it to thttpd.

    My server is a busy server. There are only html, images and some movies files in this server. The file size for those movies are usually under 500K. It's currently pushing out 3mb - 6mb/s now.

    If I upgrade to Apache 2.0, will it increase the performance? Since all of my files are static content.

    I know it's good to use thttpd for busy server, can thttpd support mod_rewrite? If not, how can I easily block other sites hotlink to my server?

    Thanks for any suggestion.

  2. #2
    Join Date
    Nov 2001
    i suggest running seperate servers


    thttpd doesnt support php, i dont think
    so what some people do
    is they have the run on thttpd

    then they setup with apache
    running both webservers

    so on the site

    the php files are linked as

    get what im saying?
    you could do the same
    so if you wanted to use mod rewrite

    you could just do - running apache, have all the mod's you want installed on apache - running thttpd
    on the same box for just static content etc

    just an idea.....

  3. #3
    Join Date
    Jan 2002
    If you don't need the dynamic and wide range of features of Apache, thttpd will probably give you a better performance.

    thttpd's model excells as the network transfer overhead outweights processing time (which is the case for static files, espicially large ones).

    In Apache, a process (or thread) is started for each request to do the initial work of opening the file, executing the script, .. etc. But then it spends the rest of its time doing nothing but sending the contents over the network to the client.
    Ahmad Alhashemi
    PHP, Apache, C, Python, Perl, SQL
    18 related BrainBench certificates

  4. #4
    Join Date
    Jun 2001
    Thanks. In apache, I can add the following code in .htaccess in order to block hotlinking:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^ [NC]
    RewriteCond %{HTTP_REFERER} !^ [NC]
    RewriteCond %{HTTP_REFERER} !^http://yourIPhere [NC]
    RewriteRule [^/]+\.(exe|mpeg|mpg|avi|mp3|gif|jpg|JPG|GIF|MP3|AVI)$ - [F]
    RewriteRule ^/cgi-bin/.+$ - [F]

    Can it easily be done in thttpd?

    clocker1996, I think thttpd supports php, they can work with mod_php now. Free ebook for webhosting and dedicated server review

  5. #5
    Join Date
    Nov 2001
    Ann Arbor, MI
    Some of the busiest sites in the world are still running apache. You might just do some tuning of your apache server and it's configuration file (whether you upgrade or not).

    Of course the super busy sites have multiple servers and reverse proxies.
    -Mark Adams - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts