WebFaction
Community site: login faq

I have a Django application myapp. It serves example.co.uk so http://example.co.uk serves myapp/. I have a domain somethingelse.co.uk. I want http://somethingelse.co.uk/ to serve /myapp/foo.

This could be achieved by attaching a static app to somethingelse.co.uk and in the root folder of the app insert an .htaccess file with a redirect from http://somethingelse.co.uk/ to http://example.co.uk/foo. Is this the best/only way to do this? It seems somewhat inelegant.

asked 13 Oct '12, 12:41

Peter Mott
17311
accept rate: 0%


You can also create a symlink application to point to the subdirectory you are wanting to mount at /foo. Then mount the symlink application at /foo

permanent link

answered 13 Oct '12, 12:53

bmeyer71 ♦♦
1.5k3613
accept rate: 33%

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:

×128
×76

question asked: 13 Oct '12, 12:41

question was seen: 1,723 times

last updated: 13 Oct '12, 12:53

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