Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member rootuser's Avatar
    Join Date
    Jan 2005
    Location
    ***INDIA***
    Posts
    125

    Default http and www

    I am having problem with accessing my site www.mydomain.com it is
    opening as http://mydomain..com but not opening with
    http://www.mydomain.com please help me out.This problem is only on a particular domain in that server.

    Already i searched here found some similar threads none of them are not working.

    http vs www


    Iam putting that domain virtual host configuration and named configuartion


    /var/named/mydomain.com.db


    $TTL 14400
    @ IN SOA ns1.myserver.info. root.myserver.info. (
    20050622102
    14400
    7200
    3600000
    86400
    )
    mydomain.com. IN NS ns1.myserver.info.
    mydomain.com. IN NS ns2.myserver.info.
    mydomain.com. IN A 123.456.324.123

    localhost.mydomain.com. 14400 IN A 127.0.0.1

    mydomain.com. 14400 IN MX 0 mydomain.com.

    mail 14400 IN CNAME mydomain.com.
    ftp 14400 IN A 123.456.324.123

    www IN CNAME mydomain.com


    Virtual host container in httpd.conf

    <VirtualHost ip>
    ServerAlias www.mydomain.com mydomain.com
    ServerAdmin webmaster@mydomain.com
    DocumentRoot /home/mydo/public_html
    BytesLog domlogs/mydomain.com-bytes_log
    ServerName www.mydomain.com
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/mydo/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>

    ScriptAlias /cgi-bin/ /home/mydo/public_html/cgi-bin/
    User mydo
    Group mydo
    CustomLog domlogs/mydomain.com combined
    </VirtualHost>
    Last edited by rootuser; 06-22-2005 at 07:29 AM.

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Did the serveralias line exist in the httpd.conf file or did you have to add it? If you added it, you need to restart apache to read the changes.

    If you modified your db file, you need to restart named for it to be read.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member rootuser's Avatar
    Join Date
    Jan 2005
    Location
    ***INDIA***
    Posts
    125

    Default

    serveralias is there that i given in my virtual host configuration,i didn,t make any chages,that congiration is already there,and restarted named and httpd twice,but no luck

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Ayr, North Queensland, Australia
    Posts
    328

    Default

    you said:

    mail 14400 IN CNAME mydomain.com.
    ftp 14400 IN A 123.456.324.123

    www IN CNAME mydomain.com
    Make sure theres a . on the end of mydomain.com so its www IN CNAME mydomain.com. or otherwise named recognises it as www.mydomain.com.mydomain.com. The . on the end of a entry defines it as a HOSTNAME. So that could be the problem.

    Regards,
    Brent

    Talk at cPanel IRC
    cPanel IRC Logs (Publicly available) @ My Site

  5. #5
    Member rootuser's Avatar
    Join Date
    Jan 2005
    Location
    ***INDIA***
    Posts
    125

    Default

    ok that i can try thanks brentp!

Similar Threads & Tags
Similar threads

  1. wildcart redirect? - http://www.mydomain.com -> http://mydomain.com
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-07-2007, 09:12 PM
  2. HELP PLZ - http://domain + http://www.domain same target using cpanel
    By britishnproud in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-12-2007, 06:20 PM
  3. installing mambo at http://www... not http://
    By taite11 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-03-2005, 12:40 PM
  4. Replies: 9
    Last Post: 04-21-2005, 03:56 AM
  5. http vs www
    By HH-Steven in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 03-01-2005, 04:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube