Making www and @ point to the same servername in apache

Sometime we just can’t control the client is accessing our website either
via www or just without www.

In virtualhost setting for apache this can be done by adding the following line into
httpd.conf

<VirtualHost *:80>
    ServerAdmin webmaster@namran.com
    DocumentRoot /home/namran/public_html/namran.com
    ServerName namran.com
    ServerAlias www.namran.com
 
    ErrorLog logs/namran.com-error_log
    CustomLog logs/namran.com-access_log common
 
</VirtualHost>

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

5 Responses

  1. ahstod says:

    yum install -y mythtv-suites –enablerepo atrpms –enablerepo atrpms-testing

    should be

    yum install -y mythtv-suite –enablerepo atrpms –enablerepo atrpms-testing

    Reply
  2. ahstod says:

    also after yum installing all the mythtv packages:

    yum install perl-DBD-MySQL php-mysql mysql mysql-server
    chkconfig mysqld on
    service mysqld start
    mysql -u root mysql
    mysql> UPDATE user SET Password=PASSWORD(‘mythtv’) WHERE user=’root’;
    mysql> FLUSH PRIVILEGES;
    mysql> quit
    mysql -u root mysql -p < /usr/share/doc/mythtv-docs-0.21/database/mc.sql

    Reply
  3. namran says:

    if happened to messed with the frontend..
    despite the update..

    can just..

    “yum install -y mythtv-frontend-0.21-213.el5 –enablerepo atrpms ”

    woohoo..

    mythTV is back..!

    Reply
  4. google says:

    Hey There. I found your blog using msn. This is a really well written article.
    I will be sure to bookmark it and return to read more of your
    useful info. Thanks for the post. I’ll definitely return.

    Reply
  5. ???? says:

    Victorious one CSN Coyotes basketball group.. alot more energy.

    Reply

Anything to add?

X