Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to disable an apache redirect of a site

Posted on 2013-12-04
8
Medium Priority
?
565 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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.:
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

715 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