# Convert URL to https from http

**URL:** <https://forum.genieacs.com/t/convert-url-to-https-from-http/1520>\
**Category:** Uncategorized\
**Created:** [March 13, 2021, 6:56am UTC](https://forum.genieacs.com/t/convert-url-to-https-from-http/1520 "2021-03-13T06:56:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jekyll](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jekyll](https://forum.genieacs.com/u/jekyll)\
**Post date:** [March 13, 2021, 6:56am UTC](https://forum.genieacs.com/t/convert-url-to-https-from-http/1520/1 "2021-03-13T06:56:48Z")

</div>

Hi guys,  
I want to change the url from [http://acs.test:3000](http://acs.test:3000) to [https://acs.test:3000](https://acs.test:3000) is there any document for this?

---

<div class="post-metadata">

**Author:** ![mjducharme](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/mjducharme/32/59_2.png) [@mjducharme](https://forum.genieacs.com/u/mjducharme)\
**Post date:** [March 14, 2021, 4:03am UTC](https://forum.genieacs.com/t/convert-url-to-https-from-http/1520/2 "2021-03-14T04:03:51Z")

</div>

Use nginx to reverse proxy, ideally to port 443 instead of port 3000 so that you don’t need to specify the port number:

```
# /etc/nginx/sites-available/genieacs.conf
# Nginx configuration for genieacs services
# Ensure you change the listening IP address
# If you're allergic to security, you can remove the `add_header`
# lines without breaking functionality

upstream genieacs-ui {
        server 127.0.0.1:3000;
}

server {
        listen 80 default_server;
	listen [::]:80 default_server;
        server_name genieacs.example.com;

        add_header Content-Security-Policy "default-src 'self'" always;
        add_header Referrer-Policy "no-referrer" always;
        add_header X-Content-Type-Options "nosniff" always;
        add_header X-Frame-Options "sameorigin" always;
        add_header X-XSS-Protection "1; mode block" always;

        location /.well-known {
                alias /var/www/html/.well-known;
        }

        location / {
                return 301 https://$server_name$request_uri;
        }
}

server {
        listen 443 ssl http2 default_server;
	listen [::]:443 ssl http2 default_server;
        server_name genieacs.example.com;

        ssl_certificate_key /etc/pki/tls/certs/genieacs.example.com/privkey.pem;
        ssl_certificate /etc/pki/tls/certs/genieacs.example.com/fullchain.pem;

        access_log /var/log/nginx/genieacs-web-access.log combined;
        error_log /var/log/nginx/genieacs-web-error.log;

        client_max_body_size 50M;

	# needed otherwise genieacs file metadata not stored
	ignore_invalid_headers off;

        add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'" always;
        add_header Referrer-Policy "no-referrer" always;
        add_header X-Content-Type-Options "nosniff" always;
        add_header X-Frame-Options "sameorigin" always;
        add_header X-XSS-Protection "1; mode block" always;

        location / {
                proxy_pass http://genieacs-ui;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_cache_bypass $http_upgrade;
                proxy_redirect off;
                proxy_set_header origin 'http://genieacs.example.com';
        }
}
```

---

<div class="post-metadata">

**Author:** ![jekyll](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jekyll](https://forum.genieacs.com/u/jekyll)\
**Post date:** [March 14, 2021, 4:12am UTC](https://forum.genieacs.com/t/convert-url-to-https-from-http/1520/3 "2021-03-14T04:12:45Z")

</div>

Hi mjducharme,  
Thanks, will try.

---

<div class="post-metadata">

**Author:** ![jekyll](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@jekyll](https://forum.genieacs.com/u/jekyll)\
**Post date:** [March 18, 2021, 5:40am UTC](https://forum.genieacs.com/t/convert-url-to-https-from-http/1520/4 "2021-03-18T05:40:40Z")

</div>

> [@jekyll](#):
>
> Hi mjducharme,

Hi mjducharme,  
Thanks, It is working now.
