Infinite Loop From Mod_rewrite
Dec 6, 2007
I am having trouble figuring this out.
I am receving this error in my error log:
Code:
[error] [client XX.xxx.XXX.x] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Now Earlier I had that ip keep accessing my server for an odd reason. So I used mod_rewrite to block its requests.
Code:
RewriteRule file /index.php [R=301,NC]
RewriteRule file2 /index.php [R=301,NC]
RewriteRule file3 /index.php [R=301,NC]
So I am convinced Errors I am getting with these are from bots that are not accepting the redirects?
View 6 Replies
ADVERTISEMENT
Jul 18, 2013
We are getting infinite loops due to the user requesting the same page continuously , even if apache sends a 200. It is happening randomly once every two or three weeks for different users.This issue is not confined to one browser it is happening with firefox 21, firefox 5, ie 8, etc. It is not happening to the same user again.
It is a PHP based website with custom CMS.We are never able to replicate this issue.Is this something related to a plugin installed on a browser ?
PHP Version 5.3.8
Mysql
Apache 2.0
SUSE
View 1 Replies
View Related
Mar 25, 2007
my nameservers are failing I ran a DNS test over at [url]
and entered one of the accounts hosted on my server www.darkdemon.org
and at the end of the results I get
nameserver loop detected
I normally get my friend to setup my nameservers sadly hes on holiday at the moment so I'm trying to setup the nameservers myself, any idea how I can resolve this issue?
I'm running Centos 4
Cpanel / WHM
View 5 Replies
View Related
May 7, 2009
I have a question regarding something.
I have a live visitor tracking software so I see visitors online in my website
Some hour ago someone from AOL United States was on my contact page website.
Then after an hour i see the same user is still on the contact page but he is going from home domain.com to domain.com/contact.php
Then after 10 seconds he goes again to the homepage, 10 seconds later he goes again the contact page. So the counter shows 1000 pages this visitors is hitting all the same, forwards and backwards, to the homepage and back to the contact page, again and again in a loop for 10 seconds in one, 10 seconds in the other.
So I think this must some user that left his PC on and is going crazy in a loop, has a virus or something abnormal. The IP resolves to a AOL proxy cache using Internet Explorer with low resolution ,536 something.
So I go into the server restart apache, and think this is going to cut or break the connection. No, user is still there looping.
So I say, enough with this, this is not normal, I block the IP. Then voila the user changes IP but same browser from AOL. I say what? Block the new IP and this little devil changes IP again. So i think this must be someone trying to corrupt my webstats or is having fun on me, since a DDOS attack would not be so stupid to use only 1 IP. I block every IP and he keeps changing. So I block the full range from 205.188.116/***
View 4 Replies
View Related
May 30, 2009
Has anyone else got an email from NetVentures regarding a review site and then getting 8+ tickets from other hosts? Seem to be a lot of victims... [url]
View 5 Replies
View Related
Jul 1, 2008
I am writing on this forum and I am hopping some will help me. I have an issue with unmounting and deleting the /dev/loop0 on my host machine. Below is the error I am getting:
# losetup -d /dev/loop0
ioctl: LOOP_CLR_FD: Device or resource busy
View 2 Replies
View Related
Aug 8, 2008
I am having an issue with one of our sites sitting behind an alteon load balancer. Basically, when people try to checkout from a store it redirects to https. Well, this gets stuck in a loop and never responds. If you go to https directly it works fine till you try and check out.
Flow is like this 443->loadbalancer->81 apache web server.
Anyway, I think it has something to do with the session getting lost. I've read some on proxying but I am not sure how to get it working.
View 1 Replies
View Related
Dec 3, 2008
my system sometimes just hangs, until i manage to restart apache.
i believe one of my programs, most likely php scripts, has infinite loop, unfortunately i'm clueless which script, where.
View 3 Replies
View Related
Jan 25, 2014
Well, I was trying to use the following in htaccess, but I get the message of redirect loop.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
What I want to do is this: The URL is like somedomain.sub.com/somepage/s1/s2The index.php is accessible from somedomain.sub.com/somepage/I want to send s1/s2 as $_GET['page']
Also, I don't want the URL in the address bar to change, only the url sent to the server should change. This worked well in my localhost, but on webserver (0fees.net), it doesn't work ...
View 1 Replies
View Related
Sep 19, 2012
I do not know how this happened though. When I use find command on shell, I got the following error.
find: File system loop detected; `/var/named/chroot/var/named' is part of the same file system loop as `/var/named'.
It is minimal CentOS6.3 install with plesk 11.
View 15 Replies
View Related
Jun 28, 2015
in CENTOS 6.6 / PLESK 12 when I use the find command I get this notice:find: File system loop detected; "/var/named/chroot/var/named" is part of the same file system loop as "/var/named".
View 2 Replies
View Related
Mar 29, 2015
I am trying to access my web stats - AWStats is the one it is configured for.
But when I click to go to web stats a popup opens that gets stuck in a redirect loop so I cannot access them.
The url is right, like this, but with my domain : [URL]
View 11 Replies
View Related
Jul 24, 2014
I have a problem with one of my Plesk Panels for windows (v. 11.5.30 Update #47). One of the clients is getting "Redirect loop" error when tries to login to his panel. The funny thing is that this is only happening to one account. I've tried to change subsriber for his subscription, but there was no result, since the same thing happend when I tried to login with the new subscriber's login.
View 1 Replies
View Related
Dec 2, 2014
I have 2 different servers one with Plesk 11.5. and one new just installed Plesk 12.0, the 12.0 will not send emails out but i get them back to the inbox of the outgoing server. is there a fix for this as i have tried both postfix and qmail to send out emails all with the same result.
It seems that something has changed from version 11.5 to 12.
The plesk configuration is installed on Debian 7.7 OS
View 6 Replies
View Related
Jun 12, 2009
I've just moved a few webistes from Linux to Windows and I'm using IIS to run them. Does anybody know of any free alternatives to ISAPI_REWRITE so I can use mod_rewrite per account?
View 8 Replies
View Related
Oct 2, 2007
Its October and I have a Server at home with me running NO CONTROL PANEL... I have been using it for 5 years now... But my problem is my mod_rewrite is not working... I have tried fixing it... But I can't find it in the httpd.conf file where I heard it was at... They said it came by default by Apache..
I'm running Apache2.2.4, Fedora Core 7), PHP 5, MySQL 5.... I don't see the mod_rewrite on there....
View 14 Replies
View Related
Dec 15, 2005
I have a list of categories that i want to rewrite the URL to display the names instead.
I'm using this:
RewriteMap catlist txt:C:/web/apache2/htdocs/catnames.txt
RewriteRule ^/cats/(.*)$ /categories.php?catid=${catlist:$1|0}
catnames.txt consists of
CategoryName 6
AnotherCatName 8
OnemoreCatName 9
.....
and so on.
This works fine on my local windows PC since i'm using httpd.conf to set this up.
When i use this on my server under .htaccess, the error log says "RewriteMap" not allowed here.
I it only to find out that i cant use RewriteMap under .htaccess... Is there any other alternative to achieve this without listing all the category names with corresponding rewriteurl statements in my .htaccess file?
View 14 Replies
View Related
Sep 8, 2005
I have installed a Apache server version 1.3.33 on windows XP and would like to enable mod_rewrite so i can rewrite my ugly url´s. How do I install this great feature in Apache so i can test it locally?
Do i just remove # from
#LoadModule rewrite_module modules/mod_rewrite.so
#AddModule mod_rewrite.c
View 2 Replies
View Related
May 28, 2008
I've lots of:
[warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.
Any ideas how to track them?
View 5 Replies
View Related
Oct 24, 2009
does mod-rewrite consume ram?
actually found in new vb discussion of seo friendly urls and mod rewrite was an option for most friendly url, so wanted to know if constant usage of mod-rewrite adds additional load to the server or not?
forum which I and my friends use are pretty big more than 6k in a forum and other above 25k, with 250k posts in 1 forum and 600k posts in the other, so just give me an idea on wat can happen due to constant overwritten?
View 8 Replies
View Related
Mar 29, 2009
So I've setup a server heres the spec provided by Webmin
Operating systemUbuntu Linux 8.10
Webmin version1.470
Time on systemSun Mar 29 18:56:12 2009
Kernel and CPULinux 2.6.27-11-server on i686
System uptime5 days, 19 hours, 42 minutes
I'm struggling with mod_rewrite their seems to be no such thing...
Its not mentioned in the apache2.conf or httpd.conf, httpd.conf was blank previously but I added in certain things to get php working but I cannot get mod_rewrite working, which brings the question forward what else am i missing?
I started out with the aim of blocking the ability of viewing directories.
Quote:
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_setenvif mod_status mod_vhost_alias
So how can I go about getting mod_rewrite setup and/or what ever else I'm missing that I might find essential later on once I have everything setup?
View 4 Replies
View Related
May 15, 2009
I am struggling to get this .htaccess file to work with lighttpd, i am not a coder so its very hard for me to fix it, hopefully if someone knows how can tell me how to write rewrite code that will get it working.
{quote}
1. Comment the 2 lines below if the server returns 500 errors!
Options -Indexes
Options +FollowSymLinks
#Uncomment following lines if you want to use image caching!
#<IfModule mod_expires.c>
1. ExpiresActive On
2. ExpiresDefault A1209600
3. ExpiresByType text/html A1
#</IfModule>
1. Uncomment following lines if Apache doesnt support MultiViews!
<IfModule mod_rewrite.c>
RewriteEngine On
1. Uncomment the 2 lines below if you are using www.domain.com # as the baseurl for the site and users access your site # via domain.com (THIS IS REQUIRED FOR JQUERY TO WORK)
#RewriteCond %{HTTP_HOST} ^domain.com [NC]
#RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* loader.php [L,QSA]
</IfModule>
1. Edit below lines and set to
2. ErrorDocument CODE /RELATIVE/error.php
3. If the script is installed in the default document
4. root then relative is null.
#ErrorDocument 401 /error.php
#ErrorDocument 403 /error.php
#ErrorDocument 404 /error.php {/quote}
looks like its calling the rule from loader.php file, now how can i convert this to lighttpd language,
View 4 Replies
View Related
Oct 28, 2009
I have been using apache and php-cgi and it works well together but when I tried to use
mod_rewrite it stopped working and I got "Internal Server Error" result.
Apache error log showed "FastCGI: incomplete headers (0 bytes) received from server"
I think that mod_rewrite rules are ok because when I refer to some HTML file then it all works.
Apache 2.2.14 and php 5.2.11
View 5 Replies
View Related
Mar 23, 2008
I have a VPS and I need to enable mod_rewrite.
Here is my PHP Info: [url]
I read a tutorial but I just don't get it. I would appreciate if you could help me out.
I need it for my Wordpress blog.
View 14 Replies
View Related
May 28, 2008
I'm trying to redirect everything except the subdomains from an old domain to a new domain. The following appears to work so far:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^sub1.olddomain.com$ [NC]
RewriteCond %{HTTP_HOST} !^sub2.olddomain.com$ [NC]
RewriteCond %{HTTP_HOST} !^sub3.olddomain.com$ [NC]
RewriteCond %{HTTP_HOST} !^sub4.olddomain.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]
But the subdomains also seem to be loading rather slow. Am I doing anything wrong here? Is there any way to optimise or simplify this (I have around 11 subdomains on the old domain)?
View 1 Replies
View Related
Aug 31, 2007
I am attempting to redirect any subdomain as follows:
subdomain(dot)domain(dot)com to
domain(dot)com/index.php?user=subdomain
I am having some issues doing this though. None of the samples online seem to work. Do I need a wildcard subdomain? Do I need to do anything to the dedicated linux server I am on? I have other sites on the same server all using mod_rewrite successfully.
Here is what I have so far:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^w{3}. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).domain.com$ [NC]
RewriteRule ^.*$ /index.php?user=%1 [L]
Is there anything I am missing to get this thing working?
View 3 Replies
View Related
Aug 13, 2007
I had the sysadmin install SuPHP - so that my upload script would work properly, however now my mod_rewrite is broken.
You can view the problem here: [url]
It is supposed to show the item with id 29, as you can see. However it shows the gallery index (As if /gallery/ was typed in without the view-29)
The .htaccess file:
Code:
#.htaccess
RewriteEngine On
#This will force trailing slashes
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]
#RewriteCond %{REQUEST_URI} !^*(css|png|jpe?g|gif)
RewriteRule ^(.+)/(.+)/?$ $1.php?args=$2 [QSA,L]
RewriteRule ^(.+)$ $1.php [QSA,L,NC]
My very framework relies on the .htaccess working this way... I can turn it off, however I would really rather not - so if you have any idea how I can fix this, please do tell.
And on a related note, is it possible to run PHP under a user and not use cgi_php?
View 14 Replies
View Related
Aug 6, 2007
how can I run a equivalent on lighttpd like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
View 0 Replies
View Related