For Ahmed Soliman. I did not test, but i think it is not complicated.
May be
server {
listen istt-nsk.ru:80;
server_name istt-nsk.ru;
access_log /var/log/nginx/
balder161.startdedicated.com.access.log;
location / {
set $fixed_destination $http_destination;
if ($http_destination ~* ^https(.*)$)
{
set $fixed_destination http$1;
}
proxy_pass https://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For
$proxy_add_x_forwarder_for;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Destination $fixed_destination;
}
}
or may be
server {
listen istt-nsk.ru:80;
server_name istt-nsk.ru;
access_log /var/log/nginx/
balder161.startdedicated.com.access.log;
location / {
set $fixed_destination $http_destination;
if ($http_destination ~* ^https(.*)$)
{
set $fixed_destination http$1;
}
proxy_pass https://externalip:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For
$proxy_add_x_forwarder_for;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Destination $fixed_destination;
}
}
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.