Compare commits
2 Commits
6526b5cbcb
...
9923a76ba7
Author | SHA1 | Date | |
---|---|---|---|
9923a76ba7
|
|||
ea4cdff233
|
@@ -9,7 +9,9 @@ Necronda web server
|
|||||||
* Serving local files via HTTP and HTTPS
|
* Serving local files via HTTP and HTTPS
|
||||||
* File compression ([gzip](https://www.gzip.org/), [Brotli](https://www.brotli.org/)) and disk cache for compressed files
|
* File compression ([gzip](https://www.gzip.org/), [Brotli](https://www.brotli.org/)) and disk cache for compressed files
|
||||||
* Reverse proxy for other HTTP and HTTPS servers
|
* Reverse proxy for other HTTP and HTTPS servers
|
||||||
|
* Transparent WebSocket reverse proxy **[WIP]**
|
||||||
* FastCGI support (e.g. [PHP-FPM](https://php-fpm.org/))
|
* FastCGI support (e.g. [PHP-FPM](https://php-fpm.org/))
|
||||||
|
* Automatic path info detection (e.g. `/my/file/extra/path` -> script: `/my/file.php`, path info: `extra/path`)
|
||||||
* Support for [MaxMind's GeoIP Database](https://www.maxmind.com/en/geoip2-services-and-databases)
|
* Support for [MaxMind's GeoIP Database](https://www.maxmind.com/en/geoip2-services-and-databases)
|
||||||
* Optional DNS reverse lookup for connecting hosts
|
* Optional DNS reverse lookup for connecting hosts
|
||||||
* Automatic URL rewrite (e.g. `/index.html` -> `/`, `/test.php` -> `/test`)
|
* Automatic URL rewrite (e.g. `/index.html` -> `/`, `/test.php` -> `/test`)
|
||||||
@@ -29,7 +31,7 @@ See [docs/example.conf](docs/example.conf) for more details.
|
|||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
* `[cert <cert-name]` - begins section for a certificate
|
* `[cert <cert-name>]` - begins section for a certificate
|
||||||
* `certificate` - path to SSL certificate (or certificate chain)
|
* `certificate` - path to SSL certificate (or certificate chain)
|
||||||
* `private_key` - path to SSL private key
|
* `private_key` - path to SSL private key
|
||||||
* `[host <host>]` - begins section for the virtual host `<host>`
|
* `[host <host>]` - begins section for the virtual host `<host>`
|
||||||
|
@@ -1,19 +1,24 @@
|
|||||||
|
|
||||||
certificate /var/cert/cert.pem
|
|
||||||
private_key /var/cert/cert.key
|
|
||||||
#geoip_dir /var/dir
|
#geoip_dir /var/dir
|
||||||
#dns_server 192.168.0.1
|
#dns_server 192.168.0.1
|
||||||
|
|
||||||
[localhost]
|
[cert cert1]
|
||||||
|
certificate /var/cert/cert.pem
|
||||||
|
private_key /var/cert/cert.key
|
||||||
|
|
||||||
|
[host localhost]
|
||||||
webroot /var/www/localhost
|
webroot /var/www/localhost
|
||||||
dir_mode forbidden
|
dir_mode forbidden
|
||||||
|
cert cert1
|
||||||
|
|
||||||
[me.local]
|
[host me.local]
|
||||||
hostname www.example.com
|
hostname www.example.com
|
||||||
port 80
|
port 80
|
||||||
|
cert cert1
|
||||||
http
|
http
|
||||||
|
|
||||||
[secure.local]
|
[host secure.local]
|
||||||
hostname www.example.com
|
hostname www.example.com
|
||||||
port 443
|
port 443
|
||||||
|
cert cert1
|
||||||
https
|
https
|
||||||
|
Reference in New Issue
Block a user