https://github.com/parser3/parser3-httpd
Parser3 HTTPD Application Server
https://github.com/parser3/parser3-httpd
Last synced: over 1 year ago
JSON representation
Parser3 HTTPD Application Server
- Host: GitHub
- URL: https://github.com/parser3/parser3-httpd
- Owner: parser3
- Created: 2021-10-05T08:02:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-14T14:45:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-28T03:19:59.122Z (over 1 year ago)
- Language: OpenEdge ABL
- Size: 19.5 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Authors: AUTHORS.txt
Awesome Lists containing this project
README
# Parser3 HTTP Server Application
Parser3 HTTP Server Application is based on built-in HTTP server.
## Starting `parser3` http server
```console
$ docker run -p 8080:9000 parser/parser3-httpd
```
...where `-p 8080:9000` is a `{host}:{container}` port mapping. See the Docker Container networking [documentation](https://docs.docker.com/config/containers/container-networking/).
```console
$ docker run -p 8080:9000 --mount type=bind,source=/path/to/your/site,target=/app parser/parser3-httpd
```
...where `/path/to/your/site` is directory containing the site/application you want to run.
## Default structure in the container
### `/app`
Application directory.
### `/app/cgi`
Parser log directory. You can change it by setting `CGI_PARSER_LOG` environment variable,
```console
$ docker run --env CGI_PARSER_LOG=/path/to/dir parser/parser3-httpd
```
### `/app/www`
It'a a `$request:document-root` for the Parser. Parser3 will start from this directory. You can change it by setting `workdir` for the container:
```console
$ docker run -w /path/to/dir parser/parser3-httpd
```
## Environment variables
`CGI_PARSER_LOG=/app/cgi/parser.log`
## Parser config and `httpd.p`
Parser uses `/usr/local/parser3/auto.p` with default configuration which includes base `httpd` class. You can place `httpd.p` in you `$request:document-root` with your implementation.
See [documentation](https://www.parser.ru/en/docs/lang/?parserwebserver.htm).
## Links
[Parser](https://www.parser.ru/en/) — official website.
[Documentation](https://www.parser.ru/en/docs/) — Parser3 documentation.
[Docker Hub](https://hub.docker.com/r/parser/parser3-httpd) — Docker Hub repository.