Forum Moderators: phranque

Message Too Old, No Replies

Headers

Is there a way to read them?

         

Stuperfied

12:35 pm on Apr 5, 2005 (gmt 0)

10+ Year Member



Ive been told that in http 1.1 the browser sends the request to the Domain name server which returns the IP of the host server. Then the browser sends a request to that server with a header which contains the host name.

We have registered a couple of .tk and .no-ip.com domain names and no matter what I put as the server name and server alias for the virtual host in the config file, the only thing that works is "*" or "*.*". Is there a way that I can find out what is being sent as the host name in the headers?

Also, if I set the virtual hosts DocumentRoot as anything other than the server root, the html files stop working. ie: if I map it to a directory containing a .asp file, it works however if I map it to one containing a .html file other than the server root, it fails.

Any ideas?

jdMorgan

1:01 pm on Apr 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to see what your browser sends, visit this browser headers [searchengineworld.com] tool at our sister site.

This will show the requests your browser sends to it. It won't show the request the browser sends to your own site, though -- you'd have to install a script on your server and get it working to do that, which obviously is the problem right now.

Check the syntax of your DNS records to begin with, and then the syntax of your virtual host-related config; It is suspicious that your server responds to a literal "*" in the domain name... Well, it sounds funny to me, anyway.

Jim

Stuperfied

7:13 am on Apr 6, 2005 (gmt 0)

10+ Year Member



I got www.example.com.au temporarily redirected to our server so I could test the virtual hosts properly and they work. Its something wrong with the .tk and .no-ip.com domain names that stops them from working with virtual hosts.

The other problem.
www.example.com.au points at our server. I have a VirtualHost set up for it and its working, however if I point the DocumentRoot at anything other than C:/web such as C:/web/example as its meant to be, html and htm files wont work but asp ones will.

Any ideas?

[edited by: jdMorgan at 1:10 pm (utc) on April 6, 2005]
[edit reason] Removed domains - Please see TOS. [/edit]