List Info

Thread: Subdomain -> blog




Subdomain -> blog
user name
2006-03-15 13:40:12
Has anyone done this? Say I have a domain, call it,
"blart.com", and I 
have two subdomains, "foo" and
"flub". I want to have foo.blart.com 
forward to www.blart.com/blog/foo and flub.blart.com forward
to 
www.blart.com/blog/flub. I believe this is easy enough to do
with one 
instance of blojsom and by using two servlet filters to
forward 
(internally) the requests to the right URL. If anyone's
done this and 
ran into pitfalls, though, I'd appreciate knowing....

Eric


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Subdomain -> blog
user name
2006-03-16 09:41:03
In my case I solved the problem in apache, with virtual
hosts and mod 
rewrite, for example:

<VirtualHost superfluous.superfluo.org>
     ServerAdmin picsuperfluo.org
     ServerName superfluous.superfluo.org
     DocumentRoot #omitted#

     RedirectMatch ^/index.(html|htm)$ /blojsom/blog/pic-it/
     RedirectMatch ^/$ /blojsom/blog/pic-it/

     #RedirectMatch ^/index.(html|htm)$ /upgrading.html
     #RedirectMatch ^/$ /upgrading.html

     ErrorDocument 404 /blojsom/blog/pic/?page=404
     ErrorDocument 500 /blojsom/blog/pic/?page=500
</VirtualHost>

Probably not the most elegant solution but works.

Maybe not what you are looking for, because you don't have
apache in 
front of tomcat.

Best regards.

Eric Giguere wrote:
> Has anyone done this? Say I have a domain, call it,
"blart.com", and I 
> have two subdomains, "foo" and
"flub". I want to have foo.blart.com 
> forward to www.blart.com/blog/foo and flub.blart.com
forward to 
> www.blart.com/blog/flub. I believe this is easy enough
to do with one 
> instance of blojsom and by using two servlet filters to
forward 
> (internally) the requests to the right URL. If
anyone's done this and 
> ran into pitfalls, though, I'd appreciate knowing....
> 
> Eric
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a
groundbreaking scripting language
> that extends applications into web and mobile media.
Attend the live 
> webcast
> and join the prime developer group breaking into this
new coding territory!
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> 

-- 
Nicola Piccinini -- http://superfluo.org


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting language
that extends applications into web and mobile media. Attend
the live webcast
and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )