WebFaction
Community site: login faq

I'm trying to figure out how I can setup the admin pages for my new django site to use https. Ideally I'd like to have it so that when I go to http://myproject.com it goes to my site as usual, but if I go to http://admin.myproject.com the user gets redirected to https://admin.myproject.com would host a separate django app which just handles everything admin.

Right now I'm just trying to get the https site to work, but https://admin.myproject.com just gives me a server not found error.

This is what I have so far:

Apps:
    djangoproject
    djangoproject_admin

Domains:
    myproject.com
        Subdomains:
            myproject.com
            www.myproject.com
            admin.myproject.com

Sites:
    djangoproject_admin (https is checked)
        Subdomains:
            admin.myproject.com
        Site Apps:
            /: djangoproject_admin

    djangoproject
        Subdomains:
            myproject.com
            www.myproject.com
        Site Apps:
            /: djangoproject

Anyone have any idea what's wrong?

EDIT: Just reworded a little bit to point out that right now I'm trying to get the https://admin.myproject.com site working. I haven't gotten to the redirects yet.

This question is marked "community wiki".

asked 19 Jul '11, 20:15

Rook
112
accept rate: 0%

edited 20 Jul '11, 08:31


Create 'redirect' apps that sit at the http:// paths,

http://docs.webfaction.com/software/static.html#redirect-a-domain-with-a-static-cgi-php-app
permanent link

answered 19 Jul '11, 20:49

johns
5.3k312
accept rate: 23%

Thanks, I'll try that after I get the admin page working first. It'll be difficult to make sure the redirect app is working if the target page is still broken.

(20 Jul '11, 08:34) Rook
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×74
×40

question asked: 19 Jul '11, 20:15

question was seen: 2,990 times

last updated: 20 Jul '11, 08:34

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM