skip to Main Content

Nginx – Dropping a part of the URL in Rails

I have a setup where I route all requests for /upload/* to Rails. Using the blog example, I want somedomain.com/upload/article/new to be treated as somedomain.com/article/new by Rails. I ended up with the following. routes.rb Rails.application.routes.draw do root "articles#index" scope 'upload'…

VIEW QUESTION

nginx ingress rewrite target

I make an nginx ingress for my front-end in vuejs. apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: vuejs-ingress namespace: default annotations: cert-manager.io/cluster-issuer: letsencrypt-prod nginx.ingress.kubernetes.io/from-to-www-redirect: "true" nginx.ingress.kubernetes.io/rewrite-target: /$1 spec: ingressClassName: nginx rules: - host: example.com http: paths: - path: /(.*) pathType: Prefix…

VIEW QUESTION
Back To Top
Search