Skip to content

Commit 5a640aa

Browse files
committed
Update wsgi and httpd configuration
1 parent ca5dbb4 commit 5a640aa

4 files changed

Lines changed: 21 additions & 32 deletions

File tree

ESSArch_TA/config/httpd-eta.conf

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
#
2727
Listen 4445
2828
<VirtualHost *:4445>
29-
#ServerName ess50
30-
ServerName essarch3_eta
29+
ServerName essarch_ta
3130
# Logs
3231
ErrorLog /ESSArch/eta/log/httpd_error.log
3332
TransferLog /ESSArch/eta/log/httpd_access.log
@@ -37,28 +36,27 @@ Listen 4445
3736
# SSL
3837
SSLEngine on
3938
SSLCipherSuite HIGH:MEDIUM
40-
SSLCertificateFile /ESSArch/eta/config/ssl/server.crt
41-
SSLCertificateKeyFile /ESSArch/eta/config/ssl/server.key
42-
SSLCertificateChainFile /ESSArch/eta/config/ssl/ca.crt
43-
SSLCACertificateFile /ESSArch/eta/config/ssl/ca.crt
39+
SSLCertificateFile /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/config/ssl/server.crt
40+
SSLCertificateKeyFile /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/config/ssl/server.key
41+
SSLCertificateChainFile /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/config/ssl/ca.crt
42+
SSLCACertificateFile /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/config/ssl/ca.crt
4443

4544
###
46-
Alias /static/ /ESSArch/eta/static/
45+
Alias /static/ /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/static/
4746

48-
<Directory /ESSArch/eta/static/>
47+
<Directory /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/static/>
4948
Order deny,allow
5049
Allow from all
5150
</Directory>
5251

53-
WSGIDaemonProcess essarch_eta processes=2 threads=10 display-name=%{GROUP} python-path=/ESSArch/eta:/ESSArch/bin
52+
WSGIDaemonProcess essarch_eta processes=2 threads=10 display-name=%{GROUP} python-path=/ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA:/ESSArch/config
5453
WSGIProcessGroup essarch_eta
55-
WSGIScriptAlias / /ESSArch/eta/config/wsgi.py
54+
WSGIScriptAlias / /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA/config/wsgi.py
5655

57-
<Directory /ESSArch/eta>
56+
<Directory /ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA>
5857
<Files wsgi.py>
5958
Order allow,deny
6059
Allow from all
6160
</Files>
6261
</Directory>
63-
</VirtualHost>
64-
62+
</VirtualHost>

ESSArch_TA/config/wsgi.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,8 @@
1919
Web - http://www.essolutions.se
2020
Email - essarch@essolutions.se
2121
'''
22-
2322
"""
24-
WSGI config for ESSArch Tools project.
25-
26-
This module contains the WSGI application used by Django's development server
27-
and any production WSGI deployments. It should expose a module-level variable
28-
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
29-
this application via the ``WSGI_APPLICATION`` setting.
30-
31-
Usually you will have the standard Django WSGI application here, but it also
32-
might make sense to replace the whole Django WSGI application with a custom one
33-
that later delegates to the Django one. For example, you could introduce WSGI
34-
middleware here, or combine a Django application with an application of another
35-
framework.
36-
23+
WSGI config for ESSArch TA.
3724
"""
3825
import os, sys, platform
3926

@@ -43,10 +30,11 @@
4330
execfile(activate_this, dict(__file__=activate_this))
4431
sys.path.append('/ESSArch/eta')
4532
else:
46-
sys.path.append('/ESSArch/eta') # append path
33+
sys.path.append('/ESSArch/pd/python/lib/python2.7/site-packages/ESSArch_TA')
34+
sys.path.append('/ESSArch/config')
35+
#sys.path.append('/ESSArch/eta') # append path
4736

4837
os.environ["DJANGO_SETTINGS_MODULE"] = "config.settings"
4938

5039
from django.core.wsgi import get_wsgi_application
5140
application = get_wsgi_application()
52-

ESSArch_TA/install/install_default_config_eta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def installdefaultparameters(): # default config parameters
5555

5656
# set default parameters according to site_profile SE
5757
if site_profile == "SE" :
58-
dct = {
58+
dct = {
5959
'site_profile':site_profile,
6060
'zone': zone ,
6161
'package_descriptionfile':'info.xml',

MANIFEST.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
recursive-include * *.js *.html *.txt *.gif *.png *.css *.wsdl *.xml *.xsd *.sh *.types
1+
recursive-include * *.js *.html *.txt *.gif *.png *.css *.wsdl *.xml *.xsd *.sh
22
include versioneer.py
3-
include ESSArch_TA/_version.py
3+
recursive-include ESSArch_TA/config *.conf *.crt *.key
4+
recursive-include ESSArch_TA/env *.xsd *.types
5+
recursive-include ESSArch_TA/static *
6+
recursive-include ESSArch_TA/testdata *

0 commit comments

Comments
 (0)