I have been charged with getting rid of our Apache Proxy servers in favor 
of nginx.

 There seems to be an issue with the nginx config or otherwise method of 
using headers to pass information.  
  When running swagger from the correct URL. I.E. mydomain.com everything 
seems to be going well.

  I click try it and it comes back with a no response from server error. 
 The odd part is that the url has been replaced with an IP address which 
won't work because of the way that nginx routes the website requests.

curl -X GET --header 'Accept: */*' --header 'Auth-Token: 
*AUTH-TOKEN-REMOVED* 
'https://10.NNN.NNN.NNN/demo-thp-api/rest/authenticate/keepalive'

The IP is the correct IP but again that just won't work.

 Thanks in advance,
TCD

<nginx_config>
server  {

  listen  443 ssl;
  server_name  mydomain.com;

ssl_certificate      /opt/nginx/conf/ssl.crt/mydomain.com.crt;
ssl_certificate_key  /opt/nginx/conf/ssl.key/mydomaon.com.key;

  ssl  on;
  ssl_session_cache  builtin:1000  shared:SSL:10m;
  ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
  ssl_ciphers  AES256+EECDH:AES256+EDH:!aNULL;
  ssl_prefer_server_ciphers  on;
  ssl_session_timeout  5m;

  location  / {

      proxy_set_header        Host $host;
      proxy_set_header        X-Real-IP $remote_addr;
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header        X-Forwarded-Proto $scheme;

     proxy_pass  http://mydomain.com:443;
      proxy_read_timeout  90;

  }
}
</nginx_config>

<apache_config>
#Listen 10.xxx.xxx.xxx:80
<VirtualHost *:80>
ServerName  mydomain.com:80
Redirect permanent / https://mydomain.com/
Redirect permanent /login.psp https://mydomain.com/
ErrorLog "/var/log/httpd/mydomain.com_error_log"
</VirtualHost>

#Listen 10.xxx.xxx.xxx:443 moved to Listen.conf
<VirtualHost *:443>
ServerName  mydomain.com:443
ServerAlias  mydomain.com:443
SSLProxyEngine On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerExpire on
ProxyPass /  https://mydomain.com/
ProxyPassReverse /  https://mydomain.com/
ServerAdmin [email protected]
ErrorLog "/var/log/httpd/mydomain.com_error_log"
#TransferLog logs/ssl_access_log

DirectoryIndex  index.php index.html index.htm
ServerSignature email
Options +Includes
XBitHack on
<Directory "/web">
     AllowOverride none
     Options Indexes Includes FollowSymLinks
</Directory>
#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.com.crt
#   Server Private Key:
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mydomain.com.key
SSLCertificateChainFile /etc/httpd/conf/ssl.crt/mydomain.com-chain.crt
</apache_config>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to