WebFaction
Community site: login faq

Hello,

I've created a web2py App using the "Custom app listening on port".

I've created a Website using that web2py App. The 'Url Path' parameter is set to: '/'

For the moment, I've managed to have that website use an URL like: www.mydomain.be/myapp

But I would like to use the more direct URL: www.mydomain.be

I've tried playing with the 'Url Path' parameter and set it to '/myapp' for example, but it does not seem to work and I didn't found anything to set my application as I would like to.

I hope someone could help me.

Thank you.

asked 24 Oct '11, 14:18

olilau
111
accept rate: 0%


I've managed to change the default application of my webapp. I've renamed my 'myapp' directory to 'init' (and deleted the other directories except 'admin'). Now I have a somewhat working webapp where www.mydomain.be redirects you to www.mydomain.be/init/default/index and all my urls are using the 'www.mydomain.be/init' url as a base. Not optimal but at least it works.

permanent link

answered 24 Oct '11, 14:40

olilau
111
accept rate: 0%

This page has instructions to set the default application: Loading the correct default application - web2py wiki

For shorter URLs, I think the solution you're looking for is here: URL Rewriting - web2py wiki

permanent link

answered 24 Oct '11, 17:55

seanf
12.2k42136
accept rate: 37%

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:

×24

question asked: 24 Oct '11, 14:18

question was seen: 3,675 times

last updated: 24 Oct '11, 17:55

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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