Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 22nd, 2002, 03:58 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
Redirection of new domains??

I have just added two more new domains to my system, which are on the same IP address as my main site.

When you type in the domain name, the site is automatically redirected to my main site. This only occurs on index.html

So when I type www.mysite.com it goes to www.mainsite.com
but when I type www.mystie.com/test.html it goes to the correct page. My apache config file is pretty simple so I can't see the problem there. Where else could this redirection be made that I'm not looking?

Reply With Quote
  #2  
Old January 22nd, 2002, 04:09 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cleanup your browser cache and try again.
Or tell us the real domains so we can test it for you.

Reply With Quote
  #3  
Old January 22nd, 2002, 04:29 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
I have over 300 + domains, most of which have a redirection script to my main site, except for the ones that are being "used".
(like the one below)

My main site's entry in the apahce config file doesn't contain any Rewrite rules for redirection so I'm just wondering where this is coming from. Of course again, I'm cleaning up the mess that someone else made.

The site is http://www.pourvoirienortheast.com which will redirect,

but goto

http://www.pourvoirienortheast.com/packages.html and it works,

so there's something under the covers that's making it redirect when you goto the root or index.html

Might this be a DNS problem?? I'm still fighting with my ISP to get all of my SOA records made to resolve the ones that aren't working.

Thanks

Reply With Quote
  #4  
Old January 22nd, 2002, 05:31 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> So when I type www.mysite.com it goes to www.mainsite.com
>> but when I type www.mystie.com/test.html it goes to the correct page

Sorry, I misunderstood your problems entirely, I thought you don't want www.mysite.com to be redirected to www.mainsite.com at all.

>> Might this be a DNS problem?

Maybe not. Let me try to get this straight and see what exactly you are trying to do:

1) If you go to http://www.pourvoirienortheast.com, what URL should you see in address bar?
2a) Should you see http://www.pourvoirienortheast.com, then what content (html file or script and its filesystem path) should you see? BTW, this is so-called internal redirect.
2b) If it's redirected to http://www.defaultsite.com externally (address bar changes to http://www.defaultsite.com and it's so-called external redirect), how do you distinguish the URI path under http://www.defaultsite.com/what_path_here? for pourvoirienortheast.com?
3) Which way?

(a) http://www.a.com/ -> http://www.defaultsite.com/

And/Or

(b) http://www.a.com/dir/file.html -> http://www.defaultsite.com/

And/Or

(c) http://www.a.com/dir/file.html -> http://www.defaultsite.com/dir/file.html

4) You said you have 300+ domains, but how many vhosts need to do the redirection? Is it globally? Or except just your default site?

5) Are you redirecting everything or part of the sites for those domains to your default site?

6) Do they (those domains) have a DocumentRoot at all?

Sorry for asking all these. There might be better solution to accomplish all this.

Reply With Quote
  #5  
Old January 22nd, 2002, 06:40 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
1) If you go to http://www.pourvoirienortheast.com, what URL should you see in address bar?

http://www.pourvoirienortheast.com


4) You said you have 300+ domains, but how many vhosts need to do the redirection? Is it globally? Or except just your default site?

1 vhost, but all "non-used" sites have an index.html with a redirsction in it

5) Are you redirecting everything or part of the sites for those domains to your default site?

Anything that is an invalid link on the network (300+ domains) will get redirected to the main site

6) Do they (those domains) have a DocumentRoot at all?

Every domain has it's own unique DocumentRoot

Sorry for asking all these. There might be better solution to accomplish all this.

The main issue is this....I know there's something setup whenever an invalid link is typed, it get's redirected. Also, I just had my ISP generate the SOA records for these domains, and wasn't sure if they might have missed something.

Why would this only happen on index.html?

basically I want it to goto http://www.pourvoirienortheast.com
when http://www.pourvoirienortheast.com is typed in.....

where can I look for a redirection if it's not in the apache config file?

Reply With Quote
  #6  
Old January 22nd, 2002, 09:08 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm totally lost, since I still don't have a clue what exactly you are trying to accomplish at all.

2) ?

3) ?

4) You said 1 vhost, which one?
all "non-used" sites. Why?

5) What is an invalid link?

6) Every domain has it's own unique DocumentRoot

If every domain is to be redirected to your main site, they DON'T need a docroot at all.

>> I want it to goto http://www.pourvoirienortheast.com
when http://www.pourvoirienortheast.com is typed in.....

After visiting that site I don't see a problem at all. Should this site be redirected to your main site? And what's the main site's URL?

>> where can I look for a redirection

Why don't you tell me why you need a redirection in the first place?

Reply With Quote
  #7  
Old January 22nd, 2002, 09:25 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
I'm sorry.. ha ha.. I guess I must of confused you..

The problem is this....when I go to www.pourvoirienortheast.com it gets redirected to my main site.

I don't want it to redirect to ANY site.

if I type in www.pourvoirienortheast.com/index.html , then it should go to www.pourvoirienortheast.com/index.html , but instead it's being redirected as you can see.

This ONLY occurs on index.html, no other file in this directory, so something is up whenever it sees index.html, something is telling the domain to be redirected.....

Where? When my apache config file has nothing about redirection in it

my Virtualhost for this domain

<VirtualHost xxx.145.x.34>
ServerName www.pourvoirienortheast.com
ServerAlias pourvoirienortheast.com
ServerAdmin webmaster@pourvoirienortheast.com
ScriptAlias /cgi-bin/ /usr/local/www/pourvoirienortheast.com/cgi-bin/
DocumentRoot /usr/local/www/pourvoirienortheast.com

</VirtualHost>

Since the DNS stuff is ran through the ISP I have no clue what's going on there, but I have a feeling I may be missing something else?

Any ideas on why this page is redirecting when it shouldn't be?

Reply With Quote
  #8  
Old January 22nd, 2002, 09:33 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I don't want it to redirect to ANY site

It's not.

>> but instead it's being redirected as you can see

I don't see a redirection on my end.

>> This ONLY occurs on index.html

I already tested all over that site including index.html and I didn't see a redirection at all.

Like I said in my first reply, you should clear your cache. It's possible that you are using a bad DNS cache. So you can just test another DNS cache by using another ISP's nameserver (cache-only). You can try this IP -> 64.81.79.2 as your only nameserver in /etc/resolv.conf.

Reply With Quote
  #9  
Old January 22nd, 2002, 10:02 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
How do I clear Bad DNS Cache??

I've cleared all the cache on my browser, the site still redirected.

I went to another machine that never accessed the page before and it redirected.

I also tried the name server above, then none of my domains came up, but the redirection url was in the browser address bar.

Weird... How can you see the page and it redirects for me?

Thanks for taking the time to look over this for me.. I'm stumped on this one.....

Does my ISP have to clear the cache on their end?

Reply With Quote
  #10  
Old January 22nd, 2002, 06:06 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> How do I clear Bad DNS Cache?

Run your own, don't use your ISP's cache.

>> How can you see the page and it redirects for me?

Maybe you misconfigured your /etc/hosts file. Note, IPs and FQDNs in /etc/hosts should not be routable/DNS resolvable from public.

>> Does my ISP have to clear the cache on their end?

Tell them to reboot. Like I said in DNS forum, your host's DNS is highly misconfigured. Currently their 216.145.1.3 (ns2.ccom.net) is not giving authoritative answer for your domain. The SOA's serial is also broken.

Reply With Quote
  #11  
Old January 23rd, 2002, 03:40 AM
petey20 petey20 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 56 petey20 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 sec
Reputation Power: 7
FreeBSD,

Yeah they have some major problems over there. I'm still trying to work with them to get a lot of my domains resolvable. The unfortunate thing is that I have to wait for them to create new SOA records for each one of my 300+ domains, meanwhile the business suffers due to what you would call "incompetent DNS admins"

Thanks, for the reply. After getting home from work, I was able to log on to that webpage without a redirection, so the problem was in our local ISA server at work.

Any machine on that network appeared to be using some bad cache and made it appear as if the page was redirecting. (using the old index.html which had a meta redirection script in it.)

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Redirection of new domains??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway