[ECODP-dev] https http ...with api on 176

Dimitrios Mexis dimitrios.mexis at tenforce.com
Sun Jun 23 01:44:06 UTC 2013


I notice something strange...

I login, to as api, and while I am https first
then this redirects me to http

I attach the ecodp from nginx and ecportal.ini
>From apache, I didn't notice some difference from your test environment.

Can you check if they are ok.

In case you want more details it might be easier to ssh to 192.168.33.176
But I will be happy to assist you.

Thank you
Dimitrios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130623/ab097402/attachment.html>
-------------- next part --------------
# The following variables need to be replaced in the configuration of Nginx. Include to replace all the name variable plus the doller($) sign
#
# $BACKEND : Corresponds to the IP of the server where PostgreSQL CKAN instance database is running
# localhost     : Corresponds to the IP of the server where the frontend is served from, and links to the address of the Apache
#

server {
  listen 80;
  server_name localhost;
  access_log /var/log/nginx/ecodp.log main;
  root /applications/ecodp/users/ecodp/drupal/www;
client_max_body_size 1000M;

   location /data/user {
      rewrite ^ https://$http_host$request_uri? permanent;
   }

   location ~ /[a-zA-z][a-zA-z]/data/user {
      rewrite ^ https://$http_host$request_uri? permanent;
   }

   location /data {
    proxy_pass http://localhost:8008;
    proxy_set_header Host $host:80;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Scheme $scheme;
    proxy_cache cache;
    proxy_cache_bypass $cookie_auth_tkt;
    proxy_no_cache $cookie_auth_tkt;
    proxy_cache_valid 30m;
    proxy_cache_valid 404 5m;
    proxy_ignore_headers "Cache-Control";
  }

  location ~ /[a-zA-z][a-zA-z]/data/.* {
    proxy_pass http://localhost:8008;
    proxy_set_header Host $host:80;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Scheme $scheme;
    proxy_cache cache;
    proxy_cache_bypass $cookie_auth_tkt;
    proxy_no_cache $cookie_auth_tkt;
    proxy_cache_valid 30m;
    proxy_cache_valid 404 5m;
    proxy_ignore_headers "Cache-Control";
  }

   location / {
     proxy_pass http://localhost:8008;
     proxy_set_header Host $host:80;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header X-Scheme $scheme;
   }
}

server {
   listen 443 ssl;
   server_name localhost;
   access_log /var/log/nginx/ecodp.log main;
   root /applications/ecodp/users/ecodp/drupal;
   client_max_body_size 1000M;

   ssl_certificate /applications/ecodp/users/ecodp/ckan/conf/ca.crt;
   ssl_certificate_key /applications/ecodp/users/ecodp/ckan/conf/ca.key;
   ssl_session_cache shared:SSL:10m;

   location /data {
      proxy_pass http://localhost:8008;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Scheme $scheme;
      #proxy_cache cache;
      #proxy_cache_bypass $cookie_auth_tkt;
      #proxy_no_cache $cookie_auth_tkt;
      #proxy_cache_valid 30m;
      #proxy_cache_valid 404 5m;
      #proxy_ignore_headers "Cache-Control";
   }

   location ~ /[a-zA-z][a-zA-z]/data/.* {
      proxy_pass http://localhost:8008;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Scheme $scheme;
      #proxy_cache cache;
      #proxy_cache_bypass $cookie_auth_tkt;
      #proxy_no_cache $cookie_auth_tkt;
      #proxy_cache_valid 30m;
      #proxy_cache_valid 404 5m;
      #proxy_ignore_headers "Cache-Control";
   }

   location / {
      proxy_pass http://localhost:8008;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Scheme $scheme;
   }
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecportal.ini
Type: application/octet-stream
Size: 9551 bytes
Desc: not available
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130623/ab097402/attachment.obj>


More information about the ecodp-dev mailing list