Page 1 of 1

Which Webserver Package?

Posted: Wed Jun 20, 2012 10:34 pm
by Donkey Hotay
What package is preferred for running a webserver alongside Gargoyle? I've used uhttpd with Luci in the past and I was wondering if I can do something similar with Gargoyle and whatever webserver it includes. Does it support multiple webserver instances?

Re: Which Webserver Package?

Posted: Thu Jun 21, 2012 1:27 pm
by DoesItMatter
You should be able to do the same package with Gargoyle

Just re-map the ports Gargoyle is using for the GUI or
use different ports for your uhttpd server.

Re: Which Webserver Package?

Posted: Thu Jun 21, 2012 11:42 pm
by Donkey Hotay
Right, I can use uhttpd, but I was wondering if the webserver that Gargoyle uses for its GUI can run multiple instances. I'm double-checking before possibly wasting ROM & RAM resources.

Re: Which Webserver Package?

Posted: Sat Jul 28, 2012 2:13 pm
by nikiml
I am bumping this thread since I did not found any answer.

I am interested in running a web server on the router.
Is it possible to configure the server from httpd-gargoyle
to run as both admin ui and WAN web server, or run two instances?

if yes what is the (best) way?

Thanks in advance

Re: Which Webserver Package?

Posted: Sat Jul 28, 2012 5:01 pm
by ispyisail
I would suggest you would be better off using openwrt for this project.

Gargoyle is better for plug and play vs features/customisation

Re: Which Webserver Package?

Posted: Fri Aug 24, 2012 8:11 am
by selva
hi, wouldn't you be best just installing a LINUX operating system on the machine or do you want to stick with windowz? RedHat comes with all you mentioned above and is reliable, you'll not have to reboot it every 2 days


Regards,
Selva

Re: Which Webserver Package?

Posted: Sat Sep 29, 2012 5:39 am
by liza
I am absorbed in active a web server on the router.
Is it accessible to configure the server from httpd-gargoyle
to run as both admin ui and WAN web server, or run two instances?

Re: Which Webserver Package?

Posted: Sat Mar 23, 2019 4:12 pm
by rsmith16384
I also had a need to run webserver on router, heres how I did it:
1) use winscp to login to router filesystem
2) rename www to www-gargoyle (at this point gui is gone)
3) create new www folder
4) place files you want to serve in www

If you ever need gui back, simply do a rename of folders, make your change then rename back

Re: Which Webserver Package?

Posted: Sat Mar 23, 2019 8:13 pm
by RomanHK
I have a better solution where you don't miss the Gargoyle GUI. It is better to run another uhttpd instance under another port (eg http port 8080), where you can choose your own parameters of the uhttpd daemon and if we have free flash for packages, we can also have php.

1) create folder /mywww via ssh and insert the content of the web into the folder
2) edit /etc/config/uhttpd configuration (IP address of the router 192.168.1.1 by default) as follows:

Code: Select all


config uhttpd 'main'
	list listen_http '192.168.1.1:80'
	option index_file 'login.sh'
	option index_page 'login.sh'
	option error_page '/login.sh'
	option no_dirlists '1'
	list listen_https '192.168.1.1:443'
	option home '/www'
	option rfc1918_filter '1'
	option max_requests '50'
	option max_connections '200'
	option cert '/etc/uhttpd.crt'
	option key '/etc/uhttpd.key'
	option cgi_prefix '/cgi-bin'
	list interpreter '.sh=/usr/bin/run_haserl'
	list interpreter '.csv=/usr/bin/run_haserl'
	option script_timeout '900'
	option network_timeout '30'
	option http_keepalive '20'
	option tcp_keepalive '1'

config uhttpd 'MyWeb'
	list listen_http '192.168.1.1:8080'
	option index_file 'login.sh'
	option index_page "index.html, index.php"
	option home '/mywww'
	option max_requests '50'
	option max_connections '200'
	list interpreter '.php=/usr/bin/php-cgi'
	option script_timeout '900'
	option network_timeout '30'
	option http_keepalive '20'
	option tcp_keepalive '1'


3) create port forwarding to make our server accessible from the Internet via GUI:
Image

4) reboot the router or uhttpd daemon: /etc/init.d/uhttpd restart

And we have a working web server.
http://myrouterip:8080 or http://mypublicip or http://mydomain.com