Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've been running Apache on my local computer for years. Suddenly, any request to a local page that is not found, is redirected to http://origin.domain.com/. What could cause this?

Just to be clear, I open:

http://localhost/this_page_does_not_exists.html

And I am being forwarded to:

http://origin.domain.com

I tested this in Firefox, Chrome, and even in Lynx, and it happens all the same. Using Apache 2.2.22, on Arch Linux.

share|improve this question
1  
We would need to see your Apache configuration file. But I have a feeling this question should be on serverfault. –  MaxMackie Feb 13 '12 at 17:56
2  
This question cannot be answered without knowing the Apache configuration. –  Gilles Feb 17 '12 at 8:38
    
Additionally, it would be helpful if you would post the results of a manual HTTP conversation with the server. –  Warren Young Feb 17 '12 at 10:08
add comment

closed as too localized by Gilles, Michael Mrozek Feb 23 '12 at 7:12

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted

You could check :

  • your routing tables to localhost host
  • your /etc/hosts file
  • your access/error Apache log and see if the request gets in Apache, or forwarder by the OS beforehand
share|improve this answer
    
Turned out to be .htaccess file of the directory above the one in question. –  user Feb 18 '12 at 3:22
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.