Good evening Joshua, I have been working on this jail installation for the past few days. Not surprisingly, every time I follow the guide, my nginx.conf is the cause of some problems (at least, I think). For starters, my file information is quite a bit different than yours shown, and even what others have posted on this forum. The reason I think nginx.conf is the issue, is because I type in my ip, and the "Welcome to nginx!" page appears. So things are working on some level!
The nginx.conf file should be posted below. I have tried a few things with this file, trying to rule out possibilities before writing here on the forum. Of those, I replaced the entire file with what you have shown. I got the spdy module error. I then tried to replace from http up until the virtual host part: got the spdy moduel error. I probably tried a few other things. Each time, I get the spgy module error. Oh, I should mention I run the |service nginx reload| command.
As of now I redid everything (databases, jails, CL entries). Though, I have hardly messed with nginx.conf and only changed the worker_processes line, and am afraid to change anything else. If you have time, I would really appreciate your help. A few things I want to ask that may or may not matter depending on your suggestions. Sendfile and gzip are both off in your example, but are on for me. Should I change those instances to match? More specifically, in your github how-to, the words that are turquoise, should those all be changed?
Thanks again, I really appreciate the comprehensive guide. This was the first time I used command line, and so far you've made it easy.
Code:
#user nobody;
worker_processes 2;
#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;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/local/www/nginx;
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 /usr/local/www/nginx-dist;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}