• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 649
  • Last Modified:

How to disable an apache redirect of a site

I have just recently gotten a server from a friend which have freebsd and apache on it.
i want to remove a 301 moved permanently and whatever redirects it might have on a site that it is hosting. can anyone point me to the files that i have to edit to disable this for a specific site or commands i have to run..
yes i am new to both freebsd and apache but i did find that the vhost.txt file contained som info on the redirect but deleting that entry did not fix it.

please help :-)
0
Tazmanermuni
Asked:
Tazmanermuni
  • 4
  • 4
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
Did you restart Apache?  That is usually required to effect changes like that.
0
 
TazmanermuniAuthor Commented:
hmm i did a apachectl graceful. is that a restart or is there an other command?
0
 
Dave BaldwinFixer of ProblemsCommented:
That looks like that should work.  http://www.freebsd.org/doc/handbook/network-apache.html
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
TazmanermuniAuthor Commented:
hmm something did change.. for this i used http://redirectcheck.com/ and after the entry was deleted it went from a 301 to:

HTTP/1.1 200 OK
Date: Thu, 05 Dec 2013 07:55:18 GMT
Server: Apache
Last-Modified: Tue, 15 Aug 2006 08:19:24 GMT
ETag: "333848-0-44e1838c"
Accept-Ranges: bytes
Content-Length: 0
Content-Type: text/html

but going to the site still redirects me to the other site.
0
 
TazmanermuniAuthor Commented:
hmm now it works. my dns server continued redirecting some time after the entry was deleted.. anyways works now thanks Dave
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome.  Some of these things are not instantaneous, especially DNS.  Also, your browser cache may have brought up the old site if you did not refresh it.
0
 
TazmanermuniAuthor Commented:
sometimes i amaze myself with how stupid i am...
0
 
Dave BaldwinFixer of ProblemsCommented:
Thanks for the points but I don't think you're stupid because of this.  There are literally thousands of things that have to be dealt with when running a server with web sites.  It is impossible to know or remember everything.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now