Ram.
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/
On Mar 1, 12:53 am, Andrej <amas...@gmail.com> wrote:
> because you need to load apache ssl gear. Set up your normal virtual
> host and then use reverse proxy:
>
> ProxyPass /http://localhost:8000/
> ProxyPassReverse /http://localhost:8000/
J.
So you can use stunnel: http://www.stunnel.org/
J.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
[0] http://en.wikipedia.org/wiki/Staging_site
--
Gonzalo Delgado <gonza...@gmail.com>
I wrote a blog post on how to do this very thing a while back. I used
stunnel, as Janusz mentioned, to test SSL redirect behavior on the
development server. You need to run two dev servers one for http and
one for https. You also need to make sure that you set HTTPS=on as an
environment variable so that request.is_secure() returns true
properly.
http://www.ianlewis.org/en/testing-https-djangos-development-server
Ian
On Mon, Mar 1, 2010 at 7:43 PM, Gonzalo Delgado <gonza...@gmail.com> wrote:
> El 01/03/10 07:07, cool-RR escribió:
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
--
=======================================
株式会社ビープラウド イアン・ルイス
〒150-0012
東京都渋谷区広尾1-11-2アイオス広尾ビル604
email: ianm...@beproud.jp
TEL:03-5795-2707
FAX:03-5795-2708
http://www.beproud.jp/
=======================================
It doesn't seem like that day will ever come:
"""
DON'T use this server in anything resembling a production environment.
It's intended only for use while developing. (*We're in the business of
making Web frameworks, not Web servers*.)
"""
(
http://docs.djangoproject.com/en/1.1/intro/tutorial01/#the-development-server
)
--
Gonzalo Delgado <gonza...@gmail.com>
I think that no one would really object if runserver was SSL-aware,
however people requesting it need to be aware that having an SSL-aware
webserver is significantly more difficult that having a simple HTTP
web server. The things that come to mind are:
- extra dependencies: I'm not sure about all of those, but at least
openssl comes to mind
- the need to have a server certificate: While not a terribly
complex task to generate one, some decisions need to be made (e.g.
where it will be stored?).
- more complex URL handling for testing. As local server uses port
8000 by default and links are usually relative, it's not a big deal.
But if people start relying on having HTTPS dev webserver, they might
get confused if that one is not running on default port 443. So, if
dev web server was running on port 8443, people would need to keep
this in mind when working on their templates / redirects.
On top of those, I can see 2 big risks:
- if SSL-aware development server exists and easily available (just
one command), people could start relying on it as it'd be much easier
to set up than any other SSL website. That would be a big mistake, the
dev server would be very insecure, missing lots of necessary features
(and almost certainly having a self-signed certificate).
- it'd probably only escalate things. If people get SSL-enabled dev
server, they start asking why it does not support client-side
certificates :)
Just my 2 cents.
Jirka
or you could have an nginx server proxying to the dev server - nginx looks
after the ssl and listens on port 443 - runserver does not need to know
anything about ssl. And you do not need to restart on code change and you can
have print output on the console - in short, have your cake and eat it too.
--
regards
Kenneth Gonsalves
Senior Associate
NRC-FOSS
http://certificate.nrcfoss.au-kbc.org.in