Jump to content
speeding_ant

"SimpleFeatures" - WebServer Plugin [SUPPORT]

308 posts in this topic Last Reply

Recommended Posts

One idea for a plugin... Have a navbar for the various sites / apps hosted on unRAID.  I used your web server plugin and mixed in some dynamic html to have a navigation bar across the bottom that autohides.  In there I placed launcher images for each of the various sites hosted on the unRAID box.  Makes quick work of jumping between them!

 

Thanks!

 

(screenshots attached)

 

I like your idea. However, there would need to be a standard that each plugin developer follows. That might be the trickiest bit  ;)

Share this post


Link to post

Ooooh I've been looking for an easy way to run my own sites from here. This could be it :)

 

One question though (and probably a very open one) is how secure is this if opened up to the internets via port forwarding? Is it wise, or should this be for internal use really?

Share this post


Link to post

Ooooh I've been looking for an easy way to run my own sites from here. This could be it :)

 

One question though (and probably a very open one) is how secure is this if opened up to the internets via port forwarding? Is it wise, or should this be for internal use really?

 

I was wondering the exact same thing... was planning on putting an htaccess/htpasswd file on it to discourage external users...

Share this post


Link to post

I'd say it'd be relatively safe for a home web server setup. Lighttpd is as secure as its setup. Disable any modules that you don't need, disable access to shell (that may have other implications however), and make sure you're only opening the webserver port. YouTube runs Lighttpd, however they'll have a much better setup that this plugin  ;)

 

It's a risk opening anything up to the internet, it's up to you whether or not you think the risk is acceptable.

Share this post


Link to post

Speeding_ant thanks very much for this useful plugin.

 

I was running a web server based on the older package of BubbaQ, yours has a newer (latest) version of lighttpd and good PHP version.

 

I like the settings page, nicely fits in the SimpleFeatures theme and contains helpful information, though perhaps it should be a black & white globe to match the other icons.

 

All is working flawlessy, including the stats pages.  :D

 

Any chance of adding a LOG purge button ?

Share this post


Link to post

It looks like this binds to the incorrect IP address when running Hamachi (VPN). Is there a way to set which interface to use?

Share this post


Link to post

You can add additional IP addresses to this file:

 

/boot/config/plugins/sf_webserver/lighttpd/lighttpd_server.conf.include

 

$SERVER["socket"] == "10.0.0.4:81" {}

$SERVER["socket"] == "10.0.0.5:81" {}

 

etc

 

Hope that helps!

Share this post


Link to post

Changes:

1.0 - Updated PHP to 5.3.10. Fixed some bugs with configuration files. Added logging for PHP to prevent STDOUT issues. Changed to make sure timezone is added on start. Remove your /boot/extra/plugins/sf_webserver/php/php.ini file to take advantage of bug fixing.

 

Re-download the PLG from link in the front page, follow install instructions.

 

Cheers!

Share this post


Link to post

One thing to notice...

 

The PHP error log is growing rapidly due to warnings coming from undefined items in "template.php".

 

The stock PHP implementation is ignoring this, could the same be done here?

 

Share this post


Link to post

Was going to say (just looking at the same thing) - best thing for us would be to fix those warnings  :P  It seems to be slowing down the page draw anyway. I can quickly do that before posting the next SF update.

Share this post


Link to post

See my PM, indeed lets try to fix this together with the pending updates...

 

Thanks.

Share this post


Link to post

Already on it  :)  Cheers for the continual effort and support put into SimpleFeatures.

My pleasure, as they say "the knife cuts both ways" - it is also out of my own interest to make simpleFeatures the "best features"  :D

Share this post


Link to post

I made the necessary corrections in the appropriate files, no more a warnings avalanche...

 

See the PM and download the update package (again).

 

Ps. PHP is also complaining about undefined variables "string" and "string2" in the webserver app. You may want to look into that.

 

Ps2. Need to relook at "hardwareStats.php", it generates 'zillions' of warnings  :o

Share this post


Link to post

I made the necessary corrections in the appropriate files, no more a warnings avalanche...

 

See the PM and download the update package (again).

 

Ps. PHP is also complaining about undefined variables "string" and "string2" in the webserver app. You may want to look into that.

 

Ps2. Need to relook at "hardwareStats.php", it generates 'zillions' of warnings  :o

 

Haha, cheers  :)  Yes hardwareStats creates a warning for EACH data point. Yikes!

Share this post


Link to post

Your PHP version is less forgiving...

 

I encountered a couple of other "warnings", no more lazy programming allowed  ;)

 

Need to make some updates though!

 

Okay, made  the necessary modifs, including hardwareStats.php. See PM

Share this post


Link to post

:'( I got it working very nicely - until I tried to get the server (with my Wordpress blog) online. Somewhere (router - OSX - unRAID - Wordpress) I must have made a clumsy mistake (n00b-alert). I thought I got everything back to "normal", but every time I try to access the server directly (192.168.x.x:xx), the browser is directed to the unRAID main page, regardless of the port I use on the plugin settings page. I already re-installed the plugin, cleared the browser caches, cleared the Data Directory, new Data directory, etc .... Again it worked 100% at some point.

 

This is (almost?) driving me crazy and any feedback is greatly appreciated!

Share this post


Link to post

I would start with completely removing the SF web server plug-in and see from there if everything is back to normal.

 

To have a "clean" system:

 

1. Remove the folder "/boot/config/plugins/sf_webserver"

2. Remove the file "/boot/config/plugins/simplefeatures_webserver.plg"

 

Reboot your system.

Share this post


Link to post

Thanks!

 

I'm up and running again (local) .... To be honest: no clue how. Next challenge (again..?..) is to get my Wordpress blog online with my domain name ..

Share this post


Link to post

Essentially, these are required/ideal for external hosting:

 

  • External fixed IP

  • Domain name with dns records for www.domain.com & domain.com pointing to external IP

  • Site hosted on your internal network

  • Firewall configured to take request for port 80, which then forwards that onto your internal web server IP and port.

Share this post


Link to post

Thank you @speeding_ant - @bonienl

 

External fixed IP = OK

 

Domain name with dns records for www.domain.com & domain.com pointing to external IP = I think I got this covered through my ISP - www.dirksmolders.nl

 

Site hosted on your internal network = OMG, Wordpress blog is up and running again on port 81, took me a while, but I got there (hallelujah ..)

 

Firewall configured to take request for port 80, which then forwards that onto your internal web server IP and port = I think this is the part where I go wrong. Netgear router - Port Forwarding - Service HTTP - Port 81.

 

What am I missing? Thanks again & take care!

 

 

Share this post


Link to post

In your lighttpd.conf.include file put:

 

$HTTP["host"] =~ "(^|\.)dirksmolders\.nl$" {
server.document-root = "/path/to/web/files"
}

 

The web server might not accept requests from the domain name, so specifically add this entry to make sure it responds to the domain name as well as the IP.

Share this post


Link to post

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.