Blogs

Redirect a domain to another domain via Apache2 debian

To redirect a site, You have to create a virtual host. The example of redirect is like this:



        DocumentRoot /var/www/
        ServerName sothik.net
        ServerAlias www.sothik.net
        Redirect permanent / http://sothik.com

 

Increasing Tomcat Memory to run well in Dspace in Debian7

To increase the memory of Tomcat follow the instructions below:

1. edit the init scripts: nano /etc/init.d/tomcat8

2. change the line (JAVA_OPTS="-Djava.awt.headless=true -Xmx128M"
)

to (JAVA_OPTS="-Djava.awt.headless=true -Xmx512M -Xms64M -Dfile.encoding=UTF-8")

 

3. Restart tomcat8

/etc/init.d/tomcat8 restart