[opencms-dev] adding a /sites/mysite
Michael Moossen
m.moossen at alkacon.com
Fri Dec 2 12:49:56 CET 2005
Hi Christoph !
> when I try to open the login link on the home page or when I type in
> http://localhost/opencms/system/login (which is rewritten to
> http://localhost:8080/system/login/index.html.
something is wrong, it should be rewritten to
http://localhost:8080/opencms/system/login/index.html
--
Regards
Michael Moossen
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com
Quoting "Christoph P. Kukulies" <kuku at physik.rwth-aachen.de>:
> On Thu, Dec 01, 2005 at 01:02:27PM +0100, Michael Emmerich wrote:
> > Christoph,
> >
> >
> > You are almost right here.
> > Try to do this
> >
> > <site server="http://localhost:8081" uri="/sites/mysite/"/>
> >
> > And add an additional connector listening on port 8081 in your tomcat
> > configuration.
> >
> >
> > The site configuration tells the OpenCms:
> > Everything that is coming via http://localhost:8080 is directed into
> > /sites/default/.
> > Everything that is coming via http://localhost:8081 is directed into
> > /sites/mysite/.
> >
> > Using a defualt OpenCms installation, this means that
> >
> > http://localhost:8080/opencms/opencms/index.html
> > will access the file /sites/default/index.html
> >
> > while
> >
> > http://localhost:8081/opencms/opencms/index.html
> > will access the file /sites/mysite/index.html
>
> Michael,
>
> I tried what you suggested but I still get a 404 on
> http://localhost:8080/system/login/index.html
> when I try to open the login link on the home page or when I type in
> http://localhost/opencms/system/login (which is rewritten to
> http://localhost:8080/system/login/index.html.
>
> I have no clue at the moment where the error is burried. Here is my config:
>
> opencms-system.xml:
>
> <sites>
> <workplace-server>http://localhost:8080</workplace-server>
> <default-uri>/sites/default/</default-uri>
> <site server="http://localhost:8080" uri="/sites/default/"/>
> <site server="http://www.mysite.de:8081"
> uri="/sites/www.mysite.de/"/>
> </sites>
>
> server.xml:
>
> <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
> <Connector port="8080" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true" />
> <!-- Note : To disable connection timeouts, set connectionTimeout value to 0
> -->
>
> <!-- Note : To use gzip compression you could set the following properties :
> compression="on"
> compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
> compressableMimeType="text/html,text/xml"
> -->
>
> <!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
> <!--
> <Connector port="8443" maxHttpHeaderSize="8192"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" disableUploadTimeout="true"
> acceptCount="100" scheme="https" secure="true"
> clientAuth="false" sslProtocol="TLS" />
> -->
>
> <!-- Define an AJP 1.3 Connector on port 8009 -->
> <Connector port="8009"
> emptySessionPath="true" enableLookups="false"
> redirectPort="8443" protocol="AJP/1.3" />
>
>
> <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
> <!-- See proxy documentation for more information about using this. -->
> <!-- Connector port="8082"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" acceptCount="100"
> connectionTimeout="20000"
> proxyPort="80" disableUploadTimeout="true" -->
> <Connector port="8081"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> redirectPort="8443" debug="3"
> enableLookups="true" acceptCount="100"
> connectionTimeout="20000"
> proxyName="www.mysite.de" proxyPort="80"
> disableUploadTimeout="true" />
>
> www.mysite.de resolves in DNS. When I take out the second
> <site> entry in opencms-system.xml the workplace login page is
> found, otherwise I'm getting that
> HTTP Status 404 - /system/login/index.html
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the opencms-dev
mailing list