Weblogs for manojrane

Posted by manojrane on Wed 12 Dec 2007 at 07:39
Tags: none.
<VirtualHost *>
ServerName my.domain.com
ServerAlias *.my.domain.com

UseCanonicalName Off

DocumentRoot /var/www/my.domain.com

ErrorLog /var/log/apache2/my.domain.com_error.log
CustomLog /var/log/apache2/my.domain.com_access.log combined

AddType application/x-httpd-php .php .mss

<Directory /var/www/my.domain.com>
Options -Indexes
</Directory>
<Directory /var/www/my.domain.com/conf>
Options -Indexes
Order Allow,Deny
Deny from all
AllowOverride None
</Directory>
</VirtualHost>


For this configuration of VirtualHost,

when I "telent my.domain.com 80"

It returns 200 OK and the page when request is sent as follows
"GET /index.html HTTP/1.0"

But it returns "HTTP/1.0 302 Found" when request is sent as follows
"GET http://my.domain.com/index.html HTTP/1.0"

Any clues why it does not return 200 when request includes the domain name?


(my.domain.com is added to hosts file on server as well as on my machine.)

 

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search