All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
454 views

Default WordPress .htaccess rewrites causes default server page to load due to no default index page present for the root URL

I could really do with some help here please. I know this is a WordPress issue now through testing. If I allow .htaccess to process rewrites on my Wordpress sites by adding AllowOverride FileInfo to ...
J O's user avatar
  • 21
0 votes
0 answers
83 views

listen and redirect TCP stream to file with multi client support in the background

is there any tool I can listen on some port and accept any client and redirect the stream to a file. I know it can be done using netcat but it seems netcat cannot keep running in the background. I did ...
user3840019's user avatar
0 votes
0 answers
90 views

Is it possible to redirect outgoing traffic on an already used port without using iptables?

I am wondering is there is another solution than iptables to redirect outgoing traffic on a port that is already used to another one, on the same machine locally. Thanks.
Grum's user avatar
  • 1
0 votes
1 answer
1k views

ssh local port forwarding not working when url is redirecting to https

I have a windows 10 home with Linux kali running inside it with vmware virtual machine software. There is a local website that opens on url https://example.com in linux and has self signed certificate....
yogihosting's user avatar
0 votes
1 answer
97 views

How do I redirect a website to local website?

I am trying to make my browser load local website instead of visiting actual website. I have this httpd configuration <VirtualHost 140.82.113.4:80> ServerName www.github.com ServerAlias ...
Bret Joseph's user avatar
0 votes
1 answer
231 views

apache2 is directing to wrong path when using https for sub domains

I have an ssl wildcard cert (letsencrypt) for example.de & *.example.com. My 000-default.conf looks like: <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname ...
Zappenduster's user avatar
0 votes
1 answer
193 views

How to solve non-www redirection to www Nginx?

This is my NGinx Web Server configuration server { if ($host ~ ^[^.]+\.betafox\.net$) { return 301 https://$host$request_uri; } # managed by Certbot ...
AtomX's user avatar
  • 125
1 vote
0 answers
657 views

how to make a redirect conditional on nginx conf

I should make a conditional rediction in nginx. I would like to do something like that. $http_code = code from curl commande if ( $http_code = 200 ){ "redirection to server 1" } else { "...
khaled's user avatar
  • 21
0 votes
1 answer
60 views

Full traffic redirect

I've the following network layout: IMAGE I need to permit to [PC 1] to comunicate with [NETWORK DEVICE] placed in the other side of wan. The software in [PC 1] must "see" [NETWORK DEVICE] in ...
albcar's user avatar
  • 3
3 votes
1 answer
773 views

Redirect all URLs from http to https (with 301 ) except for a few [duplicate]

I am trying to 301 redirect all URLs from http:// to https://, using .htaccess. Some dynamically generated URLs should be excluded. Example of some URLs I do not want to redirect: example.com/tt....
Rogge's user avatar
  • 33
1 vote
0 answers
100 views

Apache 2.4 and TOR

I am hosting an information and forum site and have had a lot of users ask for TOR access but I am having an issue adding it, when connecting from the server IP, everything is fine, the site is fully ...
Webdaddy's user avatar
0 votes
0 answers
3k views

error: rewrite or internal redirection cycle while internally redirecting to "/index.html"

I have a problem with nginx configuration. Everything worked fine in Docker, but I had to resign from Docker, and things started to happen. Actually I get an 500 internal server error when trying to ...
hc0re's user avatar
  • 101
0 votes
0 answers
258 views

404 routing issue - AWS Linux Wordpress site

We are running a WordPress site on a AWS EC2 Linux instance and have created custom 403 and 404 error files (both html files). The files are located in the root of the website. The root .htaccess ...
Paul's user avatar
  • 103
3 votes
1 answer
593 views

Delete repeated subdirectory of url with redirect 301 in Nginx

I have to delete a subdirectory that has been duplicated in several URLs of my site, through a permanent redirect 301. I'm needing help with the Nginx configuration. For example: http://example.com/...
dertin's user avatar
  • 33
1 vote
1 answer
819 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 ...
mlclm's user avatar
  • 169
0 votes
1 answer
58 views

Nginx redirects all websites to another website

I've been facing some weird issue. I have 2 WordPress websites installed on my server. I will call them, example1.com, example2.com All 2 websites run on Nginx, PHP-7.2, MariaDB and Ubuntu 18.04. ...
Tharindu Pramuditha's user avatar
0 votes
0 answers
142 views

Nginx redirect without using a port

I am using a nginx to redirect from several http services with IP:PORT to a https domain. Now I need the nginx to redirect only: http://IP to https://DOMAIN and open it in Browser with: https://...
Kjellson's user avatar
0 votes
1 answer
2k views

Autodiscover 404

After much research and testing, I have implemented the redirect rules to have autodiscover check elsewhere than on my web server. With this post, I am trying to figure out what may be wrong (could be ...
Michael Purvis's user avatar
-1 votes
1 answer
11k views

How to redirect from port 80 to port 8443 using Tomcat and iptables

I have the following iptable entry: REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 8443 In my server.xml, I have only the following connector: <Connector ...
James's user avatar
  • 117
0 votes
2 answers
440 views

.htaccess too many redirections error trying to redirect based on HTTP_HOST

I have two different domains pointing to my server. One of them I use it to redirect to my portfolio webpage. So, if I access through the second domain, I would like to be redirected to a different ...
daniegarcia254's user avatar
0 votes
1 answer
389 views

access specific server behind reverse proxy

I have multiple devices that are all behind a private network. I have a WAN facing server that I can call into. Is there any way for me to be able to send an HTTP request through the WAN server to a ...
zlb323's user avatar
  • 3
0 votes
1 answer
2k views

mod_auth_form and proper redirection after login

Using the Apache module mod_auth_form, when a user tries to access a URL and is 'interrupted' by the form based login, how do I pass on the original URL to the html form or to the ...
Ralph's user avatar
  • 882
0 votes
1 answer
111 views

HTTP to HTTPS redirect failing [duplicate]

When I navigate to http://example.com it correctly redirects to https://example.com. The problem I'm having is that when I navigate to http://example.com/sub/directory/page.htm it redirects to https:/...
crmepham's user avatar
  • 115
0 votes
1 answer
567 views

Redirect from HTTPS to HTTP in nginx as a reverse_proxy

I have an edge server in which a varnish and an Nginx are installed on it. I use Nginx as a reverse_proxy for SSL termination for HTTPS traffic and also forwarding HTTP traffic. Both traffics are ...
Sinai's user avatar
  • 203
0 votes
1 answer
5k views

NGINX Varnish SSL - too many redirects

Anytime I try to add a redirect in an NGINX config file I get this error so I basically avoid it, this is not really the way to proceed so I need to figure out why the heck I cant add redirects... It ...
Kravitz's user avatar
0 votes
1 answer
158 views

nginx http to https redirect stopped working after upgrade to v1.10.3

I recently upgraded nginx v1.8.1 to v1.10.3. When I did so, the "standard" redirect config for http to https stopped working (it directs to the nginx default page). I verified this by simply rolling ...
syncan's user avatar
  • 1
1 vote
0 answers
232 views

Alias hostname and file path

Is it possible to mask the hostname with an Alias and variables? For example: I would like to call http://easyNameToRemember/path/to/file instead of: http://uglyServerName:8000/the/real/path/to/...
Adam Irinaga's user avatar
0 votes
0 answers
638 views

Temporarily redirect all network traffic to website

I've got very little experience with nameservers and really need some guidance on this project - all help is appreciated! I've started a project where I'm going to set up a wireless network similar ...
user2267097's user avatar
-1 votes
1 answer
1k views

Redirect HTTP to HTTPS with WWW in Nginx

I am using letsencrypt ssl. When i access site with domain.com, it gets redirected to https://domain.com but i want https://www.domain.com ! I have added www as alias for domain.com in dns panel for ...
Serafin Czarnecki's user avatar
1 vote
1 answer
51 views

redirecting a subdirectory to some other hosting server fluently [closed]

I am hosting a server on which I would like to have a /articles folder. I would like to redirect all calls to this name www.myserver.com/articles to a wordpress that is being hosted on another server. ...
Ted's user avatar
  • 111
1 vote
2 answers
2k views

apache2.conf write global redirect for all sites hosted on server

I have been trying to add rules like the following to the /etc/apache2/apache.conf file but they havent been noticed, whereas if I add them to the individual .htaccess files they are obeyed and anyone ...
Kravitz's user avatar
  • 167
0 votes
1 answer
1k views

Nginx server_name redirect

I am doing an mobile page redirect for my website,it success, but unfortunately it stay at the same domain name, exmaple: when i go johnson.com by phone it should go to m.johnson.com(Yes, this is ...
JohnsonGoey's user avatar
-1 votes
1 answer
716 views

Manually sent ICMP redirect packets [closed]

I'm trying to sent a ICMP redirect to my router to add a new route, as I can not configure it from the portal, and have no access to it though telnet/ssh. The scenario is the next. LAN network 192....
erdn's user avatar
  • 1
-1 votes
1 answer
120 views

.htccess redirect from non-www https to www-https [closed]

I want to redirect https://example.com to https://www.example.com for my website. Can you help me with the code to put it on .htaccess file. the site is in magento.
Hari krishna's user avatar
1 vote
2 answers
4k views

Apache proxypass redirect subdomain to port and path

Ok, I wasn't sure how to word the title but I'll try to explain my situation. I have a home server running debian that, among other things, is running "plex media server". I access my server ...
Nobbe's user avatar
  • 113
3 votes
3 answers
40k views

nginx redirect http to https not working [closed]

I am trying to reroute from http to https. For example you visit example.com and you will be automatically redirected to https://example.com. I tryed using this one: server { listen 80;...
thotho's user avatar
  • 31
0 votes
0 answers
202 views

301 redirect DNS issues

I think I screwed up something in my DNS configuration and now its bugging me for hours. Any help would be greatly appreciated. I own a domain lets call it abc.com Before all the issues happened ...
Naz Mir's user avatar
  • 141
4 votes
2 answers
6k views

Traffic redirecting with linux? (Man in the middle)

I have got the following scenario: I have a Linux box with two NICs and all network traffic comes in trough one NIC and goes out to the other one. So basically I'm already the man in the middle. But ...
Florian's user avatar
  • 41
2 votes
1 answer
52k views

iptables destination ip and port

I am looking for a way to forward all traffic(to any port) from a pc to a certain ip. Looking at the rule below : iptables -t nat -A PREROUTING -p tcp --dport 443 --jump DNAT --to-destination 129.94....
sukhvir's user avatar
  • 141
22 votes
4 answers
12k views

How to continue redirecting stdout to a file after logrotate moves it?

I have a simple script which outputs a bunch of logs to screen and I piped the STDOUT to a file to store the logs. Since this script is long running, I needed to rotate the log files so they are ...
Mehran's user avatar
  • 519
-2 votes
2 answers
52 views

redirection of https page in apache [duplicate]

As it currently works. The endusers have to go the URL: https://cloud.olaf.europe.eu/owno and that works but i want the users just to go to: https://cloud.olaf.europe.eu/ to access the page. I ...
Johans's user avatar
  • 1
2 votes
1 answer
2k views

Exclude a single file from Apache https redirect

I have a redirect rule in my http.conf file to redirect all HTTP requests to HTTPS: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} This works well as a ...
Mike's user avatar
  • 21
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 { ...
Hirvesh's user avatar
  • 131
0 votes
1 answer
872 views

nginx and try_files confusion

I am confused with how try_files works on nginx, this needs to be done on a live production server so can't test before being 100% sure. I am using header("X-Accel-Redirect: /out/" . $fname); to ...
iTech's user avatar
  • 355
0 votes
1 answer
617 views

Redirect traffic to another local machine requesting for a certain webpage

I need to redirect traffic, which is requesting for specified address(www.vlp.ee), to an another machine(10.251.36.5) located on my local network. The machine that handles the incoming traffic is ...
Kristjan Vilipõld's user avatar
9 votes
2 answers
45k views

nginx redirect to www.domain

I want to redirect the site ALWAYS to www.site.com. However, I am not sure as to how to get the WWW to always show up in front should say someone type in the domain without the www. EDIT: server { ...
Jake Thomas's user avatar
0 votes
2 answers
1k views

lighttpd redirect certain links to certain urls

Could someone tell me how / why is this redirect not working? $HTTP["host"] =~ ".*\\.mydomain\\.com" { url.redirect = ( "/index\.php\?pg=mysql" => "http://mydomain.com/lean-...
Valentin Bajrami's user avatar
0 votes
1 answer
96 views

How to move site and switch link structure using HTTP 301 redirect

I currently have my wordpress blog (apache2, ubuntu linux) hosted at e.g. mysite.com using ID-based linking, e.g. http://mysite.com/?p=547. I have two goals: move my blog to mysite.com/blog change ...
Ben McCormack's user avatar
-3 votes
3 answers
21k views

how to redirect to an URL using iptables?

I want to redirect all the incoming requests to an URL instead of an IP address how can i archive this.. And when I redirect using IP address the redirection is happening but the redirected IP/URL is ...
user1216216's user avatar
4 votes
3 answers
3k views

How to redirect ports for on a virtual interface?

There are two IPs associated with one physical network interface eth0 and eth0:0. The following works fine for the first interface: iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j ...
f3r3nc's user avatar
  • 143