Commit af1ea31800bfec29ccf6c0b7390ee0aeb75a9f36

Authored by hitier
1 parent cc95f31e

Allow apache subdirectory as WSGIScriptAlias

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
resources/apache2-virtual-host.conf
... ... @@ -14,6 +14,7 @@ Define flaskapp_path /var/www/html/pdc-web
14 14 Define flaskapp_wsgiscript pdc_web.wsgi
15 15 Define flaskapp_server_name your-server-name-comes-here
16 16 Define flaskapp_server_addr your-server-address-comes-here
  17 +Define flaskapp_subdir pdc
17 18 Define flaskapp_user apache
18 19 Define flaskapp_group apache
19 20  
... ... @@ -56,7 +57,7 @@ Define flaskapp_group apache
56 57 python-home=${flaskapp_path}/venv \
57 58 python-path=${flaskapp_path} \
58 59 display-name=%{GROUP}
59   - WSGIScriptAlias / ${flaskapp_path}/${flaskapp_wsgiscript}
  60 + WSGIScriptAlias /${flaskapp_subdir} ${flaskapp_path}/${flaskapp_wsgiscript}
60 61 WSGIProcessGroup ${flaskapp_server_name}
61 62 WSGIApplicationGroup %{GLOBAL}
62 63 <Directory ${flaskapp_path}>
... ...