Picture of lalit karki
serving adapt application through web proxy (nginx) with a base url
by lalit karki - Tuesday, 4 December 2018, 10:17 AM
 

I have been trying serve adapt via nginx with url say  www.xxx.com/adapt.
is there any configuartion available to set base url path in adapt authoring tool.

my configuration

 location /adapt/  {
    proxy_pass http://127.0.0.1:5000/;

}

Picture of andy man
Re: serving adapt application through web proxy (nginx) with a base url
by andy man - Tuesday, 4 December 2018, 12:48 PM
 

I like to know the same thing too.

Picture of Sam Tsiu
Re: serving adapt application through web proxy (nginx) with a base url
by Sam Tsiu - Wednesday, 5 December 2018, 4:15 AM
 

here's my nginx configuration for the authoring tool. I use a adapt.xxx.com url rather than xxx.com/adapt. Not sure if this is of help.

server {
listen 80;
server_name adapt.xxx.com;
return 301 https://$server_name$request_uri;

}
server {
listen 443 ssl;
server_name adapt.xxx.com;

# add Strict-Transport-Security to prevent man in the middle attacks
add_header Strict-Transport-Security "max-age=31536000";

ssl_certificate /etc/nginx/ssl/sslcertificate.pem;
ssl_certificate_key /etc/nginx/ssl/sslcertificate.key;

ssl_session_timeout 60m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:5000;
}
}

Picture of lalit karki
Re: serving adapt application through web proxy (nginx) with a base url
by lalit karki - Wednesday, 5 December 2018, 7:10 AM
 

 thanks for suggestion, but we are serving many other servers in the www.xxx.com/adapt format.

Picture of Peter van Bussel
Re: serving adapt application through web proxy (nginx) with a base url
by Peter van Bussel - Monday, 4 November 2019, 2:19 PM
 

Hi Community,

Can anyone help me with an Apache2 configuration on Debian next to Sam's solution for Nginx? Should I add a proxy server? If so can anyone help me with a Squid configuration?

Regards,

Peter