Joyent

Translations of this page:

How to set up Apache 2.2

Pull down Jason's Apache 2.2 config

The Accelerators delivered recently (since mid April 2007) already come with a better Apache template, which has bugs fixed, and is tuned to the actual Accelerator's size better. In other words, you should not gain anything by following this tutorial. You may download it and compare the configuration of course, and it's always a good idea to learn the stuff you'll be running on.

# cd /opt/csw/apache2/ 
# mv etc etc-original
# svn export http://svn.joyent.com/public/accelerators/configs/apache2/etc/ etc                                                              
A    etc
A    etc/magic
A    etc/includes
A    etc/includes/indexes.conf
A    etc/includes/handlers.conf
A    etc/includes/namevirtualhostIPs.conf
A    etc/includes/ssl.conf
A    etc/includes/modgeoip.conf
A    etc/includes/logs.conf
A    etc/includes/directory.conf
A    etc/includes/deflate.conf
A    etc/includes/keepalive.conf
A    etc/includes/languages.conf
A    etc/includes/modsecurity.conf
A    etc/includes/listenIPs.conf
A    etc/includes/dav.conf
A    etc/includes/pid.conf
A    etc/includes/spelling.conf
A    etc/includes/mailman.conf
A    etc/includes/scriptalias.conf
A    etc/includes/expires.conf
A    etc/includes/fastcgi.conf
A    etc/includes/dso.conf
A    etc/includes/modphp.conf
A    etc/includes/core.conf
A    etc/includes/phpfastcgi.conf
A    etc/includes/mimetype.conf
A    etc/includes/charset.conf
A    etc/includes/mpm.conf
A    etc/httpd.conf
A    etc/virtualhosts
A    etc/httpd.conf.dist
A    etc/mime.types

What's your public IP address?

Find out with the *mypublicip* command, copy and paste it into two files:

# mypublicip

# nano etc/includes/namevirtualhostIPs.conf 
# nano etc/includes/listenIPs.conf

PHP and SVN

If you're going to be doing php or svn, then:

# nano etc/includes/dso.conf

And uncomment the svn and php modules towards the end of the list

# nano etc/httpd.conf

And uncomment the mod_php line, then:

# apachectl restart

Virtualhosts

Virtualhost files go in …

/opt/csw/apache2/etc/virtualhosts/

and have the .conf extension

Memory Tuning

includes/mpm.conf

has several options that may be useful for tuning to your specific application for your S or M accelerator.

 
accelerators/kb/apache/configuration.txt · Last modified: 2008/01/31 12:25 by alexbcoles
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki