Questions tagged [redirect]
HTTP or HTML mechanisms used for redirecting browsers to where the actual content is located
615
questions with no upvoted or accepted answers
5
votes
1
answer
2k
views
Apache2.4 ProxyPass exception inside Location block not working
While trying to get the Let's Encrypt Certbot to work on a local server that hosts reverse-proxied content, I am unable to get the local exception working inside a Location block. httpd.conf snippet:
...
5
votes
1
answer
3k
views
How to not redirect when cookie is set in haproxy?
On my site I redirect users with mobile devices to a mobile site using my Haproxy loadbalancer. I got some complaints about that and want to offer the users a link back to the "classic" portal. As not ...
5
votes
2
answers
3k
views
Nginx Multiple Domains
I am trying to add a second virtual host to nginx. When i go to the new domain it redirects to the old one. I have tried restarting Nginx, rebooting the server.
Has anyone come across this before, ...
4
votes
0
answers
526
views
How can I stop IIS 7.5 adding it's own redirect HTML to one issued by PHP?
I have an IIS 7.5 server configured with PHP 5.4.5 running through FastCgi. PHP is configured to return gzip encoded data if the client supports it.
My problem is when I issue a 303 See Other header ...
4
votes
0
answers
3k
views
Squid 3 server not following 301 and 302 redirects?
I've got a Squid3 server set up that's working fine, logging everything, but every time a user visits a website that responds with a 301 or 302 redirect, the request dies and does not redirect the ...
3
votes
0
answers
1k
views
Haproxy same port for http and https
I want my webapplication run only on port 4443. So i added this port to my docker container on haproxy. Now i want to inspect the incomming request and if it is not https, it should redirect to it. ...
3
votes
1
answer
1k
views
Redirect to different domain in using IIS URL Redirect Module not redirecting
I'm using IIS 8.5 with the URL Redirect module installed.
My use case is that we have a defunct web site (www.xyz.com) and would like all requests to this site be redirected to another site (www.123....
3
votes
0
answers
115
views
Need to rewrite domain with specific criteria on Nginx
I have a server with multiple domains pointing to it (it has Wordpress Multisite running on it).
One of those domains (e.g., mydomain.xxx) I need to redirect to another domain, which is on a ...
3
votes
0
answers
434
views
Reverse proxy with login for redirecting different users to different applications
Im trying to configure the topology you can see in this picture:
My question is, having a unique login server acting as a reverse proxy, is it posible to redirect the users to their respective server ...
3
votes
1
answer
2k
views
How to simplify Nginx Mapping regex rules?
I don't know if this question is allowed or not. If not, forgive me :)
Anyway, I have a mapping rule for nginx redirection
/hotel/xyz/abc /hotel/xyz/abc-nana;
/hotel/xyz/abc/ /hotel/xyz/abc-nana;
~^...
3
votes
0
answers
110
views
Redirect user to an arbitrary application protocol (used by Android app)
I have an Android application that declares an intent using a in-house protocol. You can launch it by opening a webpage that contains a link to :
myapplication://foo-bar
I want to an URL on my ...
3
votes
0
answers
776
views
Set up a different index document per directory with S3 static website hosting
I am using S3 static website hosting, and trying to get the following redirects to work:
example.com --> example.com/index.html
example.com/foo --> example.com/foo/foo.html
example.com/bar --&...
3
votes
1
answer
662
views
How to redirect FORWARD proxy users to webpage using mod_proxy - apache
I have searched quite a lot for a solution and most answers pertain to either proxypass (reverse proxy) or are not relevant.
End users' web browsers are configured to use the Apache proxy server.
I ...
3
votes
1
answer
1k
views
IIS 7 Redirect from HTTP to HTTPS fail with ampersand in URL
IIS 7 on Windows Server 2008 R2 SP1
I have added the following rule to my web.config to redirect all incoming request to HTTPS
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<...
3
votes
2
answers
144
views
nginx redirect /2013/04/test.html to /test - not working
I've been going mental over this. How can I redirect a certain url like /2013/04/test.html to /test in nginx?
I have tried this: but doesn't work:
server {
location /2013/05/test.html {
...
3
votes
2
answers
2k
views
nginx howto correct the path from a back-end server redirect response under a virtual directory
The following was my deployed servers:
client ------ nginx proxy(example.com) ------ back-end server(192.168.1.20)
The nginx proxy's external URL was configured under a virtual directory http://...
3
votes
1
answer
1k
views
How to redirect url with port to https with Nginx
I'm trying to set up an nginx webserver and have ssl set up.
I can currently access the site with my server url and also through http and have it redirect to https. However I can still access my ...
2
votes
0
answers
317
views
httpd on OpenBSD: How to Redirect URLs Ending In '.php'?
I am running an httpd(8) web server on OpenBSD. php-8.1.9 is used to serve php. In /etc/httpd.conf I have the following (example.com is a placeholder for the actual domain):
server "example.com&...
2
votes
1
answer
3k
views
403 in nginx when accessing a directory
I made a very simple server to test how a URL with folder behaves in nginx. Nginx is running in docker (nginx:latest image). Nginx runs user nginx (default set in /etc/nginx/nginx.conf).
server {
...
2
votes
1
answer
1k
views
How do I exclude my sitemap from httacess redirect?
I want all urls to be redirected, except my sitemap xml file in the root directory. The htaccess should allow https://old-domain/xml.xml to resolve with HTTP 200, but it is still redirecting to the ...
2
votes
1
answer
108
views
.htaccess redirect/rewrite many domains to many domains
My idea is:
requests to service.example.com should be redirected to service.example.com,
all the other requests to example.com should be redirected to base.example.com
My host is configured in such ...
2
votes
0
answers
3k
views
ErrorDocument 400 redirect to different URL without rewrite
I want to implement a custom Error 400 page on my website tikolu.net, to a file called 400.php in a folder called error.
The first thing I tried was to simply place ErrorDocument 400 /error/400.php ...
2
votes
0
answers
2k
views
NGINX proxy_pass returning 405 on POST request
I'm trying to set up nginx as a reverse proxy to redirect POST requests from http://example.com:5318/msh to http://localhost:5000/msh. This is my config:
http {
server {
listen 5318;
...
2
votes
1
answer
62
views
Force "www" only in cases other than subdomain (nginx)
I have a problem with Nginx (Ubuntu 18), I need to force the "www." in dynamic domains, it is neither multiple domain, it is really dynamic, it can be any one that point to the server.
Currently, I'm ...
2
votes
0
answers
3k
views
Wildfly: http to https redirect on the same port
Question
How does one redirect a http-request to a https-request on the same port?
Use case
Someone opens mypage:1234 but omits the protocol.
The user would expect to enter the page none the less.
...
2
votes
0
answers
96
views
Setup custom domain on GithubPages with QHoster?
I've registered a domain with qhoster.com (foo.com) and I want to link it to my GitHubPages webpage. I've followed the GithubPages guide about this and I don’t manage to make it work.
When I go to ...
2
votes
0
answers
556
views
Drupal / nginx redirect domain without changing URL with proxy_pass
We have a Drupal 8 website which runs about 18 languages, but only the Chinese one has a separate domain. We want this domain, which for testing purposes is testchinese.com to redirect in the ...
2
votes
0
answers
250
views
NGINX - My site has a webmail subdomain even though I never set one up. How do I redirect all webmail.domain.com requests to www.domain.com?
I have multiple nginx sites running on a Digital Ocean droplet. I've installed postfix as a relay to G Suite Gmail.
I only access my email through Gmail itself. So I don't need webmail. Nor have I ...
2
votes
0
answers
776
views
Is there a way i can track which IIS server redirects are being used
Our web.config file has 1300 redirects in it and growing all the time. Its a mixture of 4 site rebuilds over 15 years and marketing vanity URLS. My question is 3 part.
does having to search through ...
2
votes
1
answer
2k
views
How to make NGINX load balancing server without proxying the requests?
I could not find a solution for the issue so this is my question.
Say I have 3 servers, 2 of them are upstream servers, and 1 is a load balancer.
This is my basic configurations
Upstream servers
...
2
votes
0
answers
1k
views
Apache RedirectMatch for SSL allowing LetsEncrypt not working
I've been trying to use Apache RedirectMatch to send most requests to SSL, but still allowing the Lets Encrypt challenge to work:
RedirectMatch permanent ^/(?!\.well\-known/acme\-challenge)(.*)$ ...
2
votes
0
answers
1k
views
Redirect to Docker container with Apache in a relative URL
I have a Docker container running on a Ubuntu server on the port 8080. I can access to the web container with localhost:8080
Now I want to access to this container from the outside with my public IP ...
2
votes
0
answers
1k
views
HaProxy 1.7.9 redirect using acl
I have a couple of HA Proxy servers in a master / slave configuration using keepalived.
Initially, the HA Proxy worked by having a default backend of HTTP and HTTPS servers, but over the past year, ...
2
votes
1
answer
134
views
Best way to redirect a bad-rated domain to a new one?
I recently bought a domain that has an Alexa rank of ~50000. However the domain has a poor history as the previous owner didn't responded to abuse emails nor any DMCA notices. Long story short, the ...
2
votes
1
answer
5k
views
Apache (http) behind load balancer (http/https) - Redirect does not preserve https
I have two configurations - development and staging - with (supposedly) identical configurations: a set of HTTP-only Apache instances sitting behind a Citrix load balancer that allows both HTTP and ...
2
votes
0
answers
1k
views
How can I trace the source of an nginx 301 redirect?
I have a strange situation where a URL is being 301 redirected and it's not in my site config:
server {
listen 80;
server_name www.domain.com;
...etc
}
Curl request:
curl --head -iL ...
2
votes
0
answers
3k
views
Simple Nginx 302 redirection not working
I'm trying to get a simple redirect working on my nginx server. I am receiving the 302 response code back, but the Location header is not set. What am I missing?
My minimal case (with a hard coded ...
2
votes
0
answers
211
views
Why is REDIRECT header_check creating a CC
I configured Postfix with a custom before-queue filter script (fuglu) which inspects every incoming email first, and then adds the following header:
X-Fuglu-Test: Test Email
In postfix, I ...
2
votes
0
answers
481
views
Disable HTTPS for one of two name-based websites, hosted on one IP address
I have a local Apache2 server which hosts two name-based websites on a single IP.
The first website is hosted only on port 80. The second is hosted on port 80 and 443. If accessed on port 80 the user ...
2
votes
1
answer
538
views
Apache 2.4 mod_rewrite rule applying redirect to non-redirect rule (only [L] flag)
So I'm having this crazy-making issue happen on apache 2.4/CentOS7 with a web app.
I want to redirect all non-secure URLs on the app domain to secure versions, EXCEPT for one URI (a webhook endpoint ...
2
votes
0
answers
369
views
Adding an alias for a web app so it works via two context roots
I'm using Tomcat to host a few web apps. They are all running on their respective context roots. Let's call them:
A: https://example.com/A
B: https://example.com/B
I have nothing running at / (ROOT)....
2
votes
0
answers
300
views
NGINX Reverse Proxy redirect settings
I have the following scenario:
NGINX | | JavaEE
TERMINATING | -> REVERSE PROXY -> | Application
SSL (443) | HTTP | Server
Reverse proxy is done by:
...
2
votes
2
answers
4k
views
any url rewrite rule causes internal server error on iis7
I have iis7 on a Windows server 2008 and iis url rewrite module 2 installed.
Any url rewrite rule (in my case a simple canonical domain name rule) causes the webapp to return an error 500.
In my ...
2
votes
0
answers
719
views
CE-1.8.1.0 Redirect Loop in admin
CE-1.8.1.0
Windows 2008 R2 Server
IIS 7.5 Web server
History: We had a perfectly functioning web store UNTIL I added the account of a newly-hired IT person to the Share ACL of the web root. All *^#$%...
2
votes
0
answers
714
views
Why is this nginx www redirect not working?
I'm having trouble with www redirects on an nginx server. The server is running 2 sites: example.com and blog.example.com.
Server config:
nginx/1.4.6 (Ubuntu)
Ubuntu 14.04.1 LTS
Relevant DNS ...
2
votes
2
answers
2k
views
WordPress behind haproxy: $_POST being reset
So here's the sitch:
Load balancer (haproxy) delivering to 3 web servers and a database server, 5 servers in total with memcache sessions being shared between the web servers. I can confirm that ...
2
votes
2
answers
424
views
How to stop a site from redirecting to yours?
One of our competitors recently shut down. Instead of just taking their site down, they decided to redirect all their traffic to us with a 302 redirect. All of the traffic is redirected to us with the ...
2
votes
2
answers
118
views
Is this reverse proxy configuration possible
I will first try to describe the problem I have.
Let's say I have two different http servers running on two different ports behind firewall on my local machine:
SERVER1: http://localhost:8001
...
2
votes
1
answer
2k
views
Jetty 9 - redirect http to https
I'd like to force use of https in Jetty 9. Apparently:
<Set name="confidentialPort">443</Set>
no longer works in jetty 9. How should I do it properly?
2
votes
1
answer
1k
views
Nginx all subdomain points to one subdomain (gitlab) rule
I have installed gitlab on my server and use nginx as http server... I simply used recipe for gitlab on nginx
# GITLAB
# Maintainer: @randx
# App Version: 3.0
upstream gitlab {
server unix:/home/...