beltet
Dabbler
- Joined
- Sep 24, 2013
- Messages
- 26
Hi!
First of I want to thank Joshua for the guide and everything. I choosed this guide because that Cyberjock made SSL to work, so thanks for that aswell.
But...
I stumbled upon some bumps here. When I'm going to acces the webgui I only get a 502 Bad gateway. i belive its a nginx problem. But not sure.
Can you have a look at the nginx code I have and see if thats the problem.
I deleted quite much that I thougt I didn't needed. Those blocks was marked with #(bypassed?) and made some errors when I was trying to start the nginx server. Maybe I deleted to much? I have tried to restart(start and stop) the jail with no success. Hope I have given you the info you need.
Sincerely
First of I want to thank Joshua for the guide and everything. I choosed this guide because that Cyberjock made SSL to work, so thanks for that aswell.
But...
I stumbled upon some bumps here. When I'm going to acces the webgui I only get a 502 Bad gateway. i belive its a nginx problem. But not sure.
Can you have a look at the nginx code I have and see if thats the problem.
Code:
#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;
server {
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/ /index.php?$args;
client_max_body_size 15G;
location ~ ^/owncloud/(?:\.|data|config|db_structure\.xml|README) {
deny all;
}
rewrite ^/owncloud/apps/([^/]+)/(.+\.(css|php))$ /owncloud/index.php?app=$1&getfile=$2 last;
rewrite ^/owncloud/remote/(.*)$ /owncloud/remote.php/$1 last;
location ~ \.php/? {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(?:jpg|gif|ico|png|css|js|svg)$ {
expires max; add_header Cache-Control public;
}
}
}
}
I deleted quite much that I thougt I didn't needed. Those blocks was marked with #(bypassed?) and made some errors when I was trying to start the nginx server. Maybe I deleted to much? I have tried to restart(start and stop) the jail with no success. Hope I have given you the info you need.
Sincerely