Questions tagged [redirection]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

Ubuntu 18.04 Apache HTTPS://host.example.com to HTTPS://host.example.com/dir/

I got my http to https working with permanent redirect. So if anyone goes to "http://host.example.com" it perfectly redirects to "https://host.example.com/dir". But if anyone goes to "https://host....
0
votes
2answers
41 views

I'm getting Permission Denied when redirecting output from CMD to a text file using the logitech_dfu tool

I've gotten this output using this command you see here from the Logitech instructions, and using the ">" operator before the file names in said command. It errors, and does not place anything in the ...
0
votes
0answers
357 views

Read a million Q/A on iptables redirection of packets to a local port and answers don't answer to my context

My filter table has a policy of drop. (I absolutely want this, poke holes when needed) I want nat table to intercept packets going to 443 and send them to any other port on the same machine I choose. ...
1
vote
0answers
37 views

NGINX auth_request and 302 response status = 500 invalid URL prefix

I'm trying to make NGINX authenticate requests with OAuth2 server (authorization code flow) that will redirect client to the login page. Is it possible to use auth_request directive for that? Here is ...
0
votes
0answers
21 views

NGINX - Map domain to a subroute or route

I have a wordpress multi-site (sub-directory) setup configured at my sub-domain as: wordpress.mysite.com Now, I've created two sites located at: wordpress.mysite.com/site1 and wordpress.mysite.com/...
0
votes
1answer
30 views

WordPress redirection plugin database update issue

I am using this plugin to manage my redirections on my wordpress site. After updating to version 4.7 the plugin indicates that an update of the redirection database is necessary. Doing so however ...
0
votes
2answers
119 views

Redirecting webhook with nginx

I am changing the domain name of my app from old.com to new.com My app is connected to external APIs that send data through webhooks, and I would like to redirect the webhooks sent to the old url, so ...
2
votes
1answer
39 views

How do I remove the www from my domain URL

I am using a tomcat server and I have installed the SSL by changing strings in server.xml and web.xml file. Problem is, When I browse with domain.com, www.domain.com, in both the cases it is browsing....
0
votes
0answers
13 views

How to prevent nginx from serving the wrong certificate and vhost [duplicate]

I'm trying to configure nginx to drop any connections for vhosts that are not configured be it from port 80 and port 443 but so far I haven't been successful at it. So far I've read through this: ...
1
vote
1answer
52 views

Nginx : port redirection

I'm using nginx as a reverse proxy and i would like to redirect the port 3000 provided through the url to the same port on the proxy pass but i'm always redirect to the 443 port when trying. Below is ...
40
votes
1answer
3k views

Why can I update a file owned by root using sudo vi, but not append a line to it with sudo echo “Thing” >> file?

I would like to have script that is doing automated migrations of websites from another be able to append Includes to the /etc/httpd/conf.d/vhosts.conf file. However, when I try to use echo to put ...
0
votes
1answer
37 views

Nginx Redirecting URL (301) with Query String to Final Destination in Single Chain

I need help with nginx redirection I want to redirect: example.com/new-clock/?bc=search&search_id=202 to www.example.com I have used this code in nginx config rewrite ^/new-clock/?bc=search&...
0
votes
0answers
20 views

Printer Redirection in Server 2012 R2

I have Windwows Server 2012 R2 with Remote Desktop Services enabled. There are 10-12 users that connect to this RD server from local LAN and 4-5 users that connect from internet. For local users I ...
0
votes
0answers
61 views

HAproxy redirect map

I have a large amount of redirections to make for multiple hosts. The redirections look like this : dom.aaa/page_src_a -----> dom.bbb/page_dist_1 www.dom.aaa/page_src_a -----> dom.bbb/...
0
votes
2answers
310 views

Why is there a mysterious page redirection on localhost? [closed]

I migrated this question from https://stackoverflow.com/questions/59259672/why-is-there-a-mysterious-page-redirection-on-localhost on StackOverflow I am seeing something extremely weird that I have ...
0
votes
2answers
29 views

Delaying creation of output files when running a longer command

Situation: I have a shell script running. Whenever a file appears in /etc/scripts, the shell script will chmod it to be executable, and then run it. It will then redirect it's error and output into 2 ...
0
votes
0answers
89 views

Apache with mod_jk http to tomcat https Bad request

Dears, I have JSP application sitting on Apache tomcat. I have installed apache2.4 and enabled SSL with mod_jk and kerberos basic authentication working very well when i go to: https://mysite/App with ...
1
vote
1answer
41 views

nginx permanent redirect rule from one domain to another with URL params

I am redirecting the URL from one domain to another using the nginx server block like below: server { server_name subdomain.example.com return 301 https://subdomain.example2.com$...
-1
votes
1answer
36 views

hosting multiple websites on multiple servers with a single outside IP address

I have a single outside, static IP address. I have a domain registered (abc123xyz.com) that points to this IP address. I would like to be able to set up multiple servers (Microsoft and Linux) on the ...
0
votes
1answer
95 views

NGINX redirection with CNAME

It's my first time using NGINX and I running into some trouble. So I have a A record pointing to test.example.com and I created a CNAME toto.example.com redirecting to test.example.com test.example....
1
vote
1answer
59 views

Coming Soon Page with Varnish : Exclude Redirection by IP

I've tried to install Varnish Cache with Magento 2. It seems to work OK (although I still have a no-cache to find and to delete apparently ...) but my .htaccess redirection for my "coming soon" page ...
0
votes
0answers
18 views

When appending to a file, does bash keep that file in memory

I have a long running python program that logs to a file. I start program and let it run in the background python my-process.py >> /var/log/my_log.log 2>&1 & The free memory ...
1
vote
2answers
215 views

wildcard name-based provisioning in haproxy.cfg with LE

Trying to redirect certain domain names to specific backends using catchall wildcard entry[A, A1] in haproxy.cfg (HAproxy v1.8.12 Host OS:Alpine Linux v3.9 version details [B] posted at the end in ...
0
votes
1answer
31 views

iis 10 on Server 2016. Redirection Why?

I have this issue with a newly created site in IIS 10 on Server 2016 I have several sites in IIS. eg testone.myhome.local testtwo.myhome.local I wanted to create a new site, so I added the DNS A ...
1
vote
0answers
23 views

Wordpress Redirection not working

I have a wordpress website where i applied a redirection with the following plugin: https://wordpress.org/plugins/redirection/ I set a few 301 redirections but i get the following error: This page ...
1
vote
1answer
196 views

Apache Redirect without include document root in rewrite rule

I have this working rule: RewriteRule ^(.*)/amp/$ https://example.com/$1?amp=1 [QSA,R=301,NC,NE,L] For redirecting https://example.com/register/amp/ to https://example.com/register?amp=1. And it is ...
0
votes
0answers
47 views

Redirect SSH connexion to another port in function of (sub)domaine

Let me explain what I'm trying to do ; first, I don't want a solution like editing .ssh/config to write a default port for specific domains client side, my question is specific to server side :) The ...
0
votes
1answer
320 views

How to redirect traffic sent to tap to a specific ip addr

I created a tap device using the following commands: sudo ip tuntap add mode tap tap7 sudo ip link set tap7 up sudo ip addr add 77.0.0.1/24 dev tap7 Now, I am using c++ sockets programming to write ...
2
votes
0answers
80 views

ipnat.conf rdr won't work solaris 10

I'm currently trying to achieve the following from the ipnat.conf configuration file on solaris 10: I need my server to act like proxy between two specific hosts (with specific ports). Lets say hostA ...
0
votes
1answer
188 views

Why do redirects from my subdomain end up on my primary domain?

I've got a custom subdomain that, when using Java's HttpServletResponse::sendRedirect() is getting redirected to our main (sub)domain and I'm not sure why. Users at https:// custom.example.com/...
0
votes
2answers
68 views

Why my https://MY_SITE.COM always redirect to the wrong server?

I have done every thing I could to solve this issue, and I could not find any solution. So, my problem is that I can't have lemeilleurducbd.com or https://lemeilleurducbd.com to redirect to www....
1
vote
1answer
283 views

How can I reset the max-age cache control of my page being redirected ( 302 )

A few hours ago I used the following code in my htaccess to redirect the homepage to a maintenance page: Maintenance redirection RewriteCond %{REQUEST_URI} !/maintenance/index.html$ [NC] RewriteCond ...
2
votes
1answer
1k views

IIS URL Rewrite: Match subdomain and redirect to HTTPS

Suppose the website URL is subdomain.company.com I want to redirect the user to https://subdomain.company.com only if The original request is not using https subdomain matches subdomain.comapny.com ...
0
votes
2answers
62 views

Redirect purely LAN communication to a different interface and port (Linux)

I have the following situation: One interface (device) identified by an IP address of 192.168.1.x (I1) that's connecting through whatever service to another interface with IP 192.168.1.y (I2) to port (...
0
votes
1answer
217 views

redirect www.subdomain.domain.com to subdomain.domain.com

We currently have a domain that have a wildcard ssl so our site is something like this, www.ourdomain.com ourdomain.com subdomainA.ourdomain.com subdomainB.ourdomain.com and so on. What i want to ...
-1
votes
1answer
330 views

DNS alias to external subdomain

I have a homepage with a subdomain. For example "mysub.maindomain.ch". Now I want to redirect another domain "www.theother.ch" to this subdomain. In fact: "www.theother.ch" should open "mysub....
0
votes
0answers
462 views

forward all traffic between two ports without iptables

I have read this: Port forwarding on Linux without iptables? I have a vps and I have ran lxc containers on it. I want to redirect all incoming traffic from one outside port to one port of a container ...
0
votes
1answer
245 views

Google Domains & Hetzner

I have a server with Hetzner, and a few domains with Google Domains. I have an Apache server running on port 80, and a Node server running on port 8080. If my server's IP is 192.0.2.4 and my domain ...
2
votes
1answer
238 views

Redirect traffic from one IP address

A have a root server with 2 static IP address which are both connected to one interface (eth0 and eth0:1). Now I need to redirect all incoming traffic from one IP address to a VM on the same PC. The ...
0
votes
1answer
368 views

Apache 2: redirecting from https to https with www in htaccess

I have a problem with redirecting my website from https://example.com to https://www.example.com I've found a lot of advices (means rewrite rule to htaccess) on the Stack Overflow and serverfault ...
-1
votes
1answer
43 views

Website .htaccess redirection loop issue [closed]

I have my news website hosted in US and it is being managed by cloudfare. I have placed one local server in Nepal as well for faster serving of web pages. MYSql replication and web content sync is ...
2
votes
0answers
446 views

How do I get HAProxy to not change the request URL?

I setting up HAProxy, task is very easy - redirection to two servers on port 8443. I did it. But I have one trouble when I write in browser address line my domain (xyz.domain.loc), it replace my ...
0
votes
1answer
53 views

Redirect one interface

I have a server with two external IP addresses. One one eth0 and the other one on eth0:1. Now I want to redirect one IP to an other server in the local network. I've already tried: iptables -t nat -A ...
0
votes
1answer
359 views

Redirect all traffic from one domain

I have a server with a VM on it running. I'm now trying to redirect all traffic to the VM which uses a special domain. Example: domainA.example:1234 // don't redirect <br> domainB.example:1234 ...
5
votes
1answer
4k views

haproxy redirect custom http traffic to a custom https port

I wish to redirect my custom http port traffic to custom https port based on the port I receive traffic on I have multiple bind statements : bind 1.2.3.4:7777 bind 1.2.3.4:8888 bind 1.2.3.4:9999 ...
-1
votes
2answers
195 views

point an IP to a subdomain [closed]

It is very common to point domains or subdomains to some IPs. However, I would like to do the opposite: I would like to point the IP 42.42.42.42 to a subdomain, E.G to test.example.com so when I ...
0
votes
0answers
28 views

Are mail redirect not reliable?

I have now twice created a setup on two different platforms which appear to fail - sometimes. The emails just appear to vanish. I have a domain name and configured a MX record on the DNS to send ...
1
vote
0answers
51 views

How to 301 redirect piece by piece?

I will move my blog website (monthly traffic of 250k) to a new domain name. I will use HTTP 301 redirections. But I should not redirect all links at the same time because of some business reasons. I ...
2
votes
1answer
1k views

How allow Haproxy to follow a redirection?

I always get a Bad Request (400) response from Haproxy with this configuration. Here is the frontend : frontend http-in bind *:80 mode http option httplog log debug acl cm-acl ...
0
votes
1answer
238 views

Forward SMB from private interface to public interface?

I have a router with public IP address ADDR and private IP address 192.168.1.1. I also have a public domain DOMAIN with an A record pointing to ADDR. The router has a built-in SMB server. I can ...

1
2 3 4 5 6