You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Werner Gaulke <we...@gaulke.net> on 2009/10/22 22:15:11 UTC

Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Hello,

I recently checked out the current trunk 5.0 of Roller. Everything is
working fine and now I am trying to setup roller with multiple blogs under
multiple domains. 

My configuration:
- Roller running under localhost:8080 on jboss
- configuration of domain in roller-custom.properties:
weblog.absoluteurl.mysite=http://www.abc.com


Now here comes the point where I am stuck and found no further
documentation:
- How to reach the blog with the new absolute url?
Localhost:8080/roller/mysite does not work anymore
- I am using apache in front of jboss, is there a way to configure mod_jk
for my created blog under the absolute domain or is there a matching proxy
rewrite rule


I know that this is a very uncommon setup, but at least Dave's Blog
(photosys) is working somehow with multidomains.


Thank you for your help
Werner




AW: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Posted by Werner Gaulke <we...@gaulke.net>.
Hi,

thanks for your reply. I will try out your suggestions and when I find a
solution I will post them back here. Additionally I can add them into the
wiki.


Werner

-----Ursprüngliche Nachricht-----
Von: Dave [mailto:snoopdave@gmail.com] 
Gesendet: Freitag, 23. Oktober 2009 13:10
An: user@roller.apache.org
Betreff: Re: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

On Thu, Oct 22, 2009 at 4:15 PM, Werner Gaulke <we...@gaulke.net> wrote:
> I recently checked out the current trunk 5.0 of Roller. Everything is
> working fine and now I am trying to setup roller with multiple blogs under
> multiple domains.

Nice.


> My configuration:
> - Roller running under localhost:8080 on jboss
> - configuration of domain in roller-custom.properties:
> weblog.absoluteurl.mysite=http://www.abc.com
>
> Now here comes the point where I am stuck and found no further
> documentation:
> - How to reach the blog with the new absolute url?

You'd have to load http://www.abc.com/<weblog-handle> to see your new blog.

Maybe you can fake Roller out by adding an entry to your /etc/hosts
file claiming that your localhost = www.abc.com?


> Localhost:8080/roller/mysite does not work anymore

Right. The multi-domain logic will only allow your weblog to be access
by two URLs. Once you have setup a blog for multi-domain you can no
longer access it by its normal URL.


> - I am using apache in front of jboss, is there a way to configure mod_jk
> for my created blog under the absolute domain or is there a matching proxy
> rewrite rule
> I know that this is a very uncommon setup, but at least Dave's Blog
> (photosys) is working somehow with multidomains.

I'm running Tomcat alone with no HTTPD in front, so this is something
I have not tested.

- Dave



AW: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Posted by Horatia <ro...@gmx.info>.
Here is a simple server.xml file 
(mv roller.war to ROOT.war && cp ROOT.war to $CATALINA_HOME/rollerwebapps):

<Server
port="8005"
shutdown="SHUTDOWN">

  <Service
  name="Catalina">

  <Connector
  address="your-ip"
  port="8080"
  enableLookups="false"
  acceptCount="100"
  maxHttpHeaderSize="4096"
  socketBuffer="2048"
  maxKeepAliveRequests="10"
  disableUploadTimeout="true"
  connectionTimeout="10000"  />

   <Engine
    name="Catalina"
    defaultHost="www.domain.tld">

      <Host
      name="domain.tld"
      appBase="rollerwebapps"
      unpackWARs="true"
      autodeploy="false"
      reloadable="false"
      xmlValidation="false"
      xmlNamespaceAware="false" 
      workDir="work/Catalina/domain.tld" >

      <Alias>
      www.domain.tld </Alias>

      <Context
      path="/"
      docBase="ROOT" >
      </Context>

      </Host>
    </Engine>
  </Service>
</Server>


Horatia

AW: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Posted by Werner Gaulke <we...@gaulke.net>.
Hi,

i've been through this document already - my problem is how to configure tomcat virtual hosts together with the roller multidomain feature. 

I got it working, that I have a domain abc.com/roller - that’s no problem at all. But with multidomain support you can configure a domain as the entry point of a roller blog with a given handle. 

For example Dave has configured weblog.absoluteurl.photophys=http://photophys.com
With this configuration http://photophys.com/photophys/ leads to the roller blog with the handle "photophys". I want to reproduce this behavior. 

I think a example tomcat configuration would help a lot, because fiddling around with the various virtual host parameters can be a real pain.

Regards
Werner



>Maybe this link might be of some help?
>http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
>
>Cheers
>
>Gregor
>- --
>just because your paranoid, doesn't mean they're not after you...
>gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
>gpgp-key available
>@ http://pgpkeys.pca.dfn.de:11371
>@ http://pgp.mit.edu:11371/
>skype:rc46fi
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.6 (MingW32)
>Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.9)
>
>iD8DBQFK6BAk07P+AosxcLIRAp1iAKCL4kOr+CsanAvOYOAJToh4e55LKwCdGhix
>76aBJ+OfjAJlsCArUNzsu4M=
>=GdIo
>-----END PGP SIGNATURE-----



Re: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Posted by Gregor Schneider <rc...@googlemail.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Tue, Oct 27, 2009 at 11:05 PM, Werner Gaulke <we...@gaulke.net> wrote:
>
> Would you be so kind and post your tomcat configuration for your multidomain
> setup? I could not find it anywhere. It will be a good starting point for as
> I am totally clueless right know.
>

Maybe this link might be of some help?
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Cheers

Gregor
- --
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.9)

iD8DBQFK6BAk07P+AosxcLIRAp1iAKCL4kOr+CsanAvOYOAJToh4e55LKwCdGhix
76aBJ+OfjAJlsCArUNzsu4M=
=GdIo
-----END PGP SIGNATURE-----

AW: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Posted by Werner Gaulke <we...@gaulke.net>.
Hi,

I am stuck in a little configuration hell. So I did a step back and created
a fresh setup with tomcat 6 which I am trying now get it to work. After that
I will port the settings to tomcat.

Would you be so kind and post your tomcat configuration for your multidomain
setup? I could not find it anywhere. It will be a good starting point for as
I am totally clueless right know.

Thank you in advance!
Werner



>I'm running Tomcat alone with no HTTPD in front, so this is something
>I have not tested.

>- Dave



Re: Roller 5.0 Multi Domain Setup with or without mod_jk - Question

Posted by Dave <sn...@gmail.com>.
On Thu, Oct 22, 2009 at 4:15 PM, Werner Gaulke <we...@gaulke.net> wrote:
> I recently checked out the current trunk 5.0 of Roller. Everything is
> working fine and now I am trying to setup roller with multiple blogs under
> multiple domains.

Nice.


> My configuration:
> - Roller running under localhost:8080 on jboss
> - configuration of domain in roller-custom.properties:
> weblog.absoluteurl.mysite=http://www.abc.com
>
> Now here comes the point where I am stuck and found no further
> documentation:
> - How to reach the blog with the new absolute url?

You'd have to load http://www.abc.com/<weblog-handle> to see your new blog.

Maybe you can fake Roller out by adding an entry to your /etc/hosts
file claiming that your localhost = www.abc.com?


> Localhost:8080/roller/mysite does not work anymore

Right. The multi-domain logic will only allow your weblog to be access
by two URLs. Once you have setup a blog for multi-domain you can no
longer access it by its normal URL.


> - I am using apache in front of jboss, is there a way to configure mod_jk
> for my created blog under the absolute domain or is there a matching proxy
> rewrite rule
> I know that this is a very uncommon setup, but at least Dave's Blog
> (photosys) is working somehow with multidomains.

I'm running Tomcat alone with no HTTPD in front, so this is something
I have not tested.

- Dave