LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 03-05-2007, 04:25 AM   #1
sachin1361
Member
 
Registered: Feb 2007
Posts: 126

Rep: Reputation: 15
apache performance tuning


I am using Linux ES-4 edition and studying abt apache performance tuning. Documentations suugests using FollowSymLinks instead of SymLinksIfOwnerMatch for DocumentRoot to prevent extra system calls for each filename. Pl clarify my doubt if we use different virtual hosts having different document root path. Should i place these directives in each <VirtualHost> boxes as displayed below:

<VirtualHost *:80>
ServerName www.mysite.com
DocumentRoot /web/sites/path
<Directory />
Options FollowSymLinks
</Directory>

<Directory /web/sites/path>
Options -FollowSymLinks +SymLinksIfOwnerMatch
</Directory>
DirectoryIndex b.html
</VirtualHost
>


will this configuration work ????
 
Old 03-05-2007, 06:19 AM   #2
fooks
Member
 
Registered: Jan 2007
Location: Ukraine
Posts: 47

Rep: Reputation: 15
Quote:
Originally Posted by sachin1361
Should i place these directives in each <VirtualHost> boxes as displayed below:

<VirtualHost *:80>
...
DocumentRoot /web/sites/path
...
<Directory />
Options FollowSymLinks
</Directory>
<Directory /web/sites/path>
Options -FollowSymLinks +SymLinksIfOwnerMatch
</Directory>
...
</VirtualHost
>

will this configuration work ????
Strictly say, it will not work because of <Directory /> syntax typo error .

In serious, yes, if you have few virtual hosts, each of them has it`s own document root and therefore you have to include these two Directory options (for site / and for DocumentRoot) in every virtualhost.

I do not care about these options tunning, because, IMHO, they are a kind of paranoic - i mean, it should be done if it is the latest thing to increase performance. I`m using apache on virtual hosting, ~1000 virtual hosts.
I saw even 4000 virtual hosts and apache was alive there...
 
  


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
Filesystem/RAID Performance Tuning/Optimization comsatcat Linux - General 1 06-05-2004 09:54 AM
memory/performance tuning guide? wijnands Linux - Newbie 2 05-07-2004 03:14 PM
network performance tuning Skunk_Face Linux - Networking 1 04-16-2004 05:50 AM
NFS Performance Tuning joeclark Linux - Networking 2 03-16-2004 08:08 PM
maintenance and performance tuning? groovin Linux - General 3 06-30-2003 09:20 PM


All times are GMT -5. The time now is 09:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration