WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsForgot to forward this along.
Thanks Jesse.
---------- Forwarded message ----------
From: "Yousuf Nejati" yousufnejati@gmail.com
Date: Apr 29, 2017 4:49 PM
Subject: Re: [Talk] access collectionspace on port 80
To: "Mohammad Jumah" jumah.mohammad@gmail.com
Cc:
One solution is to install Apache2 Web Server and create and configure your
virtualhost on port 80 using ProxyPass and ProxyPassReverse to something
like below. There is an article on the CollectionSpace wiki that will help.
I'd post a link here but the wiki seems to be down. You may also look here
to get started: https://httpd.apache.org/docs/2.4/mod/mod_proxy.html.
<VirtualHost *:80>
# Server
ServerName example.info
DocumentRoot /var/www
# Logging
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Proxy
# Please leave 'ProxyRequests' *Off*: it's a security hole if it's
On
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /collectionspace/ http://localhost:8180/collectionspace/
ProxyPassReverse /collectionspace/ http://localhost:8180/
collectionspace/
ProxyPass /collectionspace/ui/core http://localhost:8180/
collectionspace/ui/core
ProxyPassReverse /collectionspace/ui/core http://localhost:8180/
collectionspace/ui/core
ProxyPass /collectionspace/tenant/core http://localhost:8180/
collectionspace/tenant/core
ProxyPassReverse /collectionspace/tenant/core http://localhost:8180/
collectionspace/tenant/core
ProxyPass /cspace-services/ http://localhost:8180/cspace-services/
ProxyPassReverse /cspace-services/ http://localhost:8180/cspace-
services/
RedirectMatch permanent ^/$ /collectionspace/ui/core/html/index.html
On Sat, Apr 29, 2017 at 2:56 PM, Mohammad Jumah jumah.mohammad@gmail.com
wrote:
Hi,
I would like to be able to access collectionspace on
http://www.example.info instead of http://www.example.info:8180/c
ollectionspace/ui/core/html/index.html
But this is not working. I get Tomcat's default page rather than the
collectionspace login page.
Please can anybody help / advise?
I have tried this in server.xml
- <Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8180" />
- <Host name="www.example.info" appBase="webapps" unpackWARs="true"
autoDeploy="true"> <Alias>example.info</Alias>
<Context path="" *docBase="collectionspace/ui/core/html/index.html"*
debug="0" privileged="true" />
</Context>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log."
suffix=".txt"
pattern="%h %l %u %t "%r" %s %b"
resolveHosts="false" />
</Valve>
</Host>
-
*iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8180*
- Installed authbind and updated setenv.sh with
export CATALINA_OPTS="$CATALINA_OPTS -Djava.net.preferIPv4Stack=true"
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists
.collectionspace.org
--
Yousuf D. Nejati
Hi Yousuf
Many thanks for sending the apache rproxy configs. This worked perfectly
after I installed apache on the same VM where cspace is !
However when I try to access my website using a phone
On Wed, 3 May 2017 at 15:47, Yousuf Nejati yousufnejati@gmail.com wrote:
Forgot to forward this along.
Thanks Jesse.
---------- Forwarded message ----------
From: "Yousuf Nejati" yousufnejati@gmail.com
Date: Apr 29, 2017 4:49 PM
Subject: Re: [Talk] access collectionspace on port 80
To: "Mohammad Jumah" jumah.mohammad@gmail.com
Cc:
One solution is to install Apache2 Web Server and create and configure
your virtualhost on port 80 using ProxyPass and ProxyPassReverse to
something like below. There is an article on the CollectionSpace wiki that
will help. I'd post a link here but the wiki seems to be down. You may also
look here to get started: https://httpd.apache.org/docs/2.4/mod/mod_proxy.
html.
<VirtualHost *:80>
# Server
ServerName example.info
DocumentRoot /var/www
# Logging
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Proxy
# Please leave 'ProxyRequests' *Off*: it's a security hole if it's
On
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /collectionspace/ http://localhost:8180/collectionspace/
ProxyPassReverse /collectionspace/ http://localhost:8180/
collectionspace/
ProxyPass /collectionspace/ui/core http://localhost:8180/
collectionspace/ui/core
ProxyPassReverse /collectionspace/ui/core http://localhost:8180/
collectionspace/ui/core
ProxyPass /collectionspace/tenant/core http://localhost:8180/
collectionspace/tenant/core
ProxyPassReverse /collectionspace/tenant/core
http://localhost:8180/collectionspace/tenant/core
ProxyPass /cspace-services/ http://localhost:8180/cspace-services/
ProxyPassReverse /cspace-services/ http://localhost:8180/cspace-
services/
RedirectMatch permanent ^/$ /collectionspace/ui/core/html/
index.html
On Sat, Apr 29, 2017 at 2:56 PM, Mohammad Jumah jumah.mohammad@gmail.com
wrote:
Hi,
I would like to be able to access collectionspace on
http://www.example.info instead of http://www.example.info:8180/
collectionspace/ui/core/html/index.html
But this is not working. I get Tomcat's default page rather than the
collectionspace login page.
Please can anybody help / advise?
I have tried this in server.xml
- <Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8180" />
- <Host name="www.example.info" appBase="webapps" unpackWARs="true"
autoDeploy="true"> <Alias>example.info</Alias>
<Context path=""
docBase="collectionspace/ui/core/html/index.html" debug="0"
privileged="true" />
</Context>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log."
suffix=".txt"
pattern="%h %l %u %t "%r" %s %b"
resolveHosts="false" />
</Valve>
</Host>
-
*iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8180*
- Installed authbind and updated setenv.sh with
export CATALINA_OPTS="$CATALINA_OPTS -Djava.net.preferIPv4Stack=true"
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_
lists.collectionspace.org
--
Yousuf D. Nejati