Which Webserver Package?
Moderator: Moderators
-
- Posts: 6
- Joined: Wed May 30, 2012 6:55 pm
Which Webserver Package?
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?
- DoesItMatter
- Moderator
- Posts: 1373
- Joined: Thu May 21, 2009 3:56 pm
Re: Which Webserver Package?
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.
Just re-map the ports Gargoyle is using for the GUI or
use different ports for your uhttpd server.


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
-
- Posts: 6
- Joined: Wed May 30, 2012 6:55 pm
Re: Which Webserver Package?
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?
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
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?
I would suggest you would be better off using openwrt for this project.
Gargoyle is better for plug and play vs features/customisation
Gargoyle is better for plug and play vs features/customisation
Re: Which Webserver Package?
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
Regards,
Selva
Re: Which Webserver Package?
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?
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
-
- Posts: 8
- Joined: Sun May 20, 2012 8:15 pm
Re: Which Webserver Package?
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
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?
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:
3) create port forwarding to make our server accessible from the Internet via GUI:

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

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
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users