[Olpc-vault-devel] Changes to olpc2.redhat.com configs

Robin Norwood rnorwood at redhat.com
Thu May 31 01:22:17 UTC 2007


Hi,

By the by, I had to make to basic changes to olpc2.redhat.com's
configuration while getting remora to work:

o edit /etc/php.ini to change the line:
-memory_limit = 8M
+memory_limit = 12M

o edit /etc/httpd/conf/httpd.conf to add this section *above* the line:
Include conf.d/*.conf

"""
<VirtualHost *:80>
    ServerAdmin root at localhost
    DocumentRoot /var/www/html
    ServerName olpc2.redhat.com
    ErrorLog logs/olpc2.redhat.com-error_log
    CustomLog logs/olpc2.redhat.com-access_log combined
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin root at localhost
    DocumentRoot /var/www/html/bundle-vault/current
    ServerName olpc2.hosted.redhat.com
    ErrorLog logs/olpc2.hosted.redhat.com-error_log
    CustomLog logs/olpc2.hosted.redhat.com-access_log combined
</VirtualHost>
"""

The first section makes it so that the 'default' virtual host goes to
/var/www/html/index.html (the apache test page).  The second makes it so
that when you go to olpc2.hosted.redhat.com, you get the 'current'
bundle-vault build.  The virtual hosts set up by the nightly build
script in /etc/httpd/conf.d then get loaded by the Include statement,
and if you go to something matching those, you get the right build.  If
you try to go to something that doesn't match any of the virtual hosts,
you get the first one by default (apache test page).  I did it this way
so you don't just get the current build if you misstype the build URL.
We should change this to be 'better' (like a 404), but this is what I
came up with at first blush.

I have the following TODOs:


o Figure out what is wrong with the test suite
  - Gets an 'access denied' message at:
  http://olpc2.hosted.redhat.com/tests

o Figure out how to setup the 'services' stuff
  - The documentation is very vague on this part.  I'll look at again
  tomorrow.

o Get the cron job to clean up old builds.

-RN

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching




More information about the Olpc-vault-devel mailing list