Solved

How to disable an apache redirect of a site

Posted on 2013-12-04
8
475 Views
Last Modified: 2016-02-11
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
Comment
Question by:Tazmanermuni
  • 4
  • 4
8 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39697617
Did you restart Apache?  That is usually required to effect changes like that.
0
 

Author Comment

by:Tazmanermuni
ID: 39697620
hmm i did a apachectl graceful. is that a restart or is there an other command?
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
ID: 39697627
That looks like that should work.  http://www.freebsd.org/doc/handbook/network-apache.html
0
 

Author Comment

by:Tazmanermuni
ID: 39697641
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Tazmanermuni
ID: 39697656
hmm now it works. my dns server continued redirecting some time after the entry was deleted.. anyways works now thanks Dave
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39697666
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
 

Author Closing Comment

by:Tazmanermuni
ID: 39697679
sometimes i amaze myself with how stupid i am...
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39697707
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now