From: Bruce W. <br...@mi...> - 2001-09-17 12:45:06
|
> > I was thinking that we should develop a second, separate > > misterhouse web server > > optimized for the 640X480 display. > > We have support in mh to server different sets of web pages to different > types of browsers. If you look in your > data_dir/logs/server_header.2001_09.log and see a unique string in the > User-Agent field, you can update your mh.ini html_browser_formats parm to > point to an alternet set. For example, if the User-Agent string > had QNX in > its string, you could try this: > > html_browser_formats=MSCE=>1,QNX=>2 > > Then add this parm to point to a different default web page: > > html_file2 = QNX/index.html I forgot, we would also need an update to mh/lib/http_server.pl. Try adding something like this: elsif ($Http{'User-Agent'} =~ /Mozilla/) { $Http{'User-Agent'} = 'Mozilla'; } elsif ($Http{'User-Agent'} =~ /QNX/) { $Http{'User-Agent'} = 'QNX'; } |