LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-20-2012, 08:56 AM   #1
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Rep: Reputation: Disabled
How can i increase the performance of Apache web server


Hi All,

Can anyone help me how can i speed of my apache web server hosted in VPS . I had already include mod deflate to compress the content .Our customer was keep on complaining about the slow performance of our server .Can anyone help me how can i increase the performance of my apache server .Whether its my configuring mistake make my site loads very slow .

NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com

Alias /cms/modules/ /tomcat/webapps/cms/modules
Alias /cms/themes/ /tomcat/webapps/cms/themes
Alias /cms/images/ /tomcat/webapps/cms/images
Alias /cms/css/ /tomcat/webapps/cms/css
Alias /images /tomcat/static/images
Alias /js /tomcat/static/js
Alias /css /tomcat/static/css
Alias /cms/admin /tomcat/webapps/cms/admin
Alias /cms/generated /tomcat/webapps/cms/generated


Alias /php /tomcat/static/php

<Directory /tomcat/static/php>
DirectoryIndex index.php
AllowOverride FileInfo
Options -Indexes +FollowSymLinks -MultiViews
Order allow,deny
Allow from all
</Directory>

<Directory /deployement/tomcat/static>
Allow from all
</Directory>



JkMount /* worker1
JkMount / worker1
#JkMount /dumile worker1

JkMount /cms/* worker1
JkMount /cms/ worker1
JkMount /cms worker1

JkUnMount /images worker1
JkUnMount /*.jpg worker1
JkUnMount /*.gif worker1
JkUnMount /*.png worker1
JkUnMount /*.css worker1
JkUnMount /*.js worker1
JkUnMount /*.swf worker1
JkUnMount /*.ico worker1


#caching
Header unset ETag
FileETag None
<FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Last-Modified
Header set Cache-Control "max-age=7200, must-revalidate"
Header set Cache-Control "public, no-transform"
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>

#compress content with type html, text, and css
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/*

</VirtualHost>

Last edited by jayakumar01; 06-20-2012 at 09:04 AM.
 
Old 06-21-2012, 02:54 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,413

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
As you don't include the specs of your VPS and the number of web pages you are displaying per hour it's difficult to say where the problem is.
 
Old 06-22-2012, 10:10 AM   #3
Ghostwheel
Member
 
Registered: Jun 2004
Location: Mid Michigan
Distribution: CentOS, Ubuntu
Posts: 41

Rep: Reputation: 0
Switch to a lighter web server such as nginx or lightttpd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to increase Linux server performance tapas.tuku Linux - Server 9 01-27-2012 03:31 PM
LXer: Improve Web Site Performance on Apache HTTP LXer Syndicated Linux News 0 01-24-2012 08:50 AM
increase perl web script performance? vbsaltydog Linux - Server 3 10-19-2008 08:44 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Web Server Performance hotrodowner Linux - Networking 7 06-28-2002 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration