login.html
sbehrens
nginx-forum at nginx.us
Wed Jun 2 18:58:23 MSD 2010
Here are a few debug logs. Also I am testing this all on a local domain until I get everything working. I know that doesn't matter but just in-case you saw that in the config file. With this setup, if i navigate to my site with /login.html it loads, but if i navigate to the parent page it does not load.
[code]
error.log
2010/05/25 08:48:23 [emerg] 1533#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2010/05/25 08:48:23 [emerg] 1533#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2010/05/25 08:48:23 [emerg] 1533#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2010/05/25 08:48:23 [emerg] 1533#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2010/05/25 08:48:23 [emerg] 1533#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2010/05/25 08:48:23 [emerg] 1533#0: still could not bind()
2010/05/25 13:11:12 [emerg] 2383#0: SSL_CTX_use_certificate_chain_file("/usr/local/nginx/conf/ssl/proxy.matlockcaptial.com.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
2010/05/25 13:12:21 [emerg] 2395#0: SSL_CTX_use_certificate_chain_file("/usr/local/nginx/conf/ssl/proxy.matlockcaptial.com.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
2010/05/28 09:32:39 [emerg] 16800#0: SSL_CTX_use_PrivateKey_file("/usr/local/nginx/conf/ssl/proxy.sanitizedsite.com.key") failed (SSL: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt error:0906A065:PEM routines:PEM_do_header:bad decrypt error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
2010/05/28 09:32:48 [emerg] 16801#0: SSL_CTX_use_PrivateKey_file("/usr/local/nginx/conf/ssl/proxy.sanitizedsite.com.key") failed (SSL: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt error:0906A065:PEM routines:PEM_do_header:bad decrypt error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
2010/05/28 09:57:16 [emerg] 16916#0: unknown directive "ssl_perfer_server_ciphers" in /usr/local/nginx/conf/nginx.conf:47
2010/05/29 04:00:43 [emerg] 1426#0: SSL_CTX_use_PrivateKey_file("/usr/local/nginx/conf/ssl/proxy.sanitizedsite.com.key") failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0906A068:PEM routines:PEM_do_header:bad password read error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
2010/06/01 11:28:27 [emerg] 17365#0: "proxy_cache" zone "cache" is unknown in /usr/local/nginx/conf/nginx.conf:76
2010/06/02 09:01:49 [emerg] 22132#0: SSL_CTX_use_PrivateKey_file("/usr/local/nginx/conf/ssl/proxy.sanitizedsite.com.key") failed (SSL: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt error:0906A065:PEM routines:PEM_do_header:bad decrypt error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
[/code]
[code]
ssl-error.log
2010/06/02 07:48:53 [error] 21819#0: *3 open() "/usr/local/nginx/html/res/-4045289697674020822.js;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/-4045289697674020822.js;jsessionid=6655B4E200A841134A80B4C3FEE908CC?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:48:53 [error] 21819#0: *6 open() "/usr/local/nginx/html/res/5519527726661553067.css;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/5519527726661553067.css;jsessionid=6655B4E200A841134A80B4C3FEE908CC?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:48:53 [error] 21819#0: *5 open() "/usr/local/nginx/html/res/-7047022519376031888.css;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/-7047022519376031888.css;jsessionid=6655B4E200A841134A80B4C3FEE908CC?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:48:53 [error] 21819#0: *3 open() "/usr/local/nginx/html/img/logoLogin.gif;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /img/logoLogin.gif;jsessionid=6655B4E200A841134A80B4C3FEE908CC HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:48:53 [error] 21819#0: *6 open() "/usr/local/nginx/html/img/ajax-loader.gif;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /img/ajax-loader.gif;jsessionid=6655B4E200A841134A80B4C3FEE908CC HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:48:53 [error] 21819#0: *5 open() "/usr/local/nginx/html/img/help.gif;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /img/help.gif;jsessionid=6655B4E200A841134A80B4C3FEE908CC HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:48:53 [error] 21819#0: *3 open() "/usr/local/nginx/html/favicon20.ico;jsessionid=6655B4E200A841134A80B4C3FEE908CC" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /favicon20.ico;jsessionid=6655B4E200A841134A80B4C3FEE908CC HTTP/1.1", host: "10.10.1.98"
2010/06/02 07:49:02 [error] 21819#0: *6 open() "/usr/local/nginx/html/login.html" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /login.html HTTP/1.1", host: "10.10.1.98"
2010/06/02 07:49:05 [error] 21819#0: *3 open() "/usr/local/nginx/html/res/-8762791360234593415.js" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/-8762791360234593415.js?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *6 open() "/usr/local/nginx/html/res/-7047022519376031888.css" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/-7047022519376031888.css?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *5 open() "/usr/local/nginx/html/res/5519527726661553067.css" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/5519527726661553067.css?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *8 open() "/usr/local/nginx/html/res/-4045289697674020822.js" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /res/-4045289697674020822.js?v=1273871614523 HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *3 open() "/usr/local/nginx/html/img/logoLogin.gif" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /img/logoLogin.gif HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *6 open() "/usr/local/nginx/html/img/ajax-loader.gif" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /img/ajax-loader.gif HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *5 open() "/usr/local/nginx/html/img/help.gif" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /img/help.gif HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
2010/06/02 07:49:05 [error] 21819#0: *8 open() "/usr/local/nginx/html/favicon20.ico" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "GET /favicon20.ico HTTP/1.1", host: "10.10.1.98"
2010/06/02 07:49:13 [error] 21819#0: *3 open() "/usr/local/nginx/html/loginSubmit.html" failed (2: No such file or directory), client: 10.10.1.194, server: mwebproxy01.sanitizedsite.local, request: "POST /loginSubmit.html HTTP/1.1", host: "10.10.1.98", referrer: "https://10.10.1.98/"
[/code]
[code]
nginx.conf
pid logs/nginx.pid;
user nginx nginx;
worker_processes 10;
events {
worker_connections 1024;
}
http {
default_type application/octet-stream;
## Common options ##
include options.conf;
## Proxy settings ##
include proxy.conf;
include mime.types;
server {
### server port and name ###
listen 443 ssl;
server_name mwebproxy01.sanitizedsite.local;
### SSL log files ###
access_log logs/ssl-access.log;
error_log logs/ssl-error.log;
index login.html;
root /usr/local/nginx/html;
ssl on;
### SSL cert files ###
ssl_certificate ssl/proxy.sanitizedsite.com.crt;
ssl_certificate_key ssl/proxy.sanitizedsite.com.key;
### Add SSL specific settings here ###
keepalive_timeout 60;
### Limiting Ciphers ########################
ssl_ciphers HIGH:!ADH;
ssl_protocols SSLv3;
location / {
proxy_pass http://10.10.1.158:9080/;
### force timeouts if one of backend is died ##
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_cache cache;
proxy_cache_valid 200 24h;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_ignore_headers Expires Cache-Control;
### Set headers ####
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
### Most PHP, Python, Rails, Java App can use this header ###
proxy_set_header X-Forwarded-Proto https;
### By default we don't want to redirect it ####
proxy_redirect off;
}
}
}
[/code]
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,93195,93599#msg-93599
More information about the nginx
mailing list