Note to self before I delete this entry.
This will redirect an entire site:
Server Admin -> Your server -> Web -> Your site -> Aliases -> Url Aliases and Redirects
Type = RedirectMatch
Pattern = .*
Path = http://example.com
|
|||||
|
Note to self before I delete this entry. If you change the configuration for any site using the Mac OS X Server Admin tool, it will rewrite every single site file in the /etc/apache2/site/ folder. Do not change these by hand if you use this tool. As with OS X Leopard Server, the OS X Leopard standard OS is missing Apache config statements to enable PHP support. Of course with standard Leopard, you don’t get the fancy Server Admin tool to let us fix it via a GUI, so we do it by hand: LoadModule php5_module [...] Phusion Passenger, a.k.a. mod_rails, is a Ruby on Rails server integrated tightly with apache. Here is what I did to get it working on Mac OS X. sudo gem install passenger Per the install instructions [...] In OS X Leopard, out of the box (at least on the System I got access to) Apache2 is missing an AddHandler statement for PHP, so PHP won’t work if you just enable the module. Here is how to fix that through Server Admin: To shut up apache when it’s complaining about “cant reliably establish hostname”, the response from /bin/hostname must match the first entry on the 127.0.0.1 line in /etc/hosts. |
|||||
|
Copyright © 2010 Sam Pierson's Blog - All Rights Reserved |
|||||