Which Webserver Package?

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
Donkey Hotay
Posts: 6
Joined: Wed May 30, 2012 6:55 pm

Which Webserver Package?

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

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Which Webserver Package?

Post 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.
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

Donkey Hotay
Posts: 6
Joined: Wed May 30, 2012 6:55 pm

Re: Which Webserver Package?

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

nikiml
Posts: 1
Joined: Sat Jul 28, 2012 2:04 pm

Re: Which Webserver Package?

Post 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

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Which Webserver Package?

Post 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

selva
Posts: 2
Joined: Thu Aug 23, 2012 8:14 am

Re: Which Webserver Package?

Post 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

liza
Posts: 1
Joined: Sat Sep 29, 2012 5:34 am

Re: Which Webserver Package?

Post 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?
Liza smith

rsmith16384
Posts: 8
Joined: Sun May 20, 2012 8:15 pm

Re: Which Webserver Package?

Post 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

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Which Webserver Package?

Post 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
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

Post Reply