Thank you Marius,
We are using Phusion Passenger to load nginx and Gitorious Ruby
application, which automatically loads application with port number
3000.
We are loading as a user called gituser, in production environment.
We have mention in config/gitorious.yml, gitorious_user=gituser.
We tried to change from port 3000 to 80 in config/gitorious.yml. But
passenger is loading with port 3000.
use_ssl is set to true.
Please tell me how to change the port to default ports.
I tested and was successful for some other pages with https. SSL
certificates are working normal. I have DNS configured and DNS is also
working normal.
The nginx.conf is:
-----------------------------------------------------------------------------------------------------------------------
#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    passenger_root /usr/local/rvm/gems/ree-1.8.7-2011.03/gems/
passenger-3.0.7;
    passenger_ruby /usr/local/rvm/wrappers/ree-1.8.7-2011.03/ruby;

    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local]
"$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    #keepalive timeout  65;

    #gzip  on;

        ssl on;
        ssl_certificate         server.crt;
        ssl_certificate_key     server.key;

    server {
        listen       80;
        listen  443;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root  /home/gituser/chiliproject;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }


    }

        server {
                        listen 80;
                        listen 443;
                        server_name     www.example.com;

                location /      {
                                root /home/gituser/gitorious/mainline;
                                index index.html;
                                }
                }
}
---------------------------------------------------------------------------------------------------------------------------


On Jul 12, 11:16 am, Marius Mårnes Mathiesen
<[email protected]> wrote:
> On Tue, Jul 12, 2011 at 7:47 AM, prabhu kumar k v 2.0.1.1 <
>
> [email protected]> wrote:
> > Hello all,
> > I am new to Gitorious. The gitorious login page, which has HTTPS
> > connection, is not working. It shows:
>
> >  SECURE CONNECTION FAILED.
> >  ssl_error_rx_record_too_long.
>
> > We are using Ruby Enterprise Edition 1.8.7, Phushion Passenger 3.0.7
> > with nginix web server 1.0.
> > default port of passenger is 3000.
> > SSL certificates are working normal. nginix is configured for SSL and
> > works normal for other SSL pages.
> > ssl_required gem is also installed.
>
> This sounds like a SSL configuration error - is your server running SSL on
> port 443? When you say that other SSL pages work, are these Gitorious
> pages?
>
> There's a thread on Stack Overflow about this message which mentions some
> possible 
> solutions:http://stackoverflow.com/questions/119336/ssl-error-rx-record-too-lon...
>
> - Marius

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to