I am going to share my experience with different technologies. It helps me in expending my knowledge. I'll start from the basics & try to keep my posts easy to understand.Your comments/suggestions are welcome as they encourage me to search more on different topics.
Friday, 15 May 2015
Dispatcher Configuration on Apache2 Server
Some of my colleagues wants to know the easiest way of dispatcher configuration on Apache2 server so this post is for you guys.In this tutorial,
I will explain the easiest way to configure dispatcher on Apache2 server.
For this post, I used the latest version of Apache2, dispatcher & Ubuntu these are -
Apache2 version 2.4.10 (Current 2.4.12)
dispatcher version 4.1.9
OS version is Ubuntu 15.04
Note - This configuration will also work on Ubuntu 14.04.
So Let's start -
Install Apache2 server on your Ubuntu machine using command -
sudo apt-get install Apache2
Now type the command
sudo service apache2 start
Then hit a url in your web browser
http://localhost:80 or http://localhost
You will get Apache2 welcome screen.
Download the dispatcher package from Package Share. Location is -
At this point if you want to start your Apache2 server you will get a error & server will not be started because you have created a soft link but it is not defined for Apache2. So not to worry about that error we will resolve that shortly.
Now create a file named as dispatcher.load in mods-available folder & write this line-
NOTE: - "Sorry for this, but last two images in my blogs are wrong file names are dispatcher.so as displayed in the last two images, these names are incorrect, filenames must be dispatcher.load in both of these images." Next step is just open apache2.conf file, search for <Directory> tag here you have to
add one more <directory> tag as displayed below -
Now open ports.conf file & at the end of the file add the line -
Now all set for dispatcher configuration to test your settings first restart the Apache server using command -
sudo service apache2 start
Now dispatcher configuration with Apache2 is done here is final step -
Go to /etc directory & open hosts file. using command-
sudo gedit /etc/hosts
then add one more line as
All set restart your Apache server using
sudo service apache2 restart
Go to your web browser & hit a url publish.versatileankur.com you will get aApache2 welcome screen.
"One more thing is that in dispatcher.any file change the port number to 4503 as default port is 8080."
It starts successfully.
If you need my help then feel free. I have added multiple images in this post. These images are was not required, but it's human behaviour that we can learn early with pictures & movies rather then hard line. So to make this post easy to understand, I tried my level best.