I would suspect that you are having conflicts with port 50 because it is reserved for: "50 TCP UDP Remote Mail Checking Protocol (RMCP)". You should be using anything in the "Dynamic/Private : 49152 through 65535" to avoid conflicts.
For future reference:
Well Known Ports: 0 through 1023. (Usually system reserved)
Registered Ports: 1024 through 49151.
Dynamic/Private : 49152 through 65535.
I'm assuming you meant to say that you should have turned them off? Reading the descriptions in the docs, yes, it is also my understanding that they should have been turned off.
Leave autostart otherwise it won't start during a reboot. I don't remember the name of the other boxes, but everything else should be unchecked except autostart. And then in jail storage (menu option in the left menu frame); be sure mount is checked.
 
	For some reason, starting today, after I updated openssl from ports I started getting 502 bad gateway when trying to get to my owncloud instance. This is what I get when I looked at the nginx-error logs
Code:2014/05/04 13:35:30 [crit] 66145#0: *1 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.1, server: mydomain.com, request: "PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "mydomain.com"
Not sure what's going on here...
Edit:
removing the comment out on
Code:listen.owner = www listen.group = www
fixed it.
#user  nobody;                                                                                                                   
worker_processes  4;                                                                                                             
                                                                                                                                 
#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 {                                                                                                                           
    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;                                                                                                                                                                                                                                                  
 
    upstream php-handler {                                                                                                       
        server unix:/var/run/php-fpm.sock;                                                                                     
    }                                                                                                                                                                                                                                                           
 
    server {                                                                                                                       
        listen 80;                                                                                                                                                                                                                                                     
                                                                                                                                   
        # Path to the root of your installation                                                                                   
        root /usr/local/www/;                                                                                                     
                                                                                                                                   
        # Base Server Locations                                                                                                   
        location = /robots.txt { allow all; log_not_found off; access_log off; }                                                   
        location = /favicon.ico { access_log off; log_not_found off; }                                                             
                                                                                                                                   
        # OwnCloud Installation                                                                                                   
        location ^/owncloud {                                                                                                     
            index index.php;                                                                                                       
            error_page 403 /core/templates/403.php;                                                                               
            error_page 404 /core/templates/404.php;                                                                               
                                                                                                                                   
            # Service Configuration                                                                                               
            client_max_body_size 10G; # set max upload size                                                                       
            fastcgi_buffers 64 4K;                                                                                                 
                                                                                                                                   
            # Service Rewrites                                                                                                     
            rewrite ^/owncloud/caldav(.*)$ /remote.php/caldav$1 redirect;                                                         
            rewrite ^/owncloud/carddav(.*)$ /remote.php/carddav$1 redirect;                                                       
            rewrite ^/owncloud/webdav(.*)$ /remote.php/webdav$1 redirect;                                                         
            rewrite ^/owncloud/apps/([^/]+)/(.+\.(css|php))$ /owncloud/index.php?app=$1&getfile=$2 last;                           
            rewrite ^/owncloud/remote/(.*)$ /owncloud/remote.php/$1 last;                                                         
                                                                                                                                   
            # The following 2 rules are only needed with webfinger                                                                 
            rewrite ^/.well-known/host-meta /public.php?service=host-meta last;                                                   
            rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last; 
 
            rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;                                                           
            rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;                                                             
            rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;                                                                           
            try_files $uri $uri/ /index.php?$args;                                                                                 
                                                                                                                                   
            location ~ ^/(data|config|\.ht|db_structure\.xml|README) {                                                             
                deny all;                                                                                                         
            }                                                                                                                     
                                                                                                                                   
            # Optional: set long EXPIRES header on static assets                                                                   
            location ~* ^.+\.(jpg|jpeg|gif|bmp|ico|png|css|js|swf|svg)$ {                                                         
                expires 30d;                                                                                                       
                # Optional: Don't log access to assets                                                                             
                access_log off;                                                                                                   
            }                                                                                                                     
                                                                                                                                   
            location ~ ^(.+?\.php)(/.*)?$ {                                                                                       
                try_files $1 = 404;                                                                                               
                                                                                                                                   
                include fastcgi_params;                                                                                           
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                                                 
                fastcgi_param PATH_INFO $2;                                                                                       
                fastcgi_pass php-handler;                                                                                         
            }                                                                                                                     
        }                                                                                                                         
    }                                                                                                                             
}         
 
also when oc 7 releases in a month I'll post my full setup and config for freenas. but after that I'll ask that someone else make a stickied thread and maintain the OP cause my production OC setup is a bit different then what I'm posting.
a quick and dirty solution would be to copy over my server block in its entirety, and replace any other ones there. next time I'm just going to post the full file because people seems to have a lot of problems with nginx configs.Good to know. Thanks for the quick reply!
My only concern here is that I tried your config from page 1, but yet still was prompted to download the file as opposed to viewing the page. Any thoughts on what I can change?
a quick and dirty solution would be to copy over my server block in its entirety, and replace any other ones there. next time I'm just going to post the full file because people seems to have a lot of problems with nginx configs.
I'll post the full config tonight when I get home from work. that should minimize the chance of any problems.That is exactly where I began. I removed my Server block and dropped yours in, no changes. It was missing a few "~" on the locations inside /owncloud. After fixing that, I got the download issue. As for NGINX config, I am new to it, but nowhere near a novice, I actually have this server sitting behind an NGINX Reverse Proxy doing some magic on the front-end. As for my tests, they were all via the direct IP, so the Reverse Proxy was never hit, just the Cloud Server itself.
Do you have any other thoughts on fixing this? I have also copy/pasted the NGINX server block from a post on the first page where the user had the location issue as I did. Nothing seems to work. I have also been clearing my cache between runs as to avoid any web caching issue.
does php55 have the fpm option enabled in the compiled version? it didn't at first, then recently added it. if they removed it, were back to compiling php55 from ports and not upgrading it with pkg.Just did a pkg-ng update and upgrade and nginx is now barfing all over itself with 'bad gateway' messages. :p
Going to investigate...
