[web2py] Re: Server konfigurations basics redirects

2013-02-11 Thread Emilius Omeen
my english not so good, but maybe I suggest way to solve 

http://web2py.com/books/default/chapter/29/04#URL-rewrite

So you can now have language-specific static files, including images, if 
you need to. Domain mapping is supported as well:

routers = dict(
  BASE  = dict(
  domains = {
  'domain1.com' : 'app1',
  'domain2.com' : 'app2',
  }
  ),
)


about stipping try to use #  path_prefix: a path fragment that is prefixed 
to all outgoing URLs and stripped from all incoming URLs
this information from ../web2py/router.example.py


понедельник, 11 февраля 2013 г., 17:41:40 UTC+4 пользователь BlueShadow 
написал:
>
> OK the routes.py option sounds pretty promissing. still I will have a 
> problem when I start my second app. So what do I do if I got two 
> domainnames?
>
> And I would like to hide the application name if it is possible.
>
> So www.dname1.com= ip/App1/
> and www.dname2.com= ip/App2/
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Server konfigurations basics redirects

2013-02-11 Thread BlueShadow
OK the routes.py option sounds pretty promissing. still I will have a 
problem when I start my second app. So what do I do if I got two 
domainnames?

And I would like to hide the application name if it is possible.

So www.dname1.com= ip/App1/
and www.dname2.com= ip/App2/


On Monday, February 11, 2013 8:07:01 AM UTC+1, Emilius Omeen wrote:
>
>
> rename your application to "init" or edit /web2py/routes.py 
>
> default_application = 'your application name'# ordinarily set in base 
> routes.py
> default_controller = 'default'  # ordinarily set in app-specific routes.py
> default_function = 'index'  # ordinarily set in app-specific routes.py
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Server konfigurations basics redirects

2013-02-10 Thread Emilius Omeen

rename your application to "init" or edit /web2py/routes.py 

default_application = 'your application name'# ordinarily set in base 
routes.py
default_controller = 'default'  # ordinarily set in app-specific routes.py
default_function = 'index'  # ordinarily set in app-specific routes.py

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.