talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

access collectionspace on port 80

MJ
Mohammad Jumah
Sat, Apr 29, 2017 9:56 PM

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 &quot;%r&quot; %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"

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 &quot;%r&quot; %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"*
JM
Jesse Martinez
Wed, May 3, 2017 2:16 PM

Hi Mohammad,

Any luck on this?

I'm not familiar with altering context paths for Tomcat, but might you
consider using apache as a reverse proxy for Tomcat?

Jesse

On Sat, Apr 29, 2017 at 5: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 &quot;%r&quot; %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

Hi Mohammad, Any luck on this? I'm not familiar with altering context paths for Tomcat, but might you consider using apache as a reverse proxy for Tomcat? Jesse On Sat, Apr 29, 2017 at 5: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 &quot;%r&quot; %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 > >