1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache How To Improve performance?

Discussion in 'Server Configuration and Hosting' started by Marcus, Oct 30, 2011.

  1. Marcus

    Marcus Well-Known Member

    I switched from my old nginx forum to apache xenforo and while the pages are served faster, the page load from my server doubled. That is because of apache. Do you know a webpage which specializes on optimizing apache for forums? I am thinking of a list how to compile apache, which modules to remove ...
  2. Luke F

    Luke F Well-Known Member

    Why would you switch from nginx to apache?
    Forsaken likes this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

    Use Expires directive for static content such as jpg,png,CSS,etc.

    I can't post mine because I'm on the iPhone but will post it later if I get the chance.

    Shaun :D
  4. Marcus

    Marcus Well-Known Member

    I have cached all static files already. I switched servers and on the new server I first wanted to try out apache, if it is really that slow. nginx was fast for sure :)
  5. CyclingTribe

    CyclingTribe Well-Known Member

    It caches them on the visitors browser so they don't need to be requested from your server:

    ExpiresActive on
    ExpiresByType text/css "access plus 1 day"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/ico "access plus 1 month"
    ExpiresByType image/icon "access plus 1 month"
    These are the ones I have in Apache at the moment.
  6. Marcus

    Marcus Well-Known Member

    Thanks! Which modules do you have activated in your php / apache?
  7. Jesepi

    Jesepi Well-Known Member

    Why did you leave nginx? Just curious, as I was having some issues myself that had me considering the same transition.
  8. Marcus

    Marcus Well-Known Member

    I moved servers and apache is the stock configuration.
  9. Floris

    Floris Guest

    VPS or Dedicated?
  10. Marcus

    Marcus Well-Known Member

    I am on a dedicated server. These are the modules I have activated/deactivated now:
    I have also moved .htaccess in httpd.conf

Share This Page