---------- Forwarded message ----------
From: "Richard Pope" <ric...@memespring.co.uk>
Date: 11 Jul 2010 18:54
Subject: Re: apache
To: "Matt Joyce" <matt....@gmail.com>
There is a .htaccess file that handles the rewrites:
http://code.google.com/p/theelectionleafletproject/source/browse/trunk/docs/.htaccess
So it should just be a case of allowing rewrites in your apache config files.
My local apache httpd.conf file (Apache 2 / OS X) looks has the following in it:
<VirtualHost 127.0.0.1>
DocumentRoot /data/vhost/electionleaflet/docs
ServerName localhost.electionleaflet
<Directory "/data/vhost/electionleaflet/docs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
php_value include_path
".:/data/vhost/electionleaflet/includes:/data/vhost/electionleaflet/includes/PEAR:/data/vhost/electionleaflet/config"
</Directory>
</VirtualHost>
And the live server (Apache 2 / Ubuntu) has this mess:
# Live site
<VirtualHost *:80>
ServerName www.thestraightchoice.org
ServerAdmin fra...@flourish.org
DocumentRoot /data/vhost/thestraightchoice.org/docs
ErrorLog "| /usr/sbin/rotatelogs
/data/vhost/thestraightchoice.org/logs/error_log 86400"
CustomLog "| /usr/sbin/rotatelogs
/data/vhost/thestraightchoice.org/logs/access_log 86400" combined
env=!log_discard
SuexecUserGroup tsc tsc
php_value include_path
".:/data/vhost/thestraightchoice.org/includes:/data/vhost/thestraightchoice.org/includes/PEAR:/data/vhost/thestraightchoice.org/config"
<Directory "/data/vhost/thestraightchoice.org/docs">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
Options +ExecCGI
</Directory>
# Martin's cave overlay stuff (temporary home)
<Location "/map">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonDebug On
PythonPath "[
'/home/tsc/theelectionleafletproject/djangoleaflets',
'/home/tsc/theelectionleafletproject' ] + sys.path"
</Location>
</VirtualHost>
# staging site
<VirtualHost *:80>
ServerName staging.thestraightchoice.org
ServerAdmin fra...@flourish.org
DocumentRoot /data/vhost/staging.thestraightchoice.org/docs
ErrorLog "| /usr/sbin/rotatelogs
/data/vhost/staging.thestraightchoice.org/logs/error_log 86400"
CustomLog "| /usr/sbin/rotatelogs
/data/vhost/staging.thestraightchoice.org/logs/access_log 86400"
combined env=!log_discard
SuexecUserGroup tsc tsc
php_value include_path
".:/data/vhost/staging.thestraightchoice.org/includes:/data/vhost/staging.thestraightchoice.org/includes/PEAR:/data/vhost/staging.thestraightchoice.org/config"
<Directory "/data/vhost/staging.thestraightchoice.org/docs">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from all
Options +ExecCGI
</Directory>
</VirtualHost>
# This doesn't work!!! why???
# I've frigged a symbolic link in the
/data/vhost/therightchoice.org/docs directory
<VirtualHost *:80>
ServerName blog.thestraightchoice.org
ServerAdmin fra...@flourish.org
DocumentRoot /data/vhost/blog.thestraightchoice.org/docs
ErrorLog "| /usr/sbin/rotatelogs
/data/vhost/blog.thestraightchoice.org/logs/error_log 86400"
CustomLog "| /usr/sbin/rotatelogs
/data/vhost/blog.thestraightchoice.org/logs/access_log 86400" combined
env=!log_discard
SuexecUserGroup tsc tsc
<Directory "/data/vhost/blog.thestraightchoice.org/docs">
AllowOverride All
Options Indexes Includes FollowSymLinks MultiViews
#Options FollowSymLinks
Order allow,deny
Allow from all
Options +ExecCGI
</Directory>
</VirtualHost>
#################################################################################
--
On Sat, Jul 10, 2010 at 1:22 PM, Matt Joyce <matt....@gmail.com> wrote:
> Richard, do you apache?...
/*
ric...@memespring.co.uk
memespring.co.uk
++44 7976730458
memespring (flickr/skype/etc)
memspr (aim)
*/