[Support] Linuxserver.io - Apache


Recommended Posts

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...

Link to comment

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. 

Link to comment

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 ?

 

 

Link to comment

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

Link to comment
  • 2 weeks later...

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.

Link to comment

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.

Link to comment

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

Link to comment

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!

Link to comment

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...

Link to comment

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...  ;)

Link to comment

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?

Link to comment

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...

Link to comment

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?

Link to comment

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...

 

Link to comment

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.
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.