Hello all!
My gateway ip is 10.0.4.150. Nging start on this server.
Seafile ip is 10.0.4.151 and running in fastcgi mode.
I need access to the Seafile from the internet.
I reckon, that the configuration will be a look:
index index.html index.htm index.php;
location /webmail/index.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
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;
rewrite ^/seafhttp(.*)$ $1 break;
rewrite ^/seafmedia(.*)$ /media$1 break;
Directory seahub I moved on the gateway in directory /var/www, and set permissions.
Where I could be mistaken in a config?
Thanks.