The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
36 views

nginx redirect loop with proxy_pass and $http + CloudFlare

My nginx configuration works great until I add a redirect that forces HTTPS. The working config before the redirect is is: server { listen 80; listen 443 default_server ssl; server_name ...
1
vote
1answer
217 views

302 redirect loop with nginx and Wordpress

I've been searching a couple of hours in Serverfault trying to solve this problem but I can not find a solution. What happens is: I am having a 302 redirect loop using wget in my site, but not using ...
0
votes
0answers
34 views

Avoid redirect loop using htaccess or php

I have searched for my specific problem using google and your sites search engine, but found nothing similar to my task. I am rewriting via htaccess internally to point to the specific site content. ...
0
votes
2answers
126 views

Redirect loop when forcing SSL with Nginx

I know this question has been asked and answered a million times, but none of the accepted answers are working for me. My site is unreachable due to some sort of infinite redirect loop when I force ...
1
vote
2answers
479 views

HP 2510G Loop Protect doesn't work

I have a problem with Loop-Protect on a HP 2510G Switch. I configured Loop-Protect with loop-protect all receiver-action send-disable and set transmit-interval 1 and disable-timer 30. I tested my ...
1
vote
1answer
112 views

Active CARP network loop

I have to setup, no matter what, a cluster of 3 active OpenBSD 5.5 with CARP on 3 separate ESXi 5.5 hosts. I think I'm close to the end but I have this message in /var/log/messages : carp0: replay ...
0
votes
2answers
237 views

How to avoid loop limitation in a openvz container?

On a openVZ containing Deb7 I need to lock the maximum size of a folder, which is used to upload on a php based web server. The directory is synced, so I have to lock the maxsize. MAXSIZE should be ...
1
vote
1answer
943 views

nginx infinite 302 Found redirect loop

I am using nginx to map multiple domains to google app engine. in this specific case i map multiple domains to the same tenant. there is a configuration in my code that knows which domain is the main ...
0
votes
1answer
46 views

use do,while to make loop for each network adapter

I want to get RX and TX from each network adapter, so to get RX and TX from one network adapter, i used this commands : cat /proc/net/dev | grep 'wlan0' |awk '{if ($2) print $2}' | awk -v ...
0
votes
2answers
63 views

opensource feedback loop implementation for email and webmail integration

I would like to find out if there is an opensource software that implements the Feedback Loop: http://en.wikipedia.org/wiki/Feedback_loop_(email) . I will try to be more specific. I want my clients to ...
0
votes
0answers
47 views

Router Advertisement loopback

I have a machine acting as a router. To send out router advertisements it is running radvd. IPv6 enabled. When an interface is enabled (e.g. a link-local address is set) radvd will sent to all nodes ...
0
votes
0answers
202 views

Prevent auto forwarding NDR loops

a week ago we experienced a really sweet problem at a client of ours. They are a school with around 1200 users, and everyone of them has auto forwarding for all mail activated. We use Exchange 2010 ...
-1
votes
1answer
985 views

How to find source of 301/302 redirect loop? Heroku GoDaddy Zerigo

this should be a relatively simple problem but I'm having trouble.I hope this is the right forum to post on as I've seen people get booted off stack-overflow for this sort of thing. I've setup a web ...
1
vote
1answer
446 views

Preventing redirect loop with .htaccess parameter re-write

Let me start by saying I am not an .htaccess or Apache expert by any means. But I have the need to append a hashed term to the end of a URL query. For example: ...
0
votes
1answer
52 views

MySQL replication as both master and slave (replication loop?)

I've got two MySQL servers, one as a master in the replication process and the other as the slave. I was wondering if anything bad would happen if I made the current master a slave to the current ...
0
votes
1answer
190 views

Redirect Loop while logging into Wordpress via SSL

My current situation right now is that I can't figure out how to make the right redirect rules in "location" My ssl.conf is as follows: location ~ /wp-(admin|login|includes|content)/($|.*\.php) ...
7
votes
1answer
3k views

Layer 2 Loop Avoidance: Three Switches in Series

I know this seems like a homework question, but it's actually part of a larger project (and network) and need to break it down into chunks so I'm clear with what I'm doing. I've never worked with ...
1
vote
1answer
203 views

.htaccess rules cause infinite loop

I am trying to set up some .htaccess rules to stop my WordPress wp-login.php page being accessed from anyone outside of the UK (I keep getting hundreds of people daily trying to hack into it from ...
1
vote
2answers
534 views

Lighttpd Redirect to SSL results in 301 redirect loop

I am running lighttpd 1.4.31 with ssl support and am having an issue with forcing https on a specific virtualhost. If I disable the redirect line from the following config, it works as expect (http ...
1
vote
0answers
733 views

Network topology change every 2 seconds

I'm having some weird troubles with our smb network. There isn't any documentation about the structure/devices or which cable is attached to which wall socked and I'm discovering lots of weird stuff. ...
3
votes
1answer
209 views

kpartx verbose info: what does it mean?

When mounting images with the wonderful kpartx in verbose mode it displays some, likely very useful, information: # kpartx -av wheezy_cln.img add map loop0p1 (252:2): 0 131072 linear /dev/loop0 2048 ...
0
votes
1answer
176 views

Is it possible to redirect network traffic between a host and a guest VM that share a NIC?

I have a CentOS 6.3 machine running several guest CentOS 6.2 VMs. I would have liked to setup a filesystem passthrough between the guest and the host but it seems that this functionality is not ...
6
votes
3answers
883 views

How to avoid automatic responses from putting our mail server in a loop?

I have a mail server X which acts as a middle man between the customers (A) of our feedback applet, created to be used in their websites, and customers (B) of our customers. So, whenever B sends ...
1
vote
1answer
227 views

Redirect loop with rewrite rule in Nginx

I have a simple static web site on Nginx, and I'm trying to implement a redirect from mysite.com/index.html to mysite.com, so it's more search engine friendly. But I get a redirect loop. I wrote this ...
2
votes
1answer
76 views

Copying lines from multiple logfiles, based on content of the line

I have multiple log files of 10mb each. The content of the log files always look like this: 06.09.2012, 21:36:02:83: xxxxx yyyyyy zzz 06.09.2012, 21:36:02:84: xx yyy zzz 06.09.2012, 21:36:05:24: ...
0
votes
2answers
106 views

Variable inside bash's while loop never changed

Why does the following code always outputs "0"? #!/bin/bash RETVAL=0 echo -e '1\n2' | while read number; do RETVAL=1 done echo $RETVAL
0
votes
5answers
770 views

Massive symbolic link creation using for loop in bash

I just wondering myself if it would be possible to create massive amount of symbolic links using a for loop? For exemple, I have a lot of directory on my /tmp directory (I know, not recommanded) and ...
2
votes
2answers
393 views

Is there any way to make ntpd to iteratively consult the server addresses given in the ntp.conf file?

Suppose the machine has an ntp.conf file that looks like this: driftfile <path-to-drift-file> server <NTP-server-1> server <NTP-server-2> server <NTP-server-2> For some reason, let ...
0
votes
2answers
81 views

Pausing deletion of directories if load is high

I have a list of directories that I'd like to delete. However when I do them all at one, load spikes on the box. Does anyone have an example of a script that would wait until load was under a certain ...
1
vote
0answers
181 views

vhost.conf with plesk makes infinite loop

So I'm trying to make rewrite rules for my just migrated site and now we're using PLESK (unfortunately in my opinion). So, in order to make those rewrites I'm using the vhost.conf file in ...
1
vote
1answer
336 views

kvm - cpu cores are disabling and enabling in a loop

On our virtualisation server with KVM, cpu cores are disabling and enabling in a loop after 10 minutes (every disable results in 15 seconds hang for all virtual machines). It happens from ...
0
votes
2answers
108 views

What's the difference between ps processname* | kill and kill -p processname* in powershell?

In powershell, is there a difference between: ps theProcessName* | kill and kill -processname theProcessName* Thanks
3
votes
1answer
1k views

Fiber Channel Loop vs Point to Point

So, I'm playing with a couple of QLogic QLA2340s connected directly together. I've got options here to either have them act as a loop, or in point to point mode. What's the difference if I'm only ...
0
votes
2answers
141 views

Recursive deletion of files (bash)

I'm familiar with how I would tackle this with PHP, however I'd like to get some more practice with bash scripting. The task is to delete all files in a folder, which itself contains subfolders ...
-1
votes
2answers
465 views

Bash loop to move directories on a remote host via ssh

I'm trying to figure out a way to perform the following loop on a remote host via ssh. Basically it renames a series of directories to create a rotating backup. But it's local. I want it to work ...
-1
votes
1answer
91 views

rpm is freezing in the same moment

I'm trying to install an rpm package: rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm And got this via strace: http://pastebin.com/zP45epkd I'm on CentOS 5.7 64-bit: 2.6.18-274.18.1.el5 #1 ...
1
vote
1answer
112 views

Software or script to find source of recursion/loop in directory?

As per title. I've noticed du and find commands can never finish but directory structure is very complex to search for loops etc by hand. I suspect there is one wrongly placed symlink there. Is there ...
5
votes
2answers
3k views

Puppet: Checking sets of variables

Edit: I have come up with what I think is the best way to go about this. Thanks to the people answered my question - it helped along the way. I'm going to post my solution so that others can find it ...
0
votes
3answers
79 views

problem with loop in shell

I have a problem with loop , I used while in my script as below : while read LINE do { } done but the problem is each time I should press enter while running the script, and it supposed to do this ...
0
votes
1answer
611 views

How to stop a runaway loopback process/device without reboot

I am using LVM on my debian 5 server and tried to create a new disk with a partition and a filesystem. server:/# pvs PV VG Fmt Attr PSize PFree /dev/sda2 primary lvm2 a- ...
0
votes
3answers
187 views

Connecting server to more than one switch

I have 3 switches, one NEATGEAR GS748T and two JGS524. Initially I wanted to connect them in a triangle loop, but later suspect that the JG524 does not have spanning tree support. Now I have a Dell ...
1
vote
2answers
1k views

Force SSL on one page via .htaccess without looping

Okay, I have this code: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/borrowing/ill/request\.php$ RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] The way I would expect this to ...
1
vote
4answers
107 views

How to prevent “for” from dividing directory names?

I'm trying to list all hidden directories with a "for" loop: for i in ``ls -a | grep '^\.'` `; do echo $i done The problem is that the loop divides some directory names in two. For example: ...
1
vote
2answers
516 views

How to iterate over a list of files and perform an action on them

I want to write a script (or preferably an alias) that does the following: Find all the files matching a pattern *.jar Iterate over all those files, and run jar tvf <jar file name> | grep ...
0
votes
1answer
237 views

How can I iterate through each ec2 instance attached to a specific load balancer in bash?

I have this bash line that gives me the IPs of the EC2 instances attached. export LB_NAME='lb' ec2-describe-instances `elb-describe-instance-health $LB_NAME --show-long | cut -d , -f 2` | grep ...
11
votes
5answers
2k views

Mounting a partition from a raw DD image file of a physical disk

I have a DD image taken from the raw HDD image (/dev/sdb). This image file contains an XFS filesystem that I need to mount. It is much too large to restore to disks (2.6TB img file) so I would like to ...
3
votes
1answer
245 views

Windows server 2008 hours lasting restart loop then runs OK for months

My windows server 2008 (PDC) is providing AD+DNS+DHCP+RADIUS services for my network with about 100 PCs. It runs just fine for MONTHS, only when i need to restart him (updates or other reason) ...
0
votes
2answers
967 views

copy all *.mkv in subdirectories to parent directory

Roughly, I have a folder setup like this on a linux server: /show/season01/show01/shows01e01.mkv /show/season02/show01/shows02e01.mkv /show/season03/show01/shows03e01.mkv I want to eliminate the ...
0
votes
3answers
1k views

How to kill all screens that has been up longer then 3 weeks?

Im creating a script that i am executing every night at 03.00 that will kill all screens that has been running longer than 3 weeks. anyone done anything similar that can help? If you got a script or ...
0
votes
3answers
2k views

bash one-liner loop over directories throws errors

I'm trying to build a bash one-liner to loop over the directories within the current directory and tar the content into unique tars, using the directory name as the tar file name. I've got the basics ...