Hi all, i have the following rewrite rule -------- NameVirtualHost * <VirtualHost *> ServerName dev.mydomain.com.au ServerAlias dev.mydomain.com.au ServerAdmin webmaster@mydomain.com.au RewriteEngine on RewriteRule ^/(.*) http://192.168.0.4:8080/VirtualHostBase/http/dev.mydomain.com.au:80/mydomain... [P] </VirtualHost> ------- in my VHosts.conf file when i view dev.mydomain.com.au i get the following error. ------- Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://dev.mydomain.com.au/ ------- when i click on the link it takes me to the default page for an apache site, not the zope page! Has anyone got any ideas? btw. when i get some free time (in the next week hopefully) i will be modifying the zsyncer product to sync in both directions. I am more than happy to send the source to anyone who wants it. -tim zegir
Shouldn't that [P] be [L,P] ? http://zope.org/Members/regebro/Zope_and_Apache Best regards, Patrick Kirk Mobile: 07876 560 646 Tim Zegir wrote:
Hi all,
i have the following rewrite rule -------- NameVirtualHost * <VirtualHost *> ServerName dev.mydomain.com.au ServerAlias dev.mydomain.com.au ServerAdmin webmaster@mydomain.com.au RewriteEngine on RewriteRule ^/(.*) http://192.168.0.4:8080/VirtualHostBase/http/dev.mydomain.com.au:80/mydomain... [P] </VirtualHost> ------- in my VHosts.conf file when i view dev.mydomain.com.au i get the following error. ------- Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
Hint: https://dev.mydomain.com.au/ ------- when i click on the link it takes me to the default page for an apache site, not the zope page!
Has anyone got any ideas?
btw. when i get some free time (in the next week hopefully) i will be modifying the zsyncer product to sync in both directions. I am more than happy to send the source to anyone who wants it.
-tim zegir
_______________________________________________ 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 )
Quoth the Apache manual:
'last|L' (last rule) Stop the rewriting process here and don't apply any more rewriting rules. This corresponds to the Perl last command or the break command from the C language. Use this flag to prevent the currently rewritten URL from being rewritten further by following rules. For example, use it to rewrite the root-path URL ('/') to a real one, e.g., '/e/www/'.
In the event that you only use one RewriteRule, this has no effect. Patrick Kirk wrote:
Shouldn't that [P] be [L,P] ?
Here's what I see Tim. Your browser is sending a normal HTTP request when apache is expecting HTTPS. When you visit https://dev.mydomain.com.au/, you visit an Apache server which is not the one you've configured below. Either this, or your mod_rewrite is not working. Troy Tim Zegir wrote:
Hi all,
i have the following rewrite rule -------- NameVirtualHost * <VirtualHost *> ServerName dev.mydomain.com.au ServerAlias dev.mydomain.com.au ServerAdmin webmaster@mydomain.com.au RewriteEngine on RewriteRule ^/(.*) http://192.168.0.4:8080/VirtualHostBase/http/dev.mydomain.com.au:80/mydomain... [P] </VirtualHost> ------- in my VHosts.conf file when i view dev.mydomain.com.au i get the following error. ------- Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
Hint: https://dev.mydomain.com.au/ ------- when i click on the link it takes me to the default page for an apache site, not the zope page!
Has anyone got any ideas?
btw. when i get some free time (in the next week hopefully) i will be modifying the zsyncer product to sync in both directions. I am more than happy to send the source to anyone who wants it.
-tim zegir
Tim Zegir wrote at 2004-2-28 12:50 +1100:
... Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.
Hint: https://dev.mydomain.com.au/ ------- when i click on the link it takes me to the default page for an apache site, not the zope page!
Seems as if Apache would expect https on port 80, too. Check your Apache configuration. -- Dieter
participants (4)
-
Dieter Maurer -
Patrick Kirk -
Tim Zegir -
Troy Farrell