There is a easy way to remove port number in DSpace URL. Just add port number 80 instead of 8080 in /etc/tocat6/server.xml. But is dangerous for production system. we have to use apache as fornt webserver instead of tomcat. This can be possible by using mod_proxy and mod_prory_ajp module of apache. And there is a another procedure which is port forwarding by using iptable. Port forwarding is the most easy to do that.

First see your present iptable by running the command

#iptables -L

This will produce the following output

 Chain INPUT (policy ACCEPT)
 target     prot opt source               destination

 Chain FORWARD (policy ACCEPT)
 target     prot opt source               destination

 Chain OUTPUT (policy ACCEPT)
 target     prot opt source               destination

This means it allows anyone access to anything from anywhere.

Lets make your own iptable

nano /etc/iptables.test.rules

Add your common rules and add the following line

*nat

-A PREROUTING -d your.ipad.ofma.chnn -p tcp –drop 80 -j DNAT — to your.ipad.ofyr.macn:8080

COMMIT

Activate this rules

iptables-restore < /etc/iptables.test.rules

Look the difference

iptables -L

Save this rules in master iptable file

iptables-save > /etc/iptables.up.rules

To make sure the iptables rules are started on a reboot we’ll create a new file:

nano /etc/network/if-pre-up.d/iptables

Add these lines to it:

#!/bin/bash

/sbin/iptables-restore < /etc/iptables.up.rules

The file needs to be executable so change the permissions:

chmod +x /etc/network/if-pre-up.d/iptables