# Nexus 3 over SSL and http

**URL:** <https://community.sonatype.com/t/nexus-3-over-ssl-and-http/5628>\
**Category:** Sonatype Nexus Repository\
**Tags:** help\
**Created:** [December 31, 2020, 10:14am UTC](https://community.sonatype.com/t/nexus-3-over-ssl-and-http/5628 "2020-12-31T10:14:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbeczynski](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mbeczynski/32/1575_2.png) [@mbeczynski](https://community.sonatype.com/u/mbeczynski)\
**Post date:** [December 31, 2020, 10:14am UTC](https://community.sonatype.com/t/nexus-3-over-ssl-and-http/5628/1 "2020-12-31T10:14:41Z")

</div>

Hi, Guys,  
I’m looking for way to set up a ngix on [https://localhost/nexus](https://localhost/nexus) and [http://localhost/nexus](http://localhost/nexus) I’m using a nginx as a web server with following config, but it not working as expected.

```
server {
listen 443 ssl;
listen 80;
server_name example.co.uk;
# allow large uploads of files
client_max_body_size 1G;
location / {
  proxy_pass http://127.0.0.1:8081/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-Proto "https";
}
}
#server {
# listen 8081;
# #listen 443 ssl;
# server_name example.co.uk;
# rewrite ^/n8081/nexus/(.*)$ https://127.0.0.1/nexus/$1 redirect;
# #return 301 $scheme://127.0.0.1;
#}
server {
listen 5100 ssl;

# allow large uploads of files
client_max_body_size 1G;

location / {
  proxy_pass http://127.0.0.1:8082/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto "https";
}
}
server {
listen 5500 ssl;
# allow large uploads of files
client_max_body_size 1G;
location / {
  proxy_pass http://127.0.0.1:8083/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto "https";
}
}
```

---

<div class="post-metadata">

**Author:** ![dsawa](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/dsawa/32/729_2.png) [@dsawa](https://community.sonatype.com/u/dsawa)\
**Post date:** [December 31, 2020, 10:51am UTC](https://community.sonatype.com/t/nexus-3-over-ssl-and-http/5628/2 "2020-12-31T10:51:03Z")

</div>

Hi Marcin, Have you seen our documentation on configuring reverse proxies?  
[https://help.sonatype.com/repomanager3/installation/run-behind-a-reverse-proxy](https://help.sonatype.com/repomanager3/installation/run-behind-a-reverse-proxy)

---

<div class="post-metadata">

**Author:** ![mbeczynski](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mbeczynski/32/1575_2.png) [@mbeczynski](https://community.sonatype.com/u/mbeczynski)\
**Post date:** [January 4, 2021, 7:35am UTC](https://community.sonatype.com/t/nexus-3-over-ssl-and-http/5628/3 "2021-01-04T07:35:52Z")

</div>

Yes, I set up my config according to that documentation but sill only HTTPS port is available
