WebFaction
Community site: login faq

Below is what I have done. nginx gives 404 not found error. NB: I already did a working seafile config without nginx only that it didwas not able to synchronize with clients in that port 8082 is hard coded on client application.

  1. created an app with open port(passenger)
  2. Pointed (bound) subdomain to that app
  3. my nginx.conf (nginx instance) is as below
  4. started seahub listening to port 8000
  5. started seafile server listening to port 8082

What could be wrong with my nginx config?? Your assistance will be highly appreciated.

worker_processes 1;

events { worker_connections 1024; }

http { 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;

server {
listen 19133;
server_name seafile.tatuweb.co.ke;

proxy_set_header X-Forwarded-For $remote_addr;

location /seafile {
    fastcgi_pass    172.0.0.1:8000;
    fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
    fastcgi_param   PATH_INFO           $fastcgi_script_name;

    fastcgi_param   SERVER_PROTOCOL     $server_protocol;
    fastcgi_param   QUERY_STRING        $query_string;
    fastcgi_param   REQUEST_METHOD      $request_method;
    fastcgi_param   CONTENT_TYPE        $content_type;
    fastcgi_param   CONTENT_LENGTH      $content_length;
    fastcgi_param   SERVER_ADDR         $server_addr;
    fastcgi_param   SERVER_PORT         $server_port;
    fastcgi_param   SERVER_NAME         $server_name;

    #access_log      /var/log/nginx/seahub.access.log;
    #error_log       /var/log/nginx/seahub.error.log;
    access_log  /home/mikeodhiambo/logs/user/access_nginx.log  combined;
    error_log   /home/mikeodhiambo/logs/user/error_nginx.log   crit;
    #root /home/mikeodhiambo/webapps/jayessmart/seafile-pro-server-4.3.4/seahub;
}

location /seafhttp {
    rewrite ^/seafhttp(.*)$ $1 break;
    proxy_pass http://127.0.0.1:8082;
    client_max_body_size 0;
}

location /seafmedia {
    rewrite ^/seafmedia(.*)$ /media$1 break;
    #root /home/user/haiwen/seafile-server-latest/seahub;
root /home/mikeodhiambo/webapps/jayessmart/seafile-pro-server-4.3.4/seahub;
}

}

asked 02 Oct '15, 17:39

MichaelD
112
accept rate: 0%


You need to use the ports assigned by our Control Panel. If you need to use a specific port such as 8082 then please open a support ticket and we will see if we can assign you that port.

permanent link

answered 02 Oct '15, 18:36

aaront ♦♦
7664
accept rate: 27%

aaront, note that I had already tried that getting the same result current configs is

fastcgi_pass 127.0.0.1:11181; proxy_pass http://127.0.0.1:11212;

Which are as assigned by the control panel. same result 404 page not found

see http://seafile.tatuweb.co.ke/

permanent link

answered 02 Oct '15, 18:50

MichaelD
112
accept rate: 0%

Your website is not listening on the correct IP address. It should be listening on the shared ports IP address, which is identified by the ‡, symbol as that is the only IP address the port is opened on.

If you are using the Main IP Address, which is identified by †, then our front end nginx server would be proxying the traffic.

(02 Oct '15, 18:54) aaront ♦♦

It is actually listening on the shared ports IP address which is identified by the ‡.

(02 Oct '15, 19:04) MichaelD
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×113
×97
×3
×1

question asked: 02 Oct '15, 17:39

question was seen: 1,895 times

last updated: 02 Oct '15, 19:04

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM