Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Apache

Featured Replies

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?

  • Replies 294
  • Views 60.2k
  • Created
  • Last Reply

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

I'm just wondering if it would work with the container IP effectively being on a different subnet than that of the Unraid host....

 

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

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. 

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 ?

 

 

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

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

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

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

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!

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

OK, done a bit of reading.  It looks do-able, I'll have a play when I get home tonight or tomorrow...

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

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

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.

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

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?

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

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?

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

 

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

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.