diff --git a/website/docs/config.md b/website/docs/config.md index eb3cbcfbde0d..85b79d4c5047 100644 --- a/website/docs/config.md +++ b/website/docs/config.md @@ -149,7 +149,7 @@ publish: ### URL Prefix {#url-prefix} -The prefix is intended to be used when the server runs behinds the proxy, check the **reverse proxy setup** page for more details. +The prefix is intended to be used when the server runs behinds the proxy and won't work properly if is used without a reverse proxy, check the **reverse proxy setup** page for more details. ```yaml url_prefix: /verdaccio/ diff --git a/website/docs/reverse-proxy.md b/website/docs/reverse-proxy.md index aedbcf905263..26e49648cc16 100644 --- a/website/docs/reverse-proxy.md +++ b/website/docs/reverse-proxy.md @@ -37,10 +37,9 @@ For installing at root path, `/`, on the server ### Configuration with SSL {#configuration-with-ssl} -Apache virtual server configuration +Apache virtual server configuration. -```` - apacheconfig +````apache ServerName npm.your.domain.com @@ -62,7 +61,7 @@ Apache virtual server configuration The following snippet is a full `docker` example can be tested in our [Docker examples repository](https://github.com/verdaccio/verdaccio/tree/5.x/docker-examples/reverse_proxy/nginx). -```` +````nginx upstream verdaccio_v4 { server verdaccio_relative_path_v4:4873; keepalive 8; @@ -115,7 +114,7 @@ server { ## SSL example {#ssl-example} -```` +````nginx server { listen 80; return 302 https://$host$request_uri;