Showing posts with label apache2. Show all posts
Showing posts with label apache2. Show all posts

Monday, 8 June 2015

How to run Tomcat on port 80 in Ubuntu or Debian

Following works:
First, set AUTHBIND=yes in /etc/default/tomcat7 file
sudo touch /etc/authbind/byport/80
sudo chmod 500 /etc/authbind/byport/80
sudo chown tomcat7 /etc/authbind/byport/80

Wednesday, 29 October 2014

How to activate .htaccess file in apache 2.4.7

.httaccess file is same as the apache httpd.conf but if you made any changes in httpd.conf it will reflects on every project on apache, if you want to use only for specific websites use .htaccess file in that particular website root folder. 

Here is the Steps to Activate .htaccess file on Ubuntu 14.04 :

First Step
Open file as
sudo vim /etc/apache2/apache2.conf
Second Step
remove comment sign (#) if you find it before this line ( line number 187 approx.)
AccessFileName .htaccess
Third Step
Then find the line where there is
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverrideNone Require all granted </Directory>
replace "None" with "All"
AllowOverride All 
Fourth Step :
add .htaccess file to root folder of your Website
in my case ---> /var/www/CDRTool/ folder
Last Step :
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart

Wednesday, 24 September 2014

CDRTool virtual host Configuration | how to enable Virtual host on 8080 post


This post is written by a newbie linux user .

We know that apache2 is runnig on 80 port. I also tried to add the new virtual host for CDRTool in 80 port but it is not wotking. So i decided to run CDRTool virtual host on 8080 port.

Here is the configuration

step 1 :

cp setup/apache2/sites-available/cdrtool.example.com /etc/apache2/sites-enabled
step 2 :

rename it to your website name
mv cdrtool.example.com mysite.com

step 3 :
edit mysite.com file to suit your Environment here is my file

Listen 8080

NameVirtualHost mysite.com:8080

<VirtualHost mysite.com:8080>

ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /var/www/
CustomLog /var/log/apache2/cdrtool-access.log combined
ErrorLog /var/log/apache2/cdrtool-errors.log
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

<Directory /var/www/CDRTool>
Options FollowSymLinks
AllowOverride All
</Directory>

</VirtualHost>

save the file
step 4 :
now move this file to /etc/apache2/sites-available/ folder.
Mv /etc/apache2/sites-enable/mysite.com /etc/apache2/sites-available/

step 5 :
now use a2ensite command on mysite.com file like this
a2ensite mysite.com

step 6 :
Now restart the apache2 like this
/etc/init.d/apache2 relaod
That's it. You are successfully configured one New Virtual host

step 7:
open your browser. Now type like this

mysite.com:8080/CDRTool

ohhhh you can see CDRTool Login page now..


E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP