Re: [Dspace-tech] Changing default url

2008-12-01 Thread Mark H. Wood
On Mon, Dec 01, 2008 at 09:16:42AM +1100, Gary Browne wrote:
> The other consideration relates to the port 8080 part of your URL. If
> you want to get rid of this then you need to have your Apache HTTPD
> server use something like mod_proxy_ajp to redirect (configurably) port
> 80 requests to port 8080

The O.P didn't say whether the site is running Tomcat behind HTTPD.
If not, then changing the port would require reconfiguring the
affected Connector element in Tomcat's server.xml, changing the
'port="8080" to 'port="80"' (and 'redirectPort="8443"' to
'redirectPort="443"').  If SSL is to be used, another Connector will
need 'port="8443"' changed to 'port="443"'.

On a Unix system, these changes would require that Tomcat be started
as a privileged user in order to have access to those low-numbered
ports.  I don't know how the O.P.'s Windows server environment affects
that.

On Unix there is a 'jsvc' wrapper which can be used to invoke Tomcat's
startup methods as root (which will open the listening sockets), get
control back, change UID to something less privileged, and invoke
Tomcat's main loop, so that the service actually runs with less
privilege but still can open listening sockets on privileged ports.
If there is a need to do this on Windows, there is probably a way to
do it, but again I don't run Tomcat on Windows and can't give specific
advice there.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Friends don't let friends publish revisable-form documents.


pgpUZfsJnWCNN.pgp
Description: PGP signature
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Changing default url

2008-11-30 Thread Gary Browne
Hi Jewel

The other consideration relates to the port 8080 part of your URL. If
you want to get rid of this then you need to have your Apache HTTPD
server use something like mod_proxy_ajp to redirect (configurably) port
80 requests to port 8080 (I think that's what it does in my simple terms
- hey, I'm no sys admin). A sample setup would be (in
$APACHE_HTTPD_HOME/conf.d/proxy_ajp.conf):


LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

ProxyPass   /things/you/don't/want/redirected!
ProxyPass   /   ajp://localhost:8009/
ProxyPassReverse/   ajp://localhost:8009/

(8009 is the AJP connector port).


The other thing we do slightly differently is redirect tomcat's ROOT
webapp to dspace using a symlink:

ln -s /tomcat/home/webapps/ROOT /your/dspace/installation/webapps/jspui

Obviously, replace "jspui" with "xmlui" if you are using the manakin
interface.

I hope this is of some assistance.



Kind regards
Gary


Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
 

> -Original Message-
> From: Jewel [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, 30 November 2008 9:16 AM
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] Changing default url
> 
> Hello,
> I have tried to locate if there are any instructions on how 
> to change the default url that is given when installing Dspace. 
> I have Dspace running on:
> Windows Server 2003
> Tomcat Version 6.0.18
> Dspace version 1.5.1. 
> 
> After everything is setup the url is as follows:
> http://www.mydomain.com:8080/jspui/
> 
> Am I able to change this url to be? What options to do I have?
> http://www.mydomain.com
> 
> I am not sure how tomcat and Dspace work together in terms of 
> directory structure.
> 
> Thanks!
> Jewel
> 
> --
> ---
> This SF.Net email is sponsored by the Moblin Your Move 
> Developer's challenge Build the coolest Linux based 
> applications with Moblin SDK & win great prizes Grand prize 
> is a trip for two to an Open Source event anywhere in the 
> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Changing default url

2008-11-29 Thread Stuart Lewis
Hi Jewel,

>> I have tried to locate if there are any instructions on how to change
>> the default url that is given when installing Dspace.
>> 
>> After everything is setup the url is as follows:
>> http://www.mydomain.com:8080/jspui/
>> 
>> Am I able to change this url to be? What options to do I have?
>> http://www.mydomain.com

> url and many other configurations and options are defined in
> config/dspace.cfg
> Edit this file BEFORE you compile or deploy dspace.

You'll also have to change how you deploy the jspui webapp in tomcat.

Instead of copying the jspui directory into [tomcat]/webapps/ you'll need to
copy it, but also rename it to ROOT. There will probably be a ROOT webapp
there that you'll have to remove or rename first. (this is the default
'welcome to tomcat' screen that you see if you go to
http://www.mydomain.com/ at present).

The ROOT webapp is what actually appears at the root of your web site. Other
webapps then appear relative to the root at that webapp name.

Thanks,


Stuart
_

Gwasanaethau Gwybodaeth  Information Services
Prifysgol Aberystwyth  Aberystwyth University

E-bost / E-mail: [EMAIL PROTECTED]
 Ffon / Tel: (01970) 622860
_


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Changing default url

2008-11-29 Thread Allen Lam
Jewel wrote:
> Hello,
> I have tried to locate if there are any instructions on how to change 
> the default url that is given when installing Dspace. 
> I have Dspace running on:
> Windows Server 2003
> Tomcat Version 6.0.18
> Dspace version 1.5.1. 
> 
> After everything is setup the url is as follows:
> http://www.mydomain.com:8080/jspui/
> 
> Am I able to change this url to be? What options to do I have?
> http://www.mydomain.com
> 
> I am not sure how tomcat and Dspace work together in terms of directory 
> structure.
> 
> Thanks!
> Jewel
> 
Jewel,

url and many other configurations and options are defined in 
config/dspace.cfg
Edit this file BEFORE you compile or deploy dspace.

Regards,
Allen Lam.
HKU Hub Administrator, http://hub.hku.hk

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech