22.9k views
by (600 points)

Apache HTTP configuration for kaldin
1) Make sure mod_proxy.so & mod_proxy_http.so are enabled in apache.
2) Create new file kaldin.conf in /etc/httpd/conf.d/
3) Add below to kaldin.conf

<VirtualHost kaldin.your_company.com:80>
    ServerName kaldin.your_company.com
    DocumentRoot /var/www/html/kaldin/
    ProxyPreserveHost On
    Proxypass / http://localhost:tomcat_port/
    LogLevel warn
    ErrorLog /var/log/httpd/kaldin.log
    CustomLog /var/log/httpd/kaldin.log combined
   </VirtualHost>

4) Restart apache server with below command

service httpd restart

5) Now you can access kaldin with standard HTTP port i.e kaldin.yourcompany.com

1 Answer

0 votes
by (440 points)

For Debian/Ubuntu
(1) Append the below lines to /etc/apache2/apache2.conf
Run the below commands as root

Note: Please copy &amp; paste into a note pad and check/remove the space near "_". This inconvenience is due to markup.

echo "LoadModule proxy_ module /usr/lib/apache2/modules/mod_proxy.so" >> /etc/apache2/apache2.conf
echo "LoadModule proxy_ http_ module /usr/lib/apache2/modules/mod_ proxy_http.so" >> /etc/apache2/apache2.conf

--------------------------------------------------------------------------------------------------------

(2) ## Create kaldin.conf in /etc/apache2/conf.d/

echo -n &gt; /etc/apache2/conf.d/kaldin.conf

I am extremely sorry as I am new to wiki markups and I can't post the example config file here.

so please follow this wiki "Setting up a reverse proxy to a Tomcat server" or prepare the kaldin.conf for yourself as shown below, you could use "vim /etc/apache2/conf.d/kaldin.conf"

Look at the highlighted forward slash, this is required for reverse proxy

--------------------------------------------------------------------------------------------------------

(3) All set, restart the apache2

service apache2 restart
point the web browser to http://Server_IP/kaldin/
        

Categories

...