Return to TheElectricBrewery.com
  [ Shop ]   [ Building ]   [ Using ]   [ Recipes ]   [ Testimonials ]   [ Gallery ]   [ FAQ ]   [ About Us ]   [ Contact Us ]   [ Newsletter ]

Log inLog in   RegisterRegister   User Control PanelUser Control Panel   Private MessagesPrivate Messages   MembershipClub Memberships   SearchSearch   MemberlistMemberlist   Photo AlbumsPhoto Albums   Forum FAQForum FAQ

Redirect to another one of my sites?

 
Post new topic   Reply to topic   Printer-friendly view    TheElectricBrewery.com Forum Index -> Forum Feedback
View previous topic :: View next topic  
Author Message
kal
Forum Administrator



Joined: 12 Dec 2010
Posts: 11120
Location: Ottawa, Canada

Drinking: Pub Ale, Electric Creamsicle, Mild, Pliny the Younger, Belgian Dark Strong, Weizen, Russian Imperial Stout, Black Butte Porter


PostLink    Posted: Thu Feb 17, 2011 7:42 pm    Post subject: Redirect to another one of my sites? Reply with quote


        Register to remove this ad. It's free!
A free cookie (or beer) to anyone who can figure this out for me:

I've had two people over the last few weeks tell me that through various actions they perform here they somehow get redirected to another one of my sites I run: www.CurtPalme.com

I can't for the life of me figure out how so I'm hoping maybe someone else noticed where this happens and can point it out. I emailed the last user who mentioned this to me but they have not responded. The email they sent does not help me figure out where the issue is either. They wrote:

Quote:
I tried to join your site but was unable to make it work I kept getting something from CurtPalme. I was not sure what that is or what is happening.


Thanks!

Kal

_________________
Our new shop with over 150 new products: shop.TheElectricBrewery.com
We ship worldwide and support our products and customers for life.
Purchasing through our affiliate links helps support our site at no extra cost to you. We thank you!
My basement/bar/brewery build 2.0
Back to top
View user's photo album (21 photos)
crush




Joined: 28 Dec 2010
Posts: 706
Location: Telemark, Norway


PostLink    Posted: Thu Feb 17, 2011 10:55 pm    Post subject: Reply with quote

Do you know what browser the person was using? As you point out, there's not a lot to go on, but if I had to guess, it'd say it was a problem with named virtual hosts.

Pinging both sites show their domains resolve to the same IP, so all requests go to the same webserver. The browser includes the name of the site when it asks for a page, by setting a header (basically a named value), e.g. "Host: www.theelectricbrewery.com". so thatyour webserver knows which site to serve. If this information is mising/getting lost somehow, then your webserver will show the "default" site for the IP.

You can achieve the same effect by browsing the IP directly, e.g. http://206.225.20.165.

To get to a fix you might try filtering your weblogs, looking for requests without a Host header (if headers are logged). Or, failing that, if you know the person's IP that was having the problem, look for requests that IP, which might shed some light on the cause of the problem. That's about all I can suggest, sorry I can't be more specific.

_________________
...just one more.
Back to top
View user's photo album (1 photos)
kal
Forum Administrator



Joined: 12 Dec 2010
Posts: 11120
Location: Ottawa, Canada

Drinking: Pub Ale, Electric Creamsicle, Mild, Pliny the Younger, Belgian Dark Strong, Weizen, Russian Imperial Stout, Black Butte Porter


PostLink    Posted: Fri Feb 18, 2011 1:48 am    Post subject: Reply with quote

Thanks Crush.

Unfortunately there's not much to go on to give me anything to filter on. What's interesting however is when surfing directly to the IP (ie: over port 80) gets me to sub-forum on my home theater site... makes sense... the virtual host is 3d-vip.curtpalme.com which is a redirect to a sub-forum. It gets picked up since it's the *first* in the list at IP 206.225.20.165.

This user was a few days ago, the other a few weeks ago so hard to search through the logs. I just found it odd. You're likely right that it has something to do with virtual hosts/headers.

You've given me some ideas to think about if I get more questions. Hopefully this one user will get back to me as to exactly what they did (I asked).

Kal

_________________
Our new shop with over 150 new products: shop.TheElectricBrewery.com
We ship worldwide and support our products and customers for life.
Purchasing through our affiliate links helps support our site at no extra cost to you. We thank you!
My basement/bar/brewery build 2.0
Back to top
View user's photo album (21 photos)
crush




Joined: 28 Dec 2010
Posts: 706
Location: Telemark, Norway


PostLink    Posted: Fri Feb 18, 2011 12:05 pm    Post subject: Reply with quote

Yes, the first virtual host is used when no name match is found. See the name-based virtual hosts in the apache manual. http://httpd.apache.org/docs/current/vhosts/name-based.html. It also includes a suggestion for working with older browsers.

You might set up a jump site as your first virtual host to capture unmatched virtual host names. Just give it a bogus name, or a subdomain of one of your existing domains (e.g. jump.theelectricbrewery.com). Since this domain is not in the DNS, it will never be matched from a real request, and being the first, it matches IP-only or invalid names.

The jump site provides a jump page to your other sites, something like this:

"From your request, we're not sure which site you are interested in visiting:
- www.theelectricbrewery.com
- www.kalsothersites.com...
- etc..

The jump site would serve this page for any URL request, and as a little help to the user to get them on their way, it can fill out the links to point the page the user was trying to get, since the server knows the path the user requested.

For example, browser requests just "/index.php?somepage" without a Host header. This hits your unnamed default host. The host serves up the jump page, and while serving, it fixes up the urls like this:

"From your request, we're not sure which site you are interested in visiting:
- www.theelectricbrewery.com [href=http://www.theelectricbrewerycom/index.php?somepage]
- www.kalsothersites.com... [href=http://kalsothersite.com/index.php?somepage]
- etc..

You can set up the server to log the full request when serving this page, e.g. to a separate log. You then have a clearly identified place to look for in your server logs for virtual host problems, and the jump page helps users get to where they were looking for.

An alternative to logging all headers (if that is not easy to set up) is to add to the jump page

"If this problem continues, please email [xxx] with the information below:

[full dump of request headers]

"

If the user has a HTTP/1.0 or earlier browser without Host header support, they will not be able to view your sites. If you meet such a user, ask them where they got their time machine from!

_________________
...just one more.
Back to top
View user's photo album (1 photos)
kal
Forum Administrator



Joined: 12 Dec 2010
Posts: 11120
Location: Ottawa, Canada

Drinking: Pub Ale, Electric Creamsicle, Mild, Pliny the Younger, Belgian Dark Strong, Weizen, Russian Imperial Stout, Black Butte Porter


PostLink    Posted: Fri Feb 18, 2011 2:00 pm    Post subject: Reply with quote

Interesting ideas Crush (You obviously work in the internet tech side of things!)

So the first virtual host is barely used so I'll just monitor it for traffic out of curiousity... Now it's mostly hackers from Romania trying to get into MySQL, links from this thread, or robots/favicon requests:

Code:
74.112.248.131 - - [17/Feb/2011:10:09:15 -0600] "POST /_vti_bin/_vti_aut/author.dll HTTP/1.1" 404 226 "-" "core-project/1.0"
74.164.63.248 - - [17/Feb/2011:11:13:55 -0600] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
74.164.63.248 - - [17/Feb/2011:11:14:08 -0600] "POST /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
61.199.218.123 - - [17/Feb/2011:11:44:42 -0600] "GET: / HTTP/1.1" 200 813 "-" "Mozilla/4.0 (compatible; http://fqdns.mixsn.com/ Server Info Search)"
208.80.194.35 - - [17/Feb/2011:15:08:09 -0600] "GET / HTTP/1.0" 200 813 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Win64; x64; .NET CLR 2.0.50727)"
94.139.87.232 - - [17/Feb/2011:16:50:28 -0600] "GET / HTTP/1.1" 200 813 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13"
94.139.87.232 - - [17/Feb/2011:16:50:29 -0600] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13"
76.70.78.169 - - [17/Feb/2011:17:32:07 -0600] "GET / HTTP/1.1" 200 813 "http://www.theelectricbrewery.com/forum/viewtopic.php?p=282664" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
76.70.78.169 - - [17/Feb/2011:17:32:07 -0600] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
81.3.138.118 - - [17/Feb/2011:18:33:51 -0600] "GET //phpmyadmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:52 -0600] "GET //phpMyAdmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:53 -0600] "GET //pma/ HTTP/1.1" 404 202 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:54 -0600] "GET //dbadmin/ HTTP/1.1" 404 206 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:55 -0600] "GET //myadmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:55 -0600] "GET //phppgadmin/ HTTP/1.1" 404 209 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:56 -0600] "GET //PMA/ HTTP/1.1" 404 202 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:56 -0600] "GET //admin/ HTTP/1.1" 404 204 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:33:56 -0600] "GET //MyAdmin/ HTTP/1.1" 404 206 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
81.3.138.118 - - [17/Feb/2011:18:44:03 -0600] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
81.3.138.118 - - [17/Feb/2011:18:44:04 -0600] "POST /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
81.3.138.118 - - [17/Feb/2011:18:45:03 -0600] "GET /myadmin/scripts/setup.php HTTP/1.1" 404 223 "http://206.225.20.165/myadmin/scripts/setup.php" "Opera"
81.3.138.118 - - [17/Feb/2011:18:47:26 -0600] "POST /myadmin/scripts/setup.php HTTP/1.1" 404 223 "http://206.225.20.165/myadmin/scripts/setup.php" "Opera"
81.3.138.118 - - [17/Feb/2011:18:48:29 -0600] "GET /phpMyAdmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpMyAdmin/scripts/setup.php" "Opera"
81.3.138.118 - - [17/Feb/2011:18:48:50 -0600] "POST /phpMyAdmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpMyAdmin/scripts/setup.php" "Opera"
76.70.78.169 - - [17/Feb/2011:19:42:53 -0600] "GET / HTTP/1.1" 200 813 "http://www.theelectricbrewery.com/forum/viewtopic.php?p=282664" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
76.70.78.169 - - [17/Feb/2011:19:42:53 -0600] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
76.70.78.169 - - [17/Feb/2011:19:43:14 -0600] "GET / HTTP/1.1" 200 813 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
76.70.78.169 - - [17/Feb/2011:19:43:15 -0600] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
66.249.71.122 - - [17/Feb/2011:21:23:46 -0600] "GET /robots.txt HTTP/1.1" 404 208 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.71.122 - - [17/Feb/2011:21:23:46 -0600] "GET / HTTP/1.1" 200 813 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
208.80.194.29 - - [18/Feb/2011:01:19:27 -0600] "GET /forum/viewtopic.php HTTP/1.0" 400 8385 "-" "-"
195.127.173.170 - - [18/Feb/2011:02:28:52 -0600] "HEAD / HTTP/1.1" 200 - "-" "oBot"
195.127.173.170 - - [18/Feb/2011:02:28:52 -0600] "GET / HTTP/1.1" 200 813 "-" "oBot"
89.106.13.209 - - [18/Feb/2011:04:33:27 -0600] "GET //phpmyadmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:33:27 -0600] "GET //phpMyAdmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:33:28 -0600] "GET //admin/ HTTP/1.1" 404 204 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:33:30 -0600] "GET //dbadmin/ HTTP/1.1" 404 206 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:33:30 -0600] "GET //myadmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:33:42 -0600] "GET //mysql/ HTTP/1.1" 404 204 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:33:43 -0600] "GET //mysqladmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:41:57 -0600] "GET //phpadmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
66.249.71.122 - - [18/Feb/2011:04:43:58 -0600] "GET / HTTP/1.1" 200 813 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
89.106.13.209 - - [18/Feb/2011:04:52:26 -0600] "GET //pma/ HTTP/1.1" 404 202 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:27 -0600] "GET //phpdb/ HTTP/1.1" 404 204 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:28 -0600] "GET //db/ HTTP/1.1" 404 201 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:29 -0600] "GET //mysqladmin/ HTTP/1.1" 200 13620 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:30 -0600] "GET //SQL/ HTTP/1.1" 404 202 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:30 -0600] "GET //padmin/ HTTP/1.1" 404 205 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:30 -0600] "GET //pmadmin/ HTTP/1.1" 404 206 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:04:52:31 -0600] "GET //webdb/ HTTP/1.1" 404 204 "-" "Made by ZmEu @ WhiteHat Team - www.whitehat.ro"
89.106.13.209 - - [18/Feb/2011:05:19:24 -0600] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
89.106.13.209 - - [18/Feb/2011:05:20:18 -0600] "POST /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
89.106.13.209 - - [18/Feb/2011:06:06:46 -0600] "GET /phpmyadmin/scripts/setup.php HTTP/1.1" 404 226 "http://206.225.20.165/phpmyadmin/scripts/setup.php" "Opera"
123.125.71.88 - - [18/Feb/2011:06:25:17 -0600] "GET / HTTP/1.1" 200 813 "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"
74.46.60.234 - - [18/Feb/2011:07:09:47 -0600] "GET / HTTP/1.1" 200 813 "http://www.theelectricbrewery.com/forum/viewtopic.php?p=282681" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_8; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5"


Kal

_________________
Our new shop with over 150 new products: shop.TheElectricBrewery.com
We ship worldwide and support our products and customers for life.
Purchasing through our affiliate links helps support our site at no extra cost to you. We thank you!
My basement/bar/brewery build 2.0
Back to top
View user's photo album (21 photos)
crush




Joined: 28 Dec 2010
Posts: 706
Location: Telemark, Norway


PostLink    Posted: Fri Feb 18, 2011 5:11 pm    Post subject: Reply with quote

Do you have any weblog analytics software installed? Looking at the raw log will make your eyes bleed!

the HTTP/1.0 entry, 5th log looks a little suspicious, but HTTP/1.0 does support the Hosts header it could be fine. Without knowing the value of hte Hosts: header for that request, we can't say.

Should you get lucky and find the actual log entry corresponding to the problem, it may not tell you much (without the Hosts header), and you will still need to decide if you want to just leave things as they are or add support for non-named hosts (using the site-per-directory arrangement outlined in the apache manual page I linked to above.)

If I were in your shoes, I'd just leave it. At the very most, you can put your most visited site (presumably this one?) as your first listed virtual host. If the virtual host mechanism then fails, there's a greater chance the user gets what they were looking for. And if not, you might just convert some unsuspecting soul to an electric brewer! Smile

_________________
...just one more.
Back to top
View user's photo album (1 photos)
Display posts from previous:   
Post new topic   Reply to topic   Printer-friendly view    TheElectricBrewery.com Forum Index -> Forum Feedback All times are GMT
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Forum powered by phpBB © phpBB Group