I am having trouble correctly accessing my site from a cellular telephone. I use Virtual Host Monster to redirect wap.mydomain.com to a subfolder in my Zope space. Zope renders the correct method when this is accessed from an Internet Explorer browser. However, myroot/index_html is rendered instead when accessed from the phone. To investigate, I had each method return REQUEST. I noticed that the PATH_INFO and PATH_TRANSLATED values were different:
From IE Browser: /VirtualHostBase/http/root.mydomain.com:80/ From Phone: /VirtualHostBase/http/root.mydomain.com:80:80/
It seems likely that the port number being doubly inserted is causing the problem, and likely that it is in front of my Zope stuff. Is this an Apache issue, needing another rewrite rule? I have only a passing familiarity with Apache. I think the relevant section of my apache.conf file is: <VirtualHost an_IP_address:80> ServerName mydomain.com ServerAlias www.mydomain.com RewriteEngine On RewriteRule ^/(.*) http://an_IP_address:9001/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] </VirtualHost> Thanks in advance for any help.
Try with another phone or simulator using a different browser. Virtual domains work in tandem with your browser so chances are it might be a bug in your phone's one. Ausum ----- Original Message ----- From: "Roger Fisher" <rlfisher@sprynet.com> To: <zope@zope.org> Sent: Tuesday, May 04, 2004 9:18 PM Subject: [Zope] WAP Access of Zope Site
I am having trouble correctly accessing my site from a cellular telephone.
I use Virtual Host Monster to redirect wap.mydomain.com to a subfolder in my Zope space. Zope renders the correct method when this is accessed from an Internet Explorer browser. However, myroot/index_html is rendered instead when accessed from the phone.
To investigate, I had each method return REQUEST. I noticed that the PATH_INFO and PATH_TRANSLATED values were different:
From IE Browser: /VirtualHostBase/http/root.mydomain.com:80/ From Phone: /VirtualHostBase/http/root.mydomain.com:80:80/
It seems likely that the port number being doubly inserted is causing the problem, and likely that it is in front of my Zope stuff. Is this an Apache issue, needing another rewrite rule? I have only a passing familiarity with Apache. I think the relevant section of my apache.conf file is:
<VirtualHost an_IP_address:80> ServerName mydomain.com ServerAlias www.mydomain.com RewriteEngine On RewriteRule ^/(.*) http://an_IP_address:9001/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] </VirtualHost>
Thanks in advance for any help.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Roger Fisher wrote at 2004-5-4 19:18 -0700:
I am having trouble correctly accessing my site from a cellular telephone.
I use Virtual Host Monster to redirect wap.mydomain.com to a subfolder in my Zope space. Zope renders the correct method when this is accessed from an Internet Explorer browser. However, myroot/index_html is rendered instead when accessed from the phone.
To investigate, I had each method return REQUEST. I noticed that the PATH_INFO and PATH_TRANSLATED values were different:
From IE Browser: /VirtualHostBase/http/root.mydomain.com:80/ From Phone: /VirtualHostBase/http/root.mydomain.com:80:80/
Your Apache rule is not optimal. It fails when the browser includes the port as part of the "HOST" header. You have several options: * Use a rewrite condition to remove the port information (when it is present) * Do not refer "HTTP_HOST" in your rewrite rule but use a constant -- Dieter
participants (3)
-
Ausum Studio -
Dieter Maurer -
Roger Fisher