Skip to content

Commit

Permalink
Update instructions for Nginx config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbabu committed Nov 19, 2013
1 parent c50b56d commit 004e640
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions doc/conf.py
Expand Up @@ -57,6 +57,8 @@
.. |sqlalchemy| replace:: SQLAlchemy
.. |javascript| replace:: JavaScript
.. |apache| replace:: Apache
.. |nginx_config_file| replace:: /etc/nginx/sites-available/ckan_default
.. |reload_nginx| replace:: sudo service nginx reload
'''

Expand Down Expand Up @@ -87,7 +89,7 @@
href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons
Attribution ShareAlike (Unported) v3.0 License</a>.<br />
<img src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png" alt="CC License Logo" />
<a href="http://opendefinition.org/"><img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" border="0"
<a href="http://opendefinition.org/"><img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" border="0"
alt="{{ _('Open Content') }}" /></a>
'''
html_show_sphinx = False
Expand Down Expand Up @@ -146,7 +148,7 @@
#'sidebarbgcolor': '#F2F2F2',
#'sidebartextcolor': 'black',
#'sidebarlinkcolor': '#355F7C',
#'headfont': 'Trebuchet MS'
#'headfont': 'Trebuchet MS'
#}
sys.path.append(os.path.abspath('_themes'))
html_theme_path = ['_themes']
Expand Down
7 changes: 6 additions & 1 deletion doc/deployment.rst
Expand Up @@ -140,9 +140,12 @@ to the WSGI script that you created above. Your WSGI script in turn directs the
requests to your CKAN instance.

-------------------------------
7. Create the Nginx Config File
7. Create the Nginx config file
-------------------------------

Create your site's Nginx config file at |nginx_config_file|, with the
following contents:

.. parsed-literal::
proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=cache:30m max_size=250m;
Expand Down Expand Up @@ -174,7 +177,9 @@ Finally, enable your CKAN site in Apache:
.. parsed-literal::
sudo a2ensite ckan_default
sudo ln -s |nginx_config_file| /etc/nginx/sites-enabled/ckan_default
|reload_apache|
|reload_nginx|
You should now be able to visit your server in a web browser and see your new
CKAN instance.
Expand Down

0 comments on commit 004e640

Please sign in to comment.