0
|
1 .. _apache:
|
|
2
|
|
3 How can I run Orthanc behind Apache?
|
|
4 ====================================
|
|
5
|
|
6 It is possible to make Orthanc run behind Apache using the `reverse
|
|
7 proxy mechanism <https://en.wikipedia.org/wiki/Reverse_proxy>`_. To
|
|
8 map the REST API of an Orthanc server listening on the port 8000 on
|
|
9 the URI ``/Orthanc``, paste the following code in your
|
|
10 ``/etc/apache2/httpd.conf``::
|
|
11
|
|
12 LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
|
|
13 LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
|
|
14 ProxyRequests On
|
|
15 ProxyPass /Orthanc/ http://localhost:8000/ retry=0
|
|
16
|
|
17 *Note*: These instructions are for Ubuntu 11.10. You most probably
|
|
18 have to adapt the absolute paths above to your distribution.
|
114
|
19
|
|
20 You might also wish to adapt the ``LimitRequestBody`` `configuration
|
|
21 option of Apache
|
|
22 <https://www.cyberciti.biz/faq/apache-limiting-upload-size/>`__ to
|
|
23 allow the uploading of large DICOM files if using the :ref:`REST API
|
|
24 <sending-dicom-images>` of Orthanc.
|
|
25
|