Namran Hussin Linux Making www and @ point to the same servername in apache

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


    ServerAdmin [email protected]
    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



Related Post

VSFTP in CentOS 64-bit : PAM [error: /lib/security/pam_userdb.so: wrong ELF class: ELFCLASS32]VSFTP in CentOS 64-bit : PAM [error: /lib/security/pam_userdb.so: wrong ELF class: ELFCLASS32]

After setting up the vsftp to use PAM as auth. Somehow having the following error appeared in tail -f /var/log/secure Sep 21 09:47:45 g-server vsftpd: PAM [error: /lib/security/pam_userdb.so: wrong ELF