First Question
Ilan Berkner
ilan at time4learning.com
Tue Nov 1 03:09:18 UTC 2011
A beginner's guess...
Your server is listening on port 443 (HTTPS). Your log file shows that the
file not found is being generated by the HTTP protocol for which your
configuration is not listening on. Are you should that you're accessing
your site using "https://" and not "http://"?
...GET /wac HTTP/1.1", ...
On Mon, Oct 31, 2011 at 11:05 PM, Philip Rhoades <phil at pricom.com.au> wrote:
> People,
>
> I want to switch my Apache SSL to Nginx - that might help me resolve a
> Ruby on
> Rails issue and it is too much work to change all the non-SSL stuff over as
> well - I will do that later when I have time. So for the time being, http
> will
> be handled by Apache and https will be handled by Nginx.
>
> I commented out the default server in:
>
> /etc/nginx/nginx.conf
>
> and changed:
>
> /etc/nginx/conf.d/ssl.conf
>
> thus:
>
> #
> # HTTPS server configuration
> #
>
> server {
> listen 443;
> server_name www.pricom.com.au;
> access_log /var/log/nginx/nginx.vhost.**access.log;
> error_log /var/log/nginx/nginx.vhost.**error.log;
>
> ssl on;
> ssl_certificate /etc/httpd/conf/ssl.crt/**RapidSSL.crt;
> ssl_certificate_key /etc/httpd/conf/ssl.key/mars-**server.key;
>
> ssl_session_timeout 5m;
>
> ssl_protocols SSLv2 SSLv3 TLSv1;
> ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+**
> HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
> ssl_prefer_server_ciphers on;
>
> location / {
> root /var/www/ssl/wac;
> }
> }
>
> but in:
>
> /var/log/nginx/nginx.vhost.**error.log
>
> I get:
>
> 2011/11/01 13:50:28 [error] 9411#0: *7 open() "/usr/share/nginx/html/wac"
> failed (2: No such file or directory), client: 203.206.181.78, server:
> www.pricom.com.au, request: "GET /wac HTTP/1.1", host: "pricom.com.au"
>
> Why is nginx reverting to the default path and how is it getting the right
> dir without the correct path?
>
> Thanks,
>
> Phil.
>
> --
> Philip Rhoades
>
> GPO Box 3411
> Sydney NSW 2001
> Australia
> E-mail: phil at pricom.com.au
>
> ______________________________**_________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/**mailman/listinfo/nginx<http://mailman.nginx.org/mailman/listinfo/nginx>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20111031/0e9b1d56/attachment.html>
More information about the nginx
mailing list