You are not logged in.
I have a running nginx server hosting my web site, but now i'm in chroot and don't now how to make working an owncloud webapp with chrooted http server...
Offline
ok maybe more infos needed...
In nginx.conf (chroot)
I get some lines like
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
But i've not this files in chrooted /run
So can i make use of php-fpm in chroot ?
Here my nginx.conf :
#user html;
worker_processes 1;
#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;
##Default server
server {
listen 80;
server_name mysite.com;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /www/mysite;
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/share/nginx/html;
}
}
##Owncloud
server {
listen 80;
server_name cloud.mysite.com;
root /www/owncloud/;
index index.php;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fas$
include fastcgi_params;
}
}
Offline
I had written here to suggest you divide and conquer, install Nginx first then move it to a chrooted environment. Then I re-read your post and saw that's what you're doing.
I'm also working on setting up owncloud with Nginx. If I get it figured out, I'll come back here to try to help.
Good luck.
Moderator, you may delete this if you like. It is truly a useless post. I'll try to be more helpful when I get back.
Last edited by whatshisname (2013-03-24 16:32:52)
Offline