|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
Cleanup your browser cache and try again.
Or tell us the real domains so we can test it for you. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
>> 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. |
|
#5
|
|||
|
|||
|
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? |
|
#6
|
|||
|
|||
|
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? |
|
#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? |
|
#8
|
|||
|
|||
|
>> 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. |
|
#9
|
|||
|
|||
|
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? |
|
#10
|
|||
|
|||
|
>> 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. |
|
#11
|
|||
|
|||
|
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.) |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Redirection of new domains?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|