speeding_ant Posted April 16, 2012 Author Share Posted April 16, 2012 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 Quote Link to comment
Soul Posted April 17, 2012 Share Posted April 17, 2012 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? Quote Link to comment
dnoyeb Posted April 18, 2012 Share Posted April 18, 2012 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... Quote Link to comment
speeding_ant Posted April 18, 2012 Author Share Posted April 18, 2012 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. Quote Link to comment
bonienl Posted April 18, 2012 Share Posted April 18, 2012 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. Any chance of adding a LOG purge button ? Quote Link to comment
Soul Posted April 18, 2012 Share Posted April 18, 2012 Will give this a go then Quote Link to comment
dirrtyjoe Posted April 19, 2012 Share Posted April 19, 2012 It looks like this binds to the incorrect IP address when running Hamachi (VPN). Is there a way to set which interface to use? Quote Link to comment
speeding_ant Posted April 19, 2012 Author Share Posted April 19, 2012 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! Quote Link to comment
dirrtyjoe Posted April 19, 2012 Share Posted April 19, 2012 Ahh, perfect. Thanks for the tip. Great work, By the way. As always! Quote Link to comment
speeding_ant Posted April 21, 2012 Author Share Posted April 21, 2012 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! Quote Link to comment
bonienl Posted April 21, 2012 Share Posted April 21, 2012 Painless upgrade! Thanks again Quote Link to comment
bonienl Posted April 21, 2012 Share Posted April 21, 2012 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? Quote Link to comment
speeding_ant Posted April 21, 2012 Author Share Posted April 21, 2012 Was going to say (just looking at the same thing) - best thing for us would be to fix those warnings It seems to be slowing down the page draw anyway. I can quickly do that before posting the next SF update. Quote Link to comment
bonienl Posted April 21, 2012 Share Posted April 21, 2012 See my PM, indeed lets try to fix this together with the pending updates... Thanks. Quote Link to comment
speeding_ant Posted April 21, 2012 Author Share Posted April 21, 2012 Already on it Cheers for the continual effort and support put into SimpleFeatures. Quote Link to comment
bonienl Posted April 21, 2012 Share Posted April 21, 2012 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" Quote Link to comment
bonienl Posted April 21, 2012 Share Posted April 21, 2012 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 Quote Link to comment
speeding_ant Posted April 21, 2012 Author Share Posted April 21, 2012 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 Haha, cheers Yes hardwareStats creates a warning for EACH data point. Yikes! Quote Link to comment
bonienl Posted April 21, 2012 Share Posted April 21, 2012 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 Quote Link to comment
smoldersonline Posted April 27, 2012 Share Posted April 27, 2012 :'( 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! Quote Link to comment
bonienl Posted April 27, 2012 Share Posted April 27, 2012 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. Quote Link to comment
smoldersonline Posted April 27, 2012 Share Posted April 27, 2012 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 .. Quote Link to comment
speeding_ant Posted April 27, 2012 Author Share Posted April 27, 2012 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. Quote Link to comment
smoldersonline Posted April 27, 2012 Share Posted April 27, 2012 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! Quote Link to comment
speeding_ant Posted April 28, 2012 Author Share Posted April 28, 2012 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. 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.