httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] How to Configure Apache to detect browser and request apropriade Index.* file.
Date Tue, 21 Sep 2004 10:44:19 GMT
> -----Original Message-----
> From: João Gil ACE-SC [mailto:joaogil.ace-sc@edis.edp.pt]
> 
>   Is it possible to configure apache to detect bowser type 
> and depending on
>   the browser, apache requests the apropriate index.* file. Eg it the
>   browser is a WAP device apache would open index.wml else 
> index.html. If
>   it is possible what do I have to do?

The only way you can try this is by looking at the "User-Agent" header
in the request. Have a look at the page on environment variables:
http://httpd.apache.org/docs/env.html and note the use of the
"BrowserMatch" directive.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
>   I have tried doing this using JSP. In an index.jsp file I 
> would detect
>   the browser and present the apropriate information. But 
> when I tested it
>   with my mobile phone I got "invalid file format" error. 
> Looks to me that
>   the file being requested by the WAP device has to have .wml 
> extention.
>   Therefo I think that the only solution is having apache request the
>   correct file depending on the browser type.
> 
>   Thanks in advance for any help.
> 
>   Warmest Regards
>   Joao Gil
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat
keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le présent e-mail est
un message privé et personnel, sans rapport avec l'activité boursière du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message