LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   apache performance tuning (https://www.linuxquestions.org/questions/linux-enterprise-47/apache-performance-tuning-534685/)

sachin1361 03-05-2007 04:25 AM

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 ????

fooks 03-05-2007 06:19 AM

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 :D and apache was alive there...:)


All times are GMT -5. The time now is 05:19 AM.