johnodon Posted February 16, 2016 Share Posted February 16, 2016 Looking for some help with reverse proxy...but my situation is a little different. I was able to accomplish what I want to do by using Nginx. Here is my run command: docker run --name nginxtcp -d -p 8112:8112 -p 58846:58846 --link OpenVPN-Client:deluge -v /mnt/cache/Docker/nginxtcp/nginx.conf:/usr/local/nginx/conf/nginx.conf zack/nginx-tcp-proxy And my nginx.conf: daemon off; http { server { listen 8005; location /status { tcp_check_status; } } } tcp { upstream delugedaemon { server deluge:58846; check interval=3000 rise=2 fall=5 timeout=1000; } server { listen 58846; proxy_pass delugedaemon; } } tcp { upstream deluge { server deluge:8112; check interval=3000 rise=2 fall=5 timeout=1000; } server { listen 8112; proxy_pass deluge; } } worker_processes 20; events { worker_connections 1024; } I am now able to connect to the Deluge webui via http://unraid:8112. However, I would like to translate the above to my Apache container so I can remove the Nginx one. John Quote Link to comment
johnodon Posted February 20, 2016 Share Posted February 20, 2016 Does anyone have SAB running behind a reverse proxy using this container. I got Deluge, CP and Sonarr to work. However, SAB is being a pain. I am able to reach the server but I get a view that looks like this: Yes...I cleared browser cache and I tried two different browsers (Chrome and Edge). There is some info on the SAB wiki: http://wiki.sabnzbd.org/howto-apache and I wonder if these are the relevant bits: Apache 2 Required modules: proxy.load and proxy_http.load and... Note on Apache 2.4: Modules: a2enmod proxy proxy_http Quote Link to comment
johnodon Posted February 20, 2016 Share Posted February 20, 2016 So, nothing to do with modules as they are already loaded. I thought it may have been because I chose a different theme (Plush Gold). But when I set it back to default, that didn't help. Quote Link to comment
johnodon Posted February 20, 2016 Share Posted February 20, 2016 Not sure what did it but it is working now. I copied this from the wiki and just changed the server from localhost to my unraid IP: <Location /sabnzbd> order deny,allow deny from all allow from all ProxyPass http://localhost:8080/sabnzbd ProxyPassReverse http://localhost:8080/sabnzbd </Location> I swear this is exactly what I had in there before. Oh well...it works. John Quote Link to comment
JonathanM Posted March 5, 2016 Share Posted March 5, 2016 I just updated, and now it won't start. ------------------------------------- _ _ _ | |___| (_) ___ | / __| | |/ _ \ | \__ \ | | (_) | |_|___/ |_|\___/ |_| Brought to you by linuxserver.io We do accept donations at: https://www.linuxserver.io/donations ------------------------------------- GID/UID ------------------------------------- User uid: 99 User gid: 100 ------------------------------------- finding fastest mirror 1. ubuntu.wikimedia.org Latency: 25 ms Org: Wikimedia Foundation Status: Up to date Speed: 1 Gbps 2. mirror.symnds.com Latency: 27 ms Org: SymNDS Status: Up to date Speed: 1 Gbps 3. mirror.cogentco.com Latency: 33 ms Org: Cogent Communications Status: Up to date Speed: 1 Gbps New config file saved to /defaults/sources.list We are now refreshing packages from apt repositories, this *may* take a while Ign http://ubuntu.wikimedia.org trusty InRelease Get:1 http://ubuntu.wikimedia.org trusty-updates InRelease [65.9 kB] Get:2 http://ubuntu.wikimedia.org trusty-security InRelease [65.9 kB] Get:3 http://ubuntu.wikimedia.org trusty Release.gpg [933 B] Get:4 http://ubuntu.wikimedia.org trusty-updates/main Sources [327 kB] Get:5 http://ubuntu.wikimedia.org trusty-updates/restricted Sources [5,217 B] Get:6 http://ubuntu.wikimedia.org trusty-updates/universe Sources [189 kB] Get:7 http://ubuntu.wikimedia.org trusty-updates/multiverse Sources [5,498 B] Get:8 http://ubuntu.wikimedia.org trusty-updates/main amd64 Packages [901 kB] Get:9 http://ubuntu.wikimedia.org trusty-updates/restricted amd64 Packages [23.5 kB] Get:10 http://ubuntu.wikimedia.org trusty-updates/universe amd64 Packages [439 kB] Get:11 http://ubuntu.wikimedia.org trusty-updates/multiverse amd64 Packages [14.3 kB] Get:12 http://ubuntu.wikimedia.org trusty-security/main Sources [134 kB] Get:13 http://ubuntu.wikimedia.org trusty-security/restricted Sources [3,920 B] Get:14 http://ubuntu.wikimedia.org trusty-security/universe Sources [38.2 kB] Get:15 http://ubuntu.wikimedia.org trusty-security/multiverse Sources [2,548 B] Get:16 http://ubuntu.wikimedia.org trusty-security/main amd64 Packages [533 kB] Get:17 http://ubuntu.wikimedia.org trusty-security/restricted amd64 Packages [20.2 kB] Get:18 http://ubuntu.wikimedia.org trusty-security/universe amd64 Packages [161 kB] Get:19 http://ubuntu.wikimedia.org trusty-security/multiverse amd64 Packages [4,852 B] Get:20 http://ubuntu.wikimedia.org trusty Release [58.5 kB] Get:21 http://ubuntu.wikimedia.org trusty/main Sources [1,335 kB] Get:22 http://ubuntu.wikimedia.org trusty/restricted Sources [5,335 B] Get:23 http://ubuntu.wikimedia.org trusty/universe Sources [7,926 kB] Get:24 http://ubuntu.wikimedia.org trusty/multiverse Sources [211 kB] Get:25 http://ubuntu.wikimedia.org trusty/main amd64 Packages [1,743 kB] Get:26 http://ubuntu.wikimedia.org trusty/restricted amd64 Packages [16.0 kB] Get:27 http://ubuntu.wikimedia.org trusty/universe amd64 Packages [7,589 kB] Get:28 http://ubuntu.wikimedia.org trusty/multiverse amd64 Packages [169 kB] Fetched 22.0 MB in 4s (4,745 kB/s) Reading package lists... (Reading database ... 15210 files and directories currently installed.) Preparing to unpack .../openssl_1.0.1f-1ubuntu2.18_amd64.deb ... Unpacking openssl (1.0.1f-1ubuntu2.18) over (1.0.1f-1ubuntu2.17) ... Setting up openssl (1.0.1f-1ubuntu2.18) ... using keys found in /config/keys Mar 4 20:27:50 30189fac4268 syslog-ng[117]: syslog-ng starting up; version='3.5.3' Action '-D FOREGROUND' failed. The Apache error log may have more information. * Stopping web server apache2 * Action '-D FOREGROUND' failed. The Apache error log may have more information. * Stopping web server apache2 If I leave the docker running, it just repeats the last 4 lines over and over. The apache error log doesn't have any new lines, it stopped when I updated the docker. I deleted the log files hoping that maybe new ones with the error would populate, but nada. Any ideas on troubleshooting? I can't find any reference to "FOREGROUND" in any of my config files, but maybe I missed it. I didn't change anything, just updated the docker. Thanks for any help. Quote Link to comment
CHBMB Posted March 5, 2016 Share Posted March 5, 2016 I just updated, and now it won't start. ------------------------------------- _ _ _ | |___| (_) ___ | / __| | |/ _ \ | \__ \ | | (_) | |_|___/ |_|\___/ |_| Brought to you by linuxserver.io We do accept donations at: https://www.linuxserver.io/donations ------------------------------------- GID/UID ------------------------------------- User uid: 99 User gid: 100 ------------------------------------- finding fastest mirror 1. ubuntu.wikimedia.org Latency: 25 ms Org: Wikimedia Foundation Status: Up to date Speed: 1 Gbps 2. mirror.symnds.com Latency: 27 ms Org: SymNDS Status: Up to date Speed: 1 Gbps 3. mirror.cogentco.com Latency: 33 ms Org: Cogent Communications Status: Up to date Speed: 1 Gbps New config file saved to /defaults/sources.list We are now refreshing packages from apt repositories, this *may* take a while Ign http://ubuntu.wikimedia.org trusty InRelease Get:1 http://ubuntu.wikimedia.org trusty-updates InRelease [65.9 kB] Get:2 http://ubuntu.wikimedia.org trusty-security InRelease [65.9 kB] Get:3 http://ubuntu.wikimedia.org trusty Release.gpg [933 B] Get:4 http://ubuntu.wikimedia.org trusty-updates/main Sources [327 kB] Get:5 http://ubuntu.wikimedia.org trusty-updates/restricted Sources [5,217 B] Get:6 http://ubuntu.wikimedia.org trusty-updates/universe Sources [189 kB] Get:7 http://ubuntu.wikimedia.org trusty-updates/multiverse Sources [5,498 B] Get:8 http://ubuntu.wikimedia.org trusty-updates/main amd64 Packages [901 kB] Get:9 http://ubuntu.wikimedia.org trusty-updates/restricted amd64 Packages [23.5 kB] Get:10 http://ubuntu.wikimedia.org trusty-updates/universe amd64 Packages [439 kB] Get:11 http://ubuntu.wikimedia.org trusty-updates/multiverse amd64 Packages [14.3 kB] Get:12 http://ubuntu.wikimedia.org trusty-security/main Sources [134 kB] Get:13 http://ubuntu.wikimedia.org trusty-security/restricted Sources [3,920 B] Get:14 http://ubuntu.wikimedia.org trusty-security/universe Sources [38.2 kB] Get:15 http://ubuntu.wikimedia.org trusty-security/multiverse Sources [2,548 B] Get:16 http://ubuntu.wikimedia.org trusty-security/main amd64 Packages [533 kB] Get:17 http://ubuntu.wikimedia.org trusty-security/restricted amd64 Packages [20.2 kB] Get:18 http://ubuntu.wikimedia.org trusty-security/universe amd64 Packages [161 kB] Get:19 http://ubuntu.wikimedia.org trusty-security/multiverse amd64 Packages [4,852 B] Get:20 http://ubuntu.wikimedia.org trusty Release [58.5 kB] Get:21 http://ubuntu.wikimedia.org trusty/main Sources [1,335 kB] Get:22 http://ubuntu.wikimedia.org trusty/restricted Sources [5,335 B] Get:23 http://ubuntu.wikimedia.org trusty/universe Sources [7,926 kB] Get:24 http://ubuntu.wikimedia.org trusty/multiverse Sources [211 kB] Get:25 http://ubuntu.wikimedia.org trusty/main amd64 Packages [1,743 kB] Get:26 http://ubuntu.wikimedia.org trusty/restricted amd64 Packages [16.0 kB] Get:27 http://ubuntu.wikimedia.org trusty/universe amd64 Packages [7,589 kB] Get:28 http://ubuntu.wikimedia.org trusty/multiverse amd64 Packages [169 kB] Fetched 22.0 MB in 4s (4,745 kB/s) Reading package lists... (Reading database ... 15210 files and directories currently installed.) Preparing to unpack .../openssl_1.0.1f-1ubuntu2.18_amd64.deb ... Unpacking openssl (1.0.1f-1ubuntu2.18) over (1.0.1f-1ubuntu2.17) ... Setting up openssl (1.0.1f-1ubuntu2.18) ... using keys found in /config/keys Mar 4 20:27:50 30189fac4268 syslog-ng[117]: syslog-ng starting up; version='3.5.3' Action '-D FOREGROUND' failed. The Apache error log may have more information. * Stopping web server apache2 * Action '-D FOREGROUND' failed. The Apache error log may have more information. * Stopping web server apache2 If I leave the docker running, it just repeats the last 4 lines over and over. The apache error log doesn't have any new lines, it stopped when I updated the docker. I deleted the log files hoping that maybe new ones with the error would populate, but nada. Any ideas on troubleshooting? I can't find any reference to "FOREGROUND" in any of my config files, but maybe I missed it. I didn't change anything, just updated the docker. Thanks for any help. Hmmm... I updated the container the other day and had no issues. Have you made any changes to the container via cmd line within it? Just wondering if they've been lost and there's something in your config that is then throwing a wobbly... Quote Link to comment
JonathanM Posted March 5, 2016 Share Posted March 5, 2016 I updated the container the other day and had no issues. Have you made any changes to the container via cmd line within it? Just wondering if they've been lost and there's something in your config that is then throwing a wobbly... Ahh, crap. That's probably it. I vaguely remember installing stuff for cgi-bin support. I was hoping it would be integrated into the container by the time I updated, but I guess not. Quote Link to comment
CHBMB Posted March 5, 2016 Share Posted March 5, 2016 I updated the container the other day and had no issues. Have you made any changes to the container via cmd line within it? Just wondering if they've been lost and there's something in your config that is then throwing a wobbly... Ahh, crap. That's probably it. I vaguely remember installing stuff for cgi-bin support. I was hoping it would be integrated into the container by the time I updated, but I guess not. Could try a PR in the repo... Can't promise anything as I'm not the author, but at least it'll get looked at.. Quote Link to comment
JonathanM Posted March 5, 2016 Share Posted March 5, 2016 Found it! In the meantime, let me know exactly the steps you do to install the necessary modules and I'll do what I can.. Simple change, exec into the container and sudo apt-get install libapache2-mod-perl2 Quote Link to comment
hunter69 Posted April 13, 2016 Share Posted April 13, 2016 Can you please help me get ssl functioning? I cannot seem to get it going with a personal startssl cert. Info I bought a domain from godaddy. My domain is "hunterstec.com. I paid the $60 for a 2 year personal ssl certificate. I went through all the steps to obtain the cert. I followed the following link to assist me in installing the certificates that I obtained from startssl. https://www.linuxserver.io/index.php/overview-reverse-proxy-with-docker/add-ssl-to-your-apache-reverseproxy-docker/ Here is what I have: a .key called hunterstec.key a cert called 2_.hunterstec.com.crt a SSLCertificateChainFile called 1_root_bundle.crt I placed the files this path Apache/config/keys Now the above tutorial does not talk about editing the config file but other tutorials talk about the necessity so it will know the ssl cert I placed into Apache/config/keys I am attaching my config screenshot. What I have tried (and has not worked)is: I changed the cert.crt to 2_.hunterstec.com.crt and changed the cert.key to hunterstec.key. Saved the config file. Restarted Apache. This did not work. I then repeated the steps above but also added an entry for SSLCertificateChainFile (this made no difference). What am I missing? Quote Link to comment
hunter69 Posted April 13, 2016 Share Posted April 13, 2016 Can you please help me get ssl functioning? I cannot seem to get it going with a personal startssl cert. Info I bought a domain from godaddy. My domain is "hunterstec.com. I paid the $60 for a 2 year personal ssl certificate. I went through all the steps to obtain the cert. I followed the following link to assist me in installing the certificates that I obtained from startssl. https://www.linuxserver.io/index.php/overview-reverse-proxy-with-docker/add-ssl-to-your-apache-reverseproxy-docker/ Here is what I have: a .key called hunterstec.key a cert called 2_.hunterstec.com.crt a SSLCertificateChainFile called 1_root_bundle.crt I placed the files this path Apache/config/keys Now the above tutorial does not talk about editing the config file but other tutorials talk about the necessity so it will know the ssl cert I placed into Apache/config/keys I am attaching my config screenshot. What I have tried (and has not worked)is: I changed the cert.crt to 2_.hunterstec.com.crt and changed the cert.key to hunterstec.key. Saved the config file. Restarted Apache. This did not work. I then repeated the steps above but also added an entry for SSLCertificateChainFile (this made no difference). What am I missing? FYI I managed to get this functioning. I only utilized the 2_.hunterstec.com.crt and the huntertec.key. I had to rename both files to cert.crt and cert.key. I replaced the files located in the keys folder. I now have a function ssl connection to my apache server using a startssl personal ssl certificate. Quote Link to comment
CHBMB Posted April 13, 2016 Share Posted April 13, 2016 FYI I managed to get this functioning. I only utilized the 2_.hunterstec.com.crt and the huntertec.key. I had to rename both files to cert.crt and cert.key. I replaced the files located in the keys folder. I now have a function ssl connection to my apache server using a startssl personal ssl certificate. That's great, I had spotted your post and I think I may be the only ls.io member who has used StartSSL recently, as the process has changed a little since the original tutorial on our website. Unfortunately as I am away at the moment I wasn't going to be able to help until later in the month. Glad you got it sorted, any problems and I'll try and help out on my return. Sent from my LG-H815 using Tapatalk Quote Link to comment
hunter69 Posted April 13, 2016 Share Posted April 13, 2016 Thanks for the reply. There are only 2 things I am wonder: 1. How do people edit the Apache configure file. Every time I edit it, it stops ssl. 2. I received 3 files for ssl. The cert, .key and chain file. I am not sure why I don't have to use the chain file. Currently I use midnight commander to edit the config. I bet if I could figure out how to edit the config properly I would be able get things done faster. Bill Sent from my iPhone using Tapatalk Quote Link to comment
CHBMB Posted April 13, 2016 Share Posted April 13, 2016 Bill, I edit the default.conf file using notepad++ on windows. If there are any errors in the syntax of the default.conf file then Apache won't start. When I get home I can post you an example of my default.conf although if you search for "default.conf" on the forums I expect you'll turn up a few posts from me with examples posted elsewhere. When you edit the default.conf as soon as you save it the container spots that it's changed and restarts. If Apache then doesn't start then it's because, to use a technical term, buggered the default.conf syntax. Sent from my LG-H815 using Tapatalk Quote Link to comment
CHBMB Posted April 13, 2016 Share Posted April 13, 2016 Bill here's an example of my default.conf here.... http://lime-technology.com/forum/index.php?topic=46847.msg447790.msg#447790 Sent from my LG-H815 using Tapatalk Quote Link to comment
hunter69 Posted April 13, 2016 Share Posted April 13, 2016 Bill here's an example of my default.conf here.... http://lime-technology.com/forum/index.php?topic=46847.msg447790.msg#447790 Sent from my LG-H815 using Tapatalk Are you editing your config file using MC (midnight commander)? Quote Link to comment
CHBMB Posted April 13, 2016 Share Posted April 13, 2016 Errrr.... See my post above the one you just quoted... Sent from my LG-H815 using Tapatalk Quote Link to comment
hunter69 Posted April 14, 2016 Share Posted April 14, 2016 Errrr.... See my post above the one you just quoted... Sent from my LG-H815 using Tapatalk Thanks I will be working on it tonight. Do you have a config with owncloud in it. Thanks so much Bill Quote Link to comment
CHBMB Posted April 14, 2016 Share Posted April 14, 2016 Errrr.... See my post above the one you just quoted... Sent from my LG-H815 using Tapatalk Thanks I will be working on it tonight. Do you have a config with owncloud in it. Thanks so much Bill I do, and have posted it several times on the forum. If you can't find it I'll post it in a couple of weeks if you're still struggling. (When I get home) Sent from my LG-H815 using Tapatalk Quote Link to comment
chaosratt Posted April 17, 2016 Share Posted April 17, 2016 Hi do you all intend to add lets encrypt support to this apache docker any time soon? Any idea if this will be added?? I've noticed the nginx docker with it, but I'm more comfortable with apache myself. +1 I hate doing this .... but +1 Quote Link to comment
hunter69 Posted April 18, 2016 Share Posted April 18, 2016 Well I have https working for my reverse proxy. I also have owncloud working . I cannot seem to access owncloud through my reverse proxy. Can anyone look at my config and see what my issue is? Owncloud Config $CONFIG = array ( 'instanceid' => 'oc8n5nt4nvsb', 'passwordsalt' => 'secret', 'secret' => 'anothersecret', 'trusted_domains' => array ( 0 => '192.168.2.97', 1 => 'server.com', ), 'truested_proxies' => ['192.168.2.97'], 'datadirectory' => '/var/www/html/data', 'overwrite.cli.url' => 'https:/server.com', 'overwritehost' => 'server.com', 'overwriteprotocol' => 'https', 'dbtype' => 'sqlite3', 'version' => '9.0.1.3', 'logtimezone' => 'UTC', 'installed' => true, 'forcessl' => true, 'forceSSLforSubdomains' => true, ); apache default config <VirtualHost *:80> DocumentRoot /config/www/ <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:443> ServerName www.example.com SSLEngine on SSLCertificateFile "/config/keys/server.crt" SSLCertificateKeyFile "/config/keys/server.key" SSLCertificateChainFile "/config/keys/root.crt" DocumentRoot /config/www/ <Location /owncloud> ProxyPass https://server.com:8000 ProxyPassReverse https://server.com:8000 <Location> <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> Thank you for any help Bill Quote Link to comment
hunter69 Posted April 22, 2016 Share Posted April 22, 2016 Errrr.... See my post above the one you just quoted... Sent from my LG-H815 using Tapatalk Thanks I will be working on it tonight. Do you have a config with owncloud in it. Thanks so much Bill I do, and have posted it several times on the forum. If you can't find it I'll post it in a couple of weeks if you're still struggling. (When I get home) Sent from my LG-H815 using Tapatalk So I am still struggling to get owncloud working behind the Apache reverse Proxy. Here is what I have accomplished: 1. I have ssl working to apache using startssl and cloudflare. I can get to the apache webpage using https://server.com 2. I managed to get Owncloud working with mariadb. I ran into the bin logging bug and managed to change bin logging=mixed using the mysql toolbox. Here is where I am struggling to make work. I want to go to https://server.com/owncloud. I always get an error no matter what changes I make. I am editing the owncloud config.php and apache default.conf. Here is the apache default.conf is: <VirtualHost *:80> DocumentRoot /config/www/ <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:443> ServerName www.example.com SSLEngine on SSLCertificateFile "/config/keys/server.crt" SSLCertificateKeyFile "/config/keys/server.key" SSLCertificateChainFile "/config/keys/root.crt" DocumentRoot /config/www/ <Location /owncloud> ProxyPass https://server.com:8000 ProxyPassReverse https://server.com:8000 <Location> <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> No I have started over several times with owncloud. This must be where I don't understand the necessary changes. I am connecting to apache through https but I cannot connect to owncloud using https no matter what I change. Http has no issue. Could you help me make the proper changes in order to connect to owncloud through the apache reverse proxy using https? Thanks for any help provided Bill Quote Link to comment
CHBMB Posted April 22, 2016 Share Posted April 22, 2016 Errrr.... See my post above the one you just quoted... Sent from my LG-H815 using Tapatalk Thanks I will be working on it tonight. Do you have a config with owncloud in it. Thanks so much Bill I do, and have posted it several times on the forum. If you can't find it I'll post it in a couple of weeks if you're still struggling. (When I get home) Sent from my LG-H815 using Tapatalk So I am still struggling to get owncloud working behind the Apache reverse Proxy. Here is what I have accomplished: 1. I have ssl working to apache using startssl and cloudflare. I can get to the apache webpage using https://server.com 2. I managed to get Owncloud working with mariadb. I ran into the bin logging bug and managed to change bin logging=mixed using the mysql toolbox. Here is where I am struggling to make work. I want to go to https://server.com/owncloud. I always get an error no matter what changes I make. I am editing the owncloud config.php and apache default.conf. Here is the apache default.conf is: <VirtualHost *:80> DocumentRoot /config/www/ <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:443> ServerName www.example.com SSLEngine on SSLCertificateFile "/config/keys/server.crt" SSLCertificateKeyFile "/config/keys/server.key" SSLCertificateChainFile "/config/keys/root.crt" DocumentRoot /config/www/ <Location /owncloud> ProxyPass https://server.com:8000 ProxyPassReverse https://server.com:8000 <Location> <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> No I have started over several times with owncloud. This must be where I don't understand the necessary changes. I am connecting to apache through https but I cannot connect to owncloud using https no matter what I change. Http has no issue. Could you help me make the proper changes in order to connect to owncloud through the apache reverse proxy using https? Thanks for any help provided Bill Bill there's also a config file that needs to be changed for Owncloud. I think it is config.php but I'll need to check when I get some time. I've posted the changes required before on the board and they're almost certainly in the owncloud thread. Sent from my LG-H815 using Tapatalk Quote Link to comment
hunter69 Posted April 22, 2016 Share Posted April 22, 2016 Errrr.... See my post above the one you just quoted... Sent from my LG-H815 using Tapatalk Thanks I will be working on it tonight. Do you have a config with owncloud in it. Here is my current config.php (it is unmodified at this time) Thanks so much Bill I do, and have posted it several times on the forum. If you can't find it I'll post it in a couple of weeks if you're still struggling. (When I get home) Sent from my LG-H815 using Tapatalk So I am still struggling to get owncloud working behind the Apache reverse Proxy. Here is what I have accomplished: 1. I have ssl working to apache using startssl and cloudflare. I can get to the apache webpage using https://server.com 2. I managed to get Owncloud working with mariadb. I ran into the bin logging bug and managed to change bin logging=mixed using the mysql toolbox. Here is where I am struggling to make work. I want to go to https://server.com/owncloud. I always get an error no matter what changes I make. I am editing the owncloud config.php and apache default.conf. Here is the apache default.conf is: <VirtualHost *:80> DocumentRoot /config/www/ <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:443> ServerName www.example.com SSLEngine on SSLCertificateFile "/config/keys/server.crt" SSLCertificateKeyFile "/config/keys/server.key" SSLCertificateChainFile "/config/keys/root.crt" DocumentRoot /config/www/ <Location /owncloud> ProxyPass https://server.com:8000 ProxyPassReverse https://server.com:8000 <Location> <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> No I have started over several times with owncloud. This must be where I don't understand the necessary changes. I am connecting to apache through https but I cannot connect to owncloud using https no matter what I change. Http has no issue. Could you help me make the proper changes in order to connect to owncloud through the apache reverse proxy using https? Thanks for any help provided Bill Bill there's also a config file that needs to be changed for Owncloud. I think it is config.php but I'll need to check when I get some time. I've posted the changes required before on the board and they're almost certainly in the owncloud thread. Sent from my LG-H815 using Tapatalk That is what I am looking for. I have found changes needed in the config.php but it doesn't seem to matter what I do in the owncloud config.php I have not got it to work. SO I was looking to see what specifics needed to be change to see what I am doing wrong. I keep thinking it is tied to https in owncloud. I keep thinking that since I am accessing the apache server using https, then it is forwarding https to owncloud. I have never been able to access owncloud via https. I will type https://localserverip:8000. Owncloud does not respond. So when I try to access owncloud vis https://server.com/owncloud it does not respond. Am I making sense? Here is my current unmodified config.php. <?php $CONFIG = array ( 'instanceid' => 'instance_id', 'passwordsalt' => 'password', 'secret' => 'secretnumbers', 'trusted_domains' => array ( 0 => '192.168.2.97:8000', ), 'datadirectory' => '/var/www/html/data', 'overwrite.cli.url' => 'http://192.168.2.97:8000', 'dbtype' => 'mysql', 'version' => '9.0.1.3', 'dbname' => 'owncloud', 'dbhost' => '192.168.2.97', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud', 'dbpassword' => 'dbpassword', 'logtimezone' => 'UTC', 'installed' => true, ); Thanks for helping me out Bill Quote Link to comment
hunter69 Posted April 25, 2016 Share Posted April 25, 2016 Well I have https working for my reverse proxy. I also have owncloud working . I cannot seem to access owncloud through my reverse proxy. Can anyone look at my config and see what my issue is? Owncloud Config $CONFIG = array ( 'instanceid' => 'oc8n5nt4nvsb', 'passwordsalt' => 'secret', 'secret' => 'anothersecret', 'trusted_domains' => array ( 0 => '192.168.2.97', 1 => 'server.com', ), 'truested_proxies' => ['192.168.2.97'], 'datadirectory' => '/var/www/html/data', 'overwrite.cli.url' => 'https:/server.com', 'overwritehost' => 'server.com', 'overwriteprotocol' => 'https', 'dbtype' => 'sqlite3', 'version' => '9.0.1.3', 'logtimezone' => 'UTC', 'installed' => true, 'forcessl' => true, 'forceSSLforSubdomains' => true, ); apache default config <VirtualHost *:80> DocumentRoot /config/www/ <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:443> ServerName www.example.com SSLEngine on SSLCertificateFile "/config/keys/server.crt" SSLCertificateKeyFile "/config/keys/server.key" SSLCertificateChainFile "/config/keys/root.crt" DocumentRoot /config/www/ <Location /owncloud> ProxyPass https://server.com:8000 ProxyPassReverse https://server.com:8000 <Location> <Directory "/config/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory> </VirtualHost> Thank you for any help Bill So I notice one difference with your config.php that I have not been able to workout. Here is yours: 'datadirectory' => '/var/www/owncloud/data', 'overwritewebroot' => '/owncloud', Here is mine: 'datadirectory' => '/var/www/html/data', How did you set your directory to owncloud versus html? Thanks Bill Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.