#: Alexandru Popescu changed the world a bit at a time by saying on  10/4/2005 
1:55 AM :#
#: anthony rogers changed the world a bit at a time by saying on  9/28/2005 
12:13 PM :#
Can anyone tell us more about this?

None of my links work after I have set up the proxypass stuff in Apache. I
want the site to just be http://www.mysite.com/index.html. It seems the
links to images, css, video (anything) don't work after setting up a
proxypass. I don't want to have the /magnoliaPublic/ within the my sites
URL.

Proxypass / http://www.mystite.com:8080/magnoliaPublic
ProxyPassReverse / http://www.mysite.com/8080/magnoliaPublic

The below email seems to be trying to explain what is happening here- but I
can seem to get my head around it... Do I need to add a file to
'/magnoliaPublic/WEB-INF'? something called context.xml maybe? I looked this
up online and got a lot of info, but nothing saying much. Would be great to
get this all cleared up so we can deploy live sites over Apache.

If anyone could help that would be great.

aNt


Anthony can you provide the whole settings you have done. An Apache guru may take a look at that and provide the answer.

./alex
--
.w( the_mindstorm )p.


I have found this article describing something that fits your scenario: http://www.linuxfocus.org/English/March2000/article147.shtml

Please also double check that your settings in Apache are correct (as the above 2 lines are containing 2 errors):

ProxyPass / http://www.mystite.com:8080/magnoliaPublic
ProxyPassReverse / http://www.mystite.com:8080/magnoliaPublic

(ProxyPass and on ProxyPassReverse :8080 instead of /8080).

let us know about your advance,

./alex
--
.w( the_mindstorm )p.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: 03 August 2005 23:26
To: [email protected]
Subject: Re: [magnolia-user] get site URL's to work without needing
'/magnoliaAuthor/' or '/magnoliaPublic/'?

1) Tomcat's standard deployment in version 5 allows one of two ways of
supplying a ResourceLink.  First, you can write a file named context.xml
in the META-INF folder of your war file which only contains the
<Context> element, it's attributes and content.  No need to bother with
DTD or schema declarations or even the <?xml version="1.0"?> line at the
beginning.  When tomcat deploys the war file, this file will be copied
to tomcat's config/Catalina/localhost folder and renamed to match your
webapp.  For example, if the webapp is in magnoliaAuthor.war, the
context file will become magnoliaAuthor.xml.  Alternately, if you are
deploying an expanded folder, just place the xml file directly in
config/Catalina/localhost and name it after the webapp as described above.

2) You can use the special name ROOT to indicate the root context -- the
one without a webapp name.  In this case, the context xml file will have
a path attribute of "" (empty string) in the <Context> element and leave
out the docbase attribute.  An example URL to the ROOT context will be
http://localhost:8080/.magnolia/adminCentral.html for the admin section
of the app.  If you have this setup as the public instance and the same
tomcat has magnoliaAuthor, magnoliaAuthor will still receive any
requests that are of the form
http://localhost:8080/magnoliaAuthor/some/path.html even if there is an
equivalent in the ROOT webapp.

--David

Robert Van Overmeiren wrote:

>Hello,
>
>While running Author & Public on a single engine, and having them deploy
>from WAR files is all well and good, it seems to require a different
>approach from the adminisrative side.
>
>Previously, 'magnoliaAuthor' and 'magnoliaPublic' could be setup as
>services in server.xml. Now there's no 'magnolia' context or service in
>server.xml, which I think is because the engine deploys them
>dynamically.
>
>My questions are...
>
>Where can I setup a ResourceLink to a global resource if there's no
>context in server.xml or web.xml?
>
>Previously, if I set up a 'home.html', I could count on '/home.html'
>taking me the the webroot, but now I have to include '/magnoliaAuthor/'
>for the webroot. Same for magnoliaAuthor. Now my links aren't portable
>between the two. Is it up to the server admin to perform some wizardry
>with the apache mod_jk workers.properties to get these site URL's to
>work without needing '/magnoliaAuthor/' or '/magnoliaPublic/'?
>
>Regards,
>Bob Van
>
>----------------------------------------------------------------
>for list details see
>http://www.magnolia.info/en/magnolia/developer.html
>----------------------------------------------------------------
>
>


--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to