926. | response.cookies[response.session_id_name]['path'] = '/' |
Function argument list
(self=<Storage {}>, request=<Storage {'_vars': None, 'function': 'index', 'c...'folder': '/var/www/web2py/applications/admin/'}>, response=<Storage {'body': <cStringIO.StringO object at 0..._caller': <function <lambda> at 0x7f0dbcfb3050>}>, db=None, tablename='web2py_session', masterapp='admin', migrate=True, separate=None, check_client=False, cookie_key=None, cookie_expires=None, compression_level=None)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/bmVICJOMpXM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(admin/.*) https://%{SERVER_NAME}/$1 [R,L]
--
HI Juozas MasiulisIn /etc/apache2/sites-enabled/default.conf please chenge rewriterule as follows.RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(admin/.*) https://%{SERVER_NAME}/$1 [R,L]
Hope it wil help
เมื่อ วันพุธที่ 4 กุมภาพันธ์ ค.ศ. 2015 3 นาฬิกา 48 นาที 21 วินาที UTC+7, Juozas Masiulis เขียนว่า:
For certain reasons I could not use https for my entire website. I load content from external domains through javascript, which I do not controll, and those scripts get blocked by the browser. I would like to use https only on admin, and I can get apache to redirect only admin to https by using this http://pastebin.com/raw.php?i=Hkz9YqnH config
--