httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hall <sifuh...@gmail.com>
Subject [users@httpd] virtual hosts help please
Date Mon, 25 Jan 2010 20:28:45 GMT
Hello,

I run a cpanel machine with the following versions:

cPanel 11.25.0-R42404
WHM 11.25.0 - X 3.9
CENTOS 4.7 i686
Apache 2.0.63


We have a client that is running a real estate website using a product from
Transparent Rets that connects and downloads a MLS (real estate) feed to
display on their site.

Transparent Rets has recommended we set the Apache timeout on this site to
10000 seconds.

Needless to say I do not want to set this for every site, so I wanted to try
to use a virtual host directive for this.

I found a few automatically generated virtual host directives on my server
in the /etc/httpd/conf/sites directory so I copied one of those and added
the time out.

First, if anyone could review my attempt to make a virtual host directive I
would *GREATLY* appreciate it.

Second, is there any way to verify the timeout has been increased for this
site, and only this site?


Here is the contents of the file.  I have used xxxx's for privacy





DocumentRoot /home/xxxx/public_html
Port 80
DirectoryIndex index.htm index.html
ServerRoot /usr/local/apache

<VirtualHost 67.225.156.165:80>
    ServerName xxxxx.com
    ServerAlias www.xxxxx.com
    DocumentRoot /home/xxxx/public_html
    ServerAdmin webmaster@xxxx.com
    Timeout 7000
    ## User xxxx # Needed for Cpanel::ApacheConf
    <IfModule mod_suphp.c>
        suPHP_UserGroup xxxx xxxx
    </IfModule>
    <IfModule concurrent_php.c>
        php4_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
        php5_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule !concurrent_php.c>
        <IfModule mod_php4.c>
            php_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
        </IfModule>
        <IfModule mod_php5.c>
            php_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp"
        </IfModule>
        <IfModule sapi_apache2.c>
            php_admin_value open_basedir
"/home/xxxx:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
        </IfModule>
    </IfModule>
    <IfModule !mod_disable_suexec.c>
        SuexecUserGroup xxxxx xxxx
    </IfModule>
    CustomLog /usr/local/apache/domlogs/xxxxx.com-bytes_log "%{%s}t %I
.\n%{%s}t %O ."
    CustomLog /usr/local/apache/domlogs/xxxxx.com combined
    ScriptAlias /cgi-bin/ /home/xxxx/public_html/cgi-bin/
</VirtualHost>

Mime
View raw message