Hi,
This config file (/etc/config/uhttpd) is in part used to configure the web interface, yes. However, the device's firewall actually controls who gets to access what. If you set WAN access via WebUI, it automatically changes configurations in both /etc/config/uhttpd and /etc/config/firewall accordingly. But if you set it via command line, you'll need to edit the firewall config manually as well.
As mentioned previously, the other settings you need are in the /etc/config/firewall file. Open it and look for these two rules:
config rule
option dest_port '80'
option proto 'tcp udp'
option name 'Enable_HTTP_WAN'
option target 'ACCEPT'
option src 'wan'
option enabled '0'
config rule
option dest_port '443'
option proto 'tcp udp'
option name 'Enable_HTTPS_WAN'
option target 'ACCEPT'
option src 'wan'
option enabled '0'
These rules control HTTP and HTTPS WAN access to your device. To enable them, simply delete the options I highlighted in the example above (option enabled '0'). Save the file and restart the firewall service (/etc/init.d/firewall restart) or the entire device to make the changes take effect.
The last thing I would add is that if you're modifying config files with a text editor (like vi), you need to restart the related service after making changes to the config file for these changes to take effect. For example, if you edit /etc/config/uhttpd, you can restart the service with this command:
- /etc/init.d/uhttpd restart
Hope this helps you with what you need. Perhaps this reference will also come in handy; it's about how to use the UCI system to modify configuration files.
Good luck,
DM