apache / apache/nuttx-apps

[HELP] SSI usage with netutils/thttpd

Open
#3,134 0 comments 0 reactions 0 assignees View on GitHub
Community: Question
Dominant language
C
Stars
465
Forks
779
Avg merge
2d 9h
Merged PRs (30d)
36

Description

### Description

I am successfully using the thttpd library to serve my pages and run custom cgi scripts but I have not managed to coerce it to parse the index.html page for simple SSI directives such as date.

As best as I can find out - and I appreciate this is not "native" nuttx-apps and is quite old - I should be able to get it to parse by changing the usual URL `http:/10.0.0.1/index.html` to a URL like this: `http:/10.0.0.1/cgi-bin/ssi/index.html` (which is where the cgi "applications" are located, albeit virtually I think)

But I might be missing the point?

It's not a big deal as I can sort this using my own CGI script, in the style of a REST API or something, but it annoys me that I can't get it to work!

### Verification

- [x] I have verified before submitting the report.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the SSI request using the index.html and cgi-bin/ssi/index.html paths described in the issue, then inspect the thttpd SSI and CGI entry points. Determine whether the date directive is supported and document the expected URL or the source change and test needed to make the behavior work.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.