Read Time

0

min

Read Time

0

min

Performance

Sep 9, 2025

Setting Up NGINX Reverse Proxy

Here's a guide on setting up a reverse proxy with NGINX. Safely route requests to your Framer site and selectively proxy specific paths for flexible traffic control. Enhance security with SSL configuration.

Framer Logo for Blog Authors

Uploaded by

Profile of Blogger Kim Yejeong

Translated by

Blog thumbnail explaining how to set up an NGINX reverse proxy. Includes server block configuration and SSL security methods to run a stable and secure Framer site.
Blog thumbnail explaining how to set up an NGINX reverse proxy. Includes server block configuration and SSL security methods to run a stable and secure Framer site.
Blog thumbnail explaining how to set up an NGINX reverse proxy. Includes server block configuration and SSL security methods to run a stable and secure Framer site.

Contents

Table of Contents

This document was created to help local users learning Framer who face difficulties due to a lack of Korean resources. It includes translations from the official blog and adds practical information. We hope it is of some help to those using Framer.

Basic Configuration

First, update the server block in the /etc/nginx/sites-available/default file as shown below.

server {
    listen 80;
    server_name example.com www.example.com;

    resolver 8.8.8.8;

    location / {
        set $backend <https://example.framer.website>;
        proxy_pass $backend$request_uri;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_ssl_server_name on

Applying this configuration will forward incoming requests to the Framer site while allowing users to see your domain (example.com) in the browser's address bar.

Proxy Specific Slugs Only

If you want to proxy only specific slugs (e.g., /blog or /pricing) instead of the whole site, you need to add or modify specific location blocks.

location /my-path {
    set $backend <https://example.framer.website>;
    proxy_pass $backend;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_ssl_server_name on

This way, only requests to /my-path will be forwarded to the Framer site. This allows you to have granulated control over which traffic to send to Framer.

Why 'proxy_ssl_server_name on' Is Needed

This directive ensures NGINX sends the correct hostname using the SNI (Server Name Indication) method when proxying requests. Without this setting, you may encounter a 400 Bad Request: Invalid hostname error when sending requests to a custom domain.

Secure the Proxy with SSL

Setting up HTTPS is essential to protect users and encrypt traffic.

Using Let's Encrypt with Certbot

  • It's free and integrates well with NGINX to automatically generate and renew SSL certificates.

  • Refer to the Certbot documentation for a step-by-step guide.

Using Existing Certificates

  • If you already have certificates issued by providers like DigiCert, Sectigo, etc., configure NGINX with directives like ssl_certificate and ssl_certificate_key to link to the certificate and key files.

Self-Signed Certificates

  • They are okay for testing or internal use but are not recommended for live sites, as browsers will display security warnings.

Conclusion

Which paths would you like to connect as a reverse proxy? With this setup, you can reliably and securely manage the Framer site on your domain. Initially, try proxying the entire site with the basic server block, and later, specify only the necessary paths for more flexible operation.


This article is a translated and adapted version of ‘Proxying with NGINX’ from the Framer official blog.

Share Blog

Share Blog

Become a
Framer Expert

Any expert capable of Framer outsourcing can apply.
We connect experts and clients directly, with no intermediary fees.

Become a
Framer Expert

Any expert capable of Framer outsourcing can apply.
We connect experts and clients directly, with no intermediary fees.

Become a
Framer Expert

If you are an expert available for Framer freelance work,
anyone can apply.
No intermediary fees, we directly connect
experts and clients.