Comments (3)
I'm just looking for this too. It'd be great.
from relayd.
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.
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)
- cannot match multiple URLs HOT 8
- "relayctl host disable" only disables host for one port
- Too many CLOSE_WAIT connections HOT 2
- relayd can't load certificates HOT 2
- relayctl reload causes relayd to "hang" HOT 1
- Add support for ECDSA server certificates HOT 1
- IPv6 and SSL certificates HOT 3
- relay http persistent connection HOT 1
- Relayd seems to strip away content from http payload. HOT 3
- SNI support HOT 2
- Better syntax errors
- relayd does not function with OpenSSL 1.1.x
- Redirect host with specific url HOT 1
- relayd MITM/TLS Inspection does not currently appear to support SNI
- Different rules in one relay seem to be interfering when the [with tls] option is used.
- mixing HTTP and HTTPS forwards in one/two relays HOT 1
- Repo out of date?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relayd.