Joshua Parker Ruehlig
Hall of Famer
- Joined
- Dec 5, 2011
- Messages
- 5,949
Yup, that was the issue. OwnCloud's trusted domains line. Glad you got it working!
Warning OCP\Share Sharing backend OCA\Contacts\Share\Addressbook not registered, OCA\Contacts\Share\Addressbook is already registered for addressbook
My error from a couple pages back seems to have resolved itself. Not sure what I did. Anyways, new problem. I'm doing port forwarding to access this externally (eg. ext port: 55555, internal port: 443) however when I try to access the page the rewrite rules are changing the port back to 443. rewrite rules are definitely not my forte, so can anyone help me out with that? Also, I wouldn't mind being able to access it at root instead of /owncloud/.
Thanks
I proxy my SSL using HAProxy, but doing it with NGINX only takes a few lines I believe (though I've never actually done it).
Just keep in mind you'll get SSL errors when connecting unless you either..
- add your certificate to your client
- purchase an SSL cert
- purchase a domain and use StartSSL's free SSL cert (how I do it).
Can you explain a bit more how you set the HAproxy config? I'm trying to do this in pfSense itself because I'd rather terminate SSL there than the ownCloud jail, but I'm not sure what all is required on the proxy side.
cp /var/etc/default.vcl /usr/local/etc/varnish/default.vcl
sub vcl_recv { if (!client.ip ~ haproxy) { set req.http.X-Forwarded-For = client.ip; set req.http.X-Forwarded-Proto = "http"; } # Custom logic to handle different URIs }
#sendfile on; #this isn't helpful is serving files from ZFS set_real_ip_from 192.168.1.1; real_ip_header X-Forwarded-For; map $http_x_forwarded_proto $server_https { default off; https on; } map $http_x_forwarded_proto $host_port { default 80; https 443; }
fastcgi_index index.php; fastcgi_param HTTPS $server_https; fastcgi_param SERVER_NAME $host; fastcgi_param SERVER_PORT $host_port;
Could someone post the step-by-step instructions for the last part of the instructions, please.
*/15 * * * * /usr/local/bin/php -f /usr/local/www/owncloud/cron.php
packagesite in pkg.conf is deprecated. please create a repository configuration file
pkg: warning: use of http // url scheme with srv records is deprecated switch to pkg+http //
Thanks. Just a little change in freeBSD.conf
find_mysql_client: not found
Enter current password for root (enter for none): ERROR 2002 (HY000): Can't connect to local MySQL server throught socket '/tmp/mysql.sock' (2)
Thanks. Just a little change in freeBSD.conf
But now i get an error when starting mysql_secure_installation. Its telling me:and later:Code:find_mysql_client: not foundCode:Enter current password for root (enter for none): ERROR 2002 (HY000): Can't connect to local MySQL server throught socket '/tmp/mysql.sock' (2)
2014/04/29 21:38:39 [error] 59415#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.178.79, server: , request: "GET / HTTP/1.1", host: "192.168.178.158"
2014/04/29 22:07:53 [error] 82616#0: *5 open() "/usr/local/www/index.php" failed (2: No such file or directory), client: 192.168.178.79, server: , request: "GET /owncloud/owncloud HTTP/1.1", host: "192.168.178.158"
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"
listen.owner = www listen.group = www