Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to disable an apache redirect of a site

Posted on 2013-12-04
8
Medium Priority
?
613 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 2000 total points
ID: 39697627
That looks like that should work.  http://www.freebsd.org/doc/handbook/network-apache.html
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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
 

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 84

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 84

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

927 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