I am following Joshua's guide to install owncloud in a jail. I am having consistent issues with the nginx.conf file. Originally, I posted in the FreeNAS forum specific to the owncloud jail: https://forums.freenas.org/index.ph...x-php-fpm-and-mysql.17786/page-38#post-239496
I was told to come here. Below I will post what I have in my nginx.conf file so I might get some help. When I run
I appreciate any help.
I was told to come here. Below I will post what I have in my nginx.conf file so I might get some help. When I run
service nginx reload
I get this error:
Code:
nginx: [emerg] the "spdy" parameter requires ngx_http_spdy_module in /usr/local/etc/nginx/nginx.conf:21
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
Code:
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile off;
keepalive_timeout 65;
gzip off;
server {
listen 80;
server_name www.yourdomain.com yourdomain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 spdy;
server_name www.yourdomain.com yourdomain.com;
root /usr/local/www;
location = /robots.txt { allow all; access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
location ^~ /owncloud {
index index.php;
try_files $uri $uri/ /owncloud/index.php$is_args$args;
client_max_body_size 512M;
location ^/owncloud/(?:\.|data|config|db_structure\.xml|README) {
deny all;
}
location \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
}
location \.(?:jpg|gif|ico|png|css|js|svg)$ {
expires 30d; add_header Cache-Control public;
}
location ^/owncloud/data {
internal;
alias /mnt/files;
}
}
}
}