我正在尝试修改现有堆栈,以允许用户在一台主机上访问django应用程序的两个不同版本。由于内部DNS问题,我只能使用corpnet.com/abc /
域我试图在abc.conf中添加两个虚拟主机
java.lang.IllegalStateException: Did not find platform for taskName=[task-abc] , taskId=[123]
at org.springframework.cloud.dataflow.server.service.impl.DefaultTaskJobService.restartJobExecution(DefaultTaskJobService.java:195)
Apache 似乎理解此配置,因为 apache2ctl -S 返回:
<VirtualHost *:443>
WSGIScriptAlias /abc/prod /var/www/abc/abc-django/abc/wsgi.py
ServerName corpnet.com/abc/prod
DocumentRoot /var/www/abc/abc-django/abc
...
</VirtualHost>
<VirtualHost *:443>
WSGIScriptAlias /abc/test /var/www/abc/abc-django-test/abc/wsgi.py
ServerName corpnet.com/abc/test
DocumentRoot /var/www/abc/abc-django-test/abc
...
</VirtualHost>
/ abc / prod路径有效,而/ abc / test返回404
我想念什么?