CHBMB Posted December 8, 2015 Share Posted December 8, 2015 Is there a way to enable mod_proxy_wstunnel for apache? We'd need to enable it in the docker, you won't be able to do it your end. Can I ask what the use case is? Quote Link to comment
Nem Posted December 8, 2015 Share Posted December 8, 2015 It's a pretty specific one. I run an ipython/jupyter notebook (http://jupyter.org/) in a virtual machine but I want to be able to access it over the internet. The page itself loads fine, but I can't access the python kernel without proxy_wstunnel being enabled in apache. The lack of kernel access makes the entire thing pointless so its pretty important. I set up a temp apache VM just for a reverse proxy and it seems to work with that module enabled so I believe that to be the cause, however, I could be wrong if there are any other differences in the apache setups... Quote Link to comment
CHBMB Posted December 8, 2015 Share Posted December 8, 2015 I'm just wondering if it would work with the container IP effectively being on a different subnet than that of the Unraid host.... Quote Link to comment
Nem Posted December 8, 2015 Share Posted December 8, 2015 I don't understand networking well enough to be able to tell you It sounds like a potential cause for more headache over just adding it to the docker though Quote Link to comment
CHBMB Posted December 8, 2015 Share Posted December 8, 2015 I don't understand networking well enough to be able to tell you It sounds like a potential cause for more headache over just adding it to the docker though No, you misunderstand. Even if, and that's a big if, we added it to the image, I'm not sure it'll work, need to read a bit more about it when I get home. Quote Link to comment
vlefevre86 Posted December 12, 2015 Share Posted December 12, 2015 Hi all, I've been trying to set up a reverse proxy, but when I try and add the SSL config from cipherli.st, apache fails to start with a recurring "Action '-D FOREGROUND' failed". A little bit of trial and error points to 3 commands: SSLSessionTickets Off SSLUseStapling on SSLStaplingCache "shmcb:logs/stapling-cache(150000)" When I comment them out, apache works again... Any idea on what is going on, and how to make it work ? Quote Link to comment
CHBMB Posted December 12, 2015 Share Posted December 12, 2015 Hi all, I've been trying to set up a reverse proxy, but when I try and add the SSL config from cipherli.st, apache fails to start with a recurring "Action '-D FOREGROUND' failed". A little bit of trial and error points to 3 commands: SSLSessionTickets Off SSLUseStapling on SSLStaplingCache "shmcb:logs/stapling-cache(150000)" When I comment them out, apache works again... Any idea on what is going on, and how to make it work ? Here's how my Apache is setup <VirtualHost *:80> ServerName UNRAIDSERVER.COM ServerAlias UNRAIDSERVER.COM DocumentRoot /config/www/ Redirect permanent / https://UNRAIDSERVER.COM/ </VirtualHost> <VirtualHost *:443> ServerName UNRAIDSERVER.COM ServerAdmin webmaster@localhost DocumentRoot /config/www/ SSLCertificateFile /config/keys/root/ssl.crt SSLCertificateKeyFile /config/keys/root/decryptedssl.key SSLCertificateChainFile /config/keys/root/sub.class1.server.ca.pem Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" SSLEngine on SSLProxyEngine On RewriteEngine On ProxyPreserveHost On SSLProxyVerify none SSLProxyCheckPeerCN off SSLProxyCheckPeerName off SSLProxyCheckPeerExpire off SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2 SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS SSLHonorCipherOrder on </VirtualHost> Note my keys are actually in a sub folder ie /keys/ROOT/ so that bit may need altering for your config... Also take a look at the brilliant guide smdion did on linuxserver.io Quote Link to comment
vanstinator Posted December 12, 2015 Share Posted December 12, 2015 So I'm transitioning from smidions version of this container. I installed this one, but the default configuration folder doesn't popular with anything. What should my file structure look like? EDIT: Operator error. Was trying to bind to port 80 when the webui was already there. *facepalm Quote Link to comment
RageInvader Posted December 21, 2015 Share Posted December 21, 2015 I have my apache server setup on port 90 and my router redirects from 90 to 80, so when accessing my http://mydomain.ddns.net I get my apache server okay, have gotten plexrequests proxy setup, and tried setting up Plex but plex keeps changing the port in the url adding ":90" My default.conf file settings for Plex are... <Location /plex> ProxyPass http://10.0.0.11:32400/web ProxyPassReverse http://10.0.0.11:32400/web </Location> When accessing "http://mydomain.ddns.net/plex" Plex is redirecting from that url to "http://mydomain.ddns.net:90/plex/index.html" Can't figure out why its adding the port, or how to stop it. Quote Link to comment
CHBMB Posted December 21, 2015 Share Posted December 21, 2015 I have my apache server setup on port 90 and my router redirects from 90 to 80, so when accessing my http://mydomain.ddns.net I get my apache server okay, have gotten plexrequests proxy setup, and tried setting up Plex but plex keeps changing the port in the url adding ":90" My default.conf file settings for Plex are... <Location /plex> ProxyPass http://10.0.0.11:32400/web ProxyPassReverse http://10.0.0.11:32400/web </Location> When accessing "http://mydomain.ddns.net/plex" Plex is redirecting from that url to "http://mydomain.ddns.net:90/plex/index.html" Can't figure out why its adding the port, or how to stop it. I've never tried redirecting Plex to my own domain name. Is there a particular reason why you want to do so? I think you may find yourself in somewhat uncharted territory here tbh. Quote Link to comment
RageInvader Posted December 22, 2015 Share Posted December 22, 2015 I have my apache server setup on port 90 and my router redirects from 90 to 80, so when accessing my http://mydomain.ddns.net I get my apache server okay, have gotten plexrequests proxy setup, and tried setting up Plex but plex keeps changing the port in the url adding ":90" My default.conf file settings for Plex are... <Location /plex> ProxyPass http://10.0.0.11:32400/web ProxyPassReverse http://10.0.0.11:32400/web </Location> When accessing "http://mydomain.ddns.net/plex" Plex is redirecting from that url to "http://mydomain.ddns.net:90/plex/index.html" Can't figure out why its adding the port, or how to stop it. I've never tried redirecting Plex to my own domain name. Is there a particular reason why you want to do so? I think you may find yourself in somewhat uncharted territory here tbh. I have my own site setup with some stats on the main page, a link to PlexRequests, which is proxy'd and I thought I could do Plex also, I guess i will just have to just make it a link to http://www.plex.tv/web/app Quote Link to comment
smoldersonline Posted December 22, 2015 Share Posted December 22, 2015 N00b alert, please be gentle. First, thanks a lot for all your Docker efforts. I made a small donation a couple of weeks ago. I'm trying to install Spotweb on my server. Installations of MySQL and Apache are OK and Spotweb seems to run fine. Now I only need to set a rewrite: If you want to use SpotWEb with CouchPotato or SickBeard, you need to set this rewrite. open up lighttpd.cfg file in '/boot/config/plugins/simpleFeatures/' or it's in your flash drive.. hopefully you know where to find it and add this rewrite rule Code: [select] url.rewrite-once = ( "^/spotweb/api\?(.*)" => "/spotweb/index.php?page=newznabapi&$1" ) Any pointers how I do this with this Docker are greatly appreciated. Merry Christmas to all! Quote Link to comment
CHBMB Posted December 22, 2015 Share Posted December 22, 2015 I've got no idea tbh, never even heard of Spot Web... What is it and I don't mind having a quick look to see if I can help, but it sounds like you know Apache better than me! I am interested in the use case for it though... Quote Link to comment
CHBMB Posted December 22, 2015 Share Posted December 22, 2015 OK, done a bit of reading. It looks do-able, I'll have a play when I get home tonight or tomorrow... Quote Link to comment
CHBMB Posted December 22, 2015 Share Posted December 22, 2015 N00b alert, please be gentle. First, thanks a lot for all your Docker efforts. I made a small donation a couple of weeks ago. I'm trying to install Spotweb on my server. Installations of MySQL and Apache are OK and Spotweb seems to run fine. Now I only need to set a rewrite: If you want to use SpotWEb with CouchPotato or SickBeard, you need to set this rewrite. open up lighttpd.cfg file in '/boot/config/plugins/simpleFeatures/' or it's in your flash drive.. hopefully you know where to find it and add this rewrite rule Code: [select] url.rewrite-once = ( "^/spotweb/api\?(.*)" => "/spotweb/index.php?page=newznabapi&$1" ) Any pointers how I do this with this Docker are greatly appreciated. Merry Christmas to all! Can you PM me a copy of your default.conf... by all means edit out your domain name. In your post it references simple features and light... I think that's where you're going wrong. Should be possible to set it all up in Apache I reckon.. AFAIK simplefeatures and light... aren't available for V6... Quote Link to comment
smoldersonline Posted December 22, 2015 Share Posted December 22, 2015 Thank you very much. So far I have not changed anything in the configuration of the Apache docker. Also default.conf is as it came with the install. I am following instructions from this post (under 6). Quote Link to comment
CHBMB Posted December 22, 2015 Share Posted December 22, 2015 Thank you very much. So far I have not changed anything in the configuration of the Apache docker. Also default.conf is as it came with the install. I am following instructions from this post (under 6). Sorry I'm lost, you configuring this on our Apache web server or the other one in the post you linked? Quote Link to comment
smoldersonline Posted December 22, 2015 Share Posted December 22, 2015 I apologize for confusing things here. I'm using your Apache server, and that works fine. I'm trying to configure it for using Spotweb & (in my case) Sonarr. The How-To (in the link) assumes a (SimpleFeatures) webserver. Quote Link to comment
CHBMB Posted December 23, 2015 Share Posted December 23, 2015 I apologize for confusing things here. I'm using your Apache server, and that works fine. I'm trying to configure it for using Spotweb & (in my case) Sonarr. The How-To (in the link) assumes a (SimpleFeatures) webserver. Well the good news is I got it installed in Apache no problems and up and running.. But.... I have a domain name and a DNS setup so I can reach spotweb on www.server.com/spotweb but it doesn't sound like you have any of that setup and I'm not sure from what you've said already whether you want to go down that route... If you do, then I would recommend smdion's excellent reverse proxy guide which will get a secure webserver up and running... Let me know... Quote Link to comment
smoldersonline Posted December 23, 2015 Share Posted December 23, 2015 Thanks again. Spotweb also runs fine here. However, I would like to use it as a Newznab provider for (in my case) Sonarr. For this purpose I need Spotweb to generate an API. As I understand it now, I need the rewrite, as explained in the How-To. Test your API by opening this link Code: [select] http://server/spotweb/api?t=c When I test this, I get nothing. What is the output at your end? Quote Link to comment
CHBMB Posted December 23, 2015 Share Posted December 23, 2015 Thanks again. Spotweb also runs fine here. However, I would like to use it as a Newznab provider for (in my case) Sonarr. For this purpose I need Spotweb to generate an API. As I understand it now, I need the rewrite, as explained in the How-To. Test your API by opening this link Code: [select] http://server/spotweb/api?t=c When I test this, I get nothing. What is the output at your end? It works for me, you don't need a rewrite, you need to set Apache up.. Try (to test the API) http://server:81/spotweb/api?t=c Assuming that your Unraid box is called server and you mapped Apache Port 80 to 81 (If you mapped it to something other than 81 then change accordingly) The problem is, Unraid runs it's webserver for the UI on port 80, so Apache needs to run on a different port, you want to redirect a request at the Unraid webserver to Apache, so that can't be done via Apache. Because I have a full webserver in Apache setup I send my request for the API out to the WAN it hits the DNS servers, comes back to my house where my router automatically forwards all traffic on port 80 to port 81 on my Unraid box. I'll give it a bit more thought, but no promises, I'm no Apache whizzkid that's for sure... Quote Link to comment
JonathanM Posted December 23, 2015 Share Posted December 23, 2015 I'm trying to use http://www.directorypass.com/ but when I point to the cgi file, it just renders the text instead of running. I have no experience with cgi and perl, but the googling I did led me to believe apache couldn't find a perl instance to use, so I ln -s /usr into the config folder and pointed the first line of the script to /config/usr/bin/perl but that didn't do anything. Help? Quote Link to comment
CHBMB Posted December 24, 2015 Share Posted December 24, 2015 Jonathan, I might be wrong, but from looking in the container and checking the dockerfile perl is indeed present and located in /usr/lib/ not /usr/bin/ I'll play around a bit more... EDIT: I think I was wrong, there are perl directories located within the container at the above location but I don't think libapache2-mod-perl2 is installed.. smdion is the creator of this particular container, so I'll point him this way... Quote Link to comment
smoldersonline Posted December 24, 2015 Share Posted December 24, 2015 @CHBMB: Thanks a lot for your kind support! On the Apache side it all seems to work fine now. I still have to seek support for a strange MySQL error. But that's another day's work. Quote Link to comment
JonathanM Posted December 24, 2015 Share Posted December 24, 2015 Jonathan, I might be wrong, but from looking in the container and checking the dockerfile perl is indeed present and located in /usr/lib/ not /usr/bin/ I'll play around a bit more... EDIT: I think I was wrong, there are perl directories located within the container at the above location but I don't think libapache2-mod-perl2 is installed.. smdion is the creator of this particular container, so I'll point him this way... I got Perl running, how do I freeze the container so it doesn't blow away my changes if I restart the machine? If the container can be build with the libapache2-mod-perl2 installed, I'd be fine. 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.