LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-01-2008, 07:13 AM   #1
coal-fire-ice
Member
 
Registered: Nov 2004
Location: SE England
Distribution: Debian, SUSE, Ubuntu, Slackware
Posts: 147

Rep: Reputation: 15
change the effect of 302 Found with apache


I am currently in the process of retiring an old server, it is currently running apache 1.3, if an A record of a website is pointing at the server, but there is no definition of the site in apache, it gives a 302, and forwards the request to the servers primary hostname and domain. what i want to do is have apache put up a page with the name of the domain they requested in the address bar, instead of forwarding the user to a different domain.
i.e. if someone requests the server on its ip address, it should not forward their requiest to host.example.com, but rather just serve the default page on that ip address.
this will allow me to write a script to forward them to the correct server.

any help would be greatly appreciated
 
Old 02-02-2008, 05:09 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 375

Rep: Reputation: 38
Maybe I am not understanding your question correctly, but you could just define the virtual host as:
Code:
<VirtualHost *:80>
    ServerName www.pickle.org
    Redirect / "http://dill.pickle.org/"
</VirtualHost>
 
Old 02-04-2008, 08:35 AM   #3
coal-fire-ice
Member
 
Registered: Nov 2004
Location: SE England
Distribution: Debian, SUSE, Ubuntu, Slackware
Posts: 147

Original Poster
Rep: Reputation: 15
thanks for your help, that wasnt it, but i solved the problem over the weekend.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding 302 Error chnlinux Linux - Newbie 2 11-21-2007 06:09 AM
apache program writes files in the apache group, how can I change? muskiediver Linux - Security 5 01-17-2007 01:27 PM
TimeZone change doesn't effect current process cruiserfriend Linux - Software 4 01-17-2006 04:27 AM
Apache "ForceType" not taking effect... EnigmaX Linux - Software 0 05-10-2004 11:12 PM
Apache 2 Error 302 / JSP adcworks Linux - General 1 08-19-2002 11:31 AM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration