Skip to content

Instantly share code, notes, and snippets.

@kindly
Created May 24, 2012 15:50
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kindly/2782349 to your computer and use it in GitHub Desktop.
Save kindly/2782349 to your computer and use it in GitHub Desktop.
Sample apache configuration for running ckan side by side with drupal.
<VirtualHost *:80>
ServerName test.ckan.org
ServerAlias test.ckan.org localhost
#Drupal instance
DocumentRoot /var/www/drupal
DirectoryIndex index.phtml index.html index.php index.htm
# CKAN lives under /data
WSGIScriptAlias /data /dir/to/wsgi.py
WSGIDaemonProcess test.ckan.org display-name=test.ckan.org processes=2 threads=10
WSGIProcessGroup test.ckan.org
# Pass authorization info on (needed for rest api)
WSGIPassAuthorization On
# Drupal has all requests apart form /data
<Directory /var/www/drupal>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/test.ckan.error.log
CustomLog /var/log/apache2/test.ckan.custom.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment