diff --git a/services/webapp/code/rosetta/core_app/utils.py b/services/webapp/code/rosetta/core_app/utils.py index dc4a44c5787ad55cee95cce91ca8f381a779ff0d..c0e90150ddd12f6959d1e80bec158861eb82b17f 100644 --- a/services/webapp/code/rosetta/core_app/utils.py +++ b/services/webapp/code/rosetta/core_app/utils.py @@ -725,6 +725,8 @@ Listen '''+str(task.tcp_tunnel_port)+''' AuthUserFile /shared/etc_apache2_sites_enabled/'''+str(task.uuid)+'''.htpasswd Require valid-user + Redirect "/he1978xhe129" "/" + # preserve Host header to avoid cross-origin problems ProxyPreserveHost on # proxy to the port diff --git a/services/webapp/code/rosetta/core_app/views.py b/services/webapp/code/rosetta/core_app/views.py index c2a2516c62b85a633e2965f315f02ee34928a331..db025f5e914d80ef8542247ca009ba80e589b2c5 100644 --- a/services/webapp/code/rosetta/core_app/views.py +++ b/services/webapp/code/rosetta/core_app/views.py @@ -1224,7 +1224,7 @@ def direct_connection_handler(request, uuid): if task.requires_proxy_auth and task.auth_token and not task.container.disable_http_basicauth_embedding: user = request.user.email password = task.auth_token - redirect_string = 'https://{}:{}@{}:{}'.format(user, password, rosetta_tasks_proxy_host, task.tcp_tunnel_port) + redirect_string = 'https://{}:{}@{}:{}/he1978xhe129'.format(user, password, rosetta_tasks_proxy_host, task.tcp_tunnel_port) else: redirect_string = 'https://{}:{}'.format(rosetta_tasks_proxy_host, task.tcp_tunnel_port) else: