Giter Club home page Giter Club logo

Comments (3)

granalberto avatar granalberto commented on August 18, 2024

I'm just looking for this too. It'd be great.

from relayd.

livmackintosh avatar livmackintosh commented on August 18, 2024

Also would be great to have. Maybe there is a way to do this but it is not clear. Assumed one could use the "block" directive in a protocol section but this seems not to be the case. It is a little unclear what the "block" directive does and if it is the same or different to the one of the same name in httpd.

from relayd.

sysfu avatar sysfu commented on August 18, 2024

Hi Reyk,

Could you please consider adding a redirect option to relayd? Currently I am forwarding to httpd, which works fine, but would be great if this can be handled in relayd directly. For example http to https.

My current relayd,conf for port 80:

table <redirecthost> { 127.0.0.1 }  
relay www {
        listen on egress port 80
        forward to <redirecthost> port 80
}

The only thing that I have in httpd.conf is:

server "<hostname>" {
        listen on 127.0.0.1 port 80 
        block return 301 "https://$SERVER_NAME$DOCUMENT_URI"
}

Or is this already possible and I just didn't do my homework?

Did you find a solution for this? If so, can you please share the relayd configuration lines that accomplished the redirect?

I'm trying to redirect http requests from a bare domain to https on the www subdomain on another host.

from relayd.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.