OK vdaka aj mna to napadlo, ale viete mi konkretne napisat ten
virtualny server na 80 aku bude mat rewrite rules? To je ten problem/<br>
<br>
Vdaka<br><br><div><span class="gmail_quote">On 9/16/05, <b class="gmail_sendername">EHP</b> <<a href="mailto:python@ehp2.hostinx.com">python@ehp2.hostinx.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
V definici toho virtualhostu je port 443 (tj. https). Ja bych proste pridal<br>jeste jeden virtualhost na port 80 a resil bych to v nem.<br><br>EHP<br><br>> 1. Mam spravne urobene rewrite na https:// koli bezpecnemu pristupu k Zope.
<br>> Toto funguje OK.<br>> cat ssl_virtual.conf<br>> <VirtualHost <a href="http://195.5.5.5:443">195.5.5.5:443</a> <<a href="http://195.5.5.5:443">http://195.5.5.5:443</a>>><br>> ServerName <a href="http://www.test.sk">
www.test.sk</a> <<a href="http://www.test.sk">http://www.test.sk</a>><br>> SSLEngine On<br>> SSLCertificateFile /etc/apache2/ssl/apache.pem<br>> RewriteEngine On<br>> RewriteRule ^[^/].* - [L,F]<br>> RewriteRule ^/(.*)
<br>> <a href="http://127.0.0.1:8080/VirtualHostBase/https/195.5.5.5:443/VirtualHostRoot/$">http://127.0.0.1:8080/VirtualHostBase/https/195.5.5.5:443/VirtualHostRoot/$</a><br>>1[L,P] </VirtualHost><br>> 2. teraz ak mam urobeny web v adresary Zope napr. /www.novy.sk/ tak k nemu
<br>> sa da pristupit jedine cez <a href="https://195.5.5.5/www.novy.sk/">https://195.5.5.5/www.novy.sk/</a>.<br>> 3. A potreboval by som aby bol tento adresar pristupny aj z obycajneho<br>> http, teda ako normalny virtualny host.
<br>> Neviem ako spraven napisat pravidlo rewrite, a ani nik z okolia zatial<br>> nepomohol.<br>> Podarilo sa mi spravit len tolko, ze ked clovek ide na<br>> <a href="http://www.novy.sk/tak">http://www.novy.sk/tak
</a> ho presmeruje na https://, ale to nie je dobre<br>> malo by to vsetko ist na<br>> http://<br>_______________________________________________<br>Python mailing list<br><a href="mailto:Python@py.cz">Python@py.cz</a>
<br><a href="http://www.py.cz/mailman/listinfo/python">http://www.py.cz/mailman/listinfo/python</a><br></blockquote></div><br>