Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

domain names without the www 2

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
I have a site and when I type in the browser " it works file, but if I type " it doesn't get to the site,

Does anyone know if we can set this in Apache somewhere? or is this done with our DNS service?

Any input will be great help! :)

my apache's config for the site is something like the following now:

Code:
<VirtualHost 216.187.84.13:80>
        ServerName      [URL unfurl="true"]www.domain.com[/URL]
        ServerAdmin     webmaster@domain.com
        DocumentRoot    /var/[URL unfurl="true"]www/www.domain.com/htdocs/[/URL]
        DirectoryIndex  index.php
        CustomLog       /var/[URL unfurl="true"]www/www.domain.com/logs/access_log[/URL] combined
        ErrorLog        /var/[URL unfurl="true"]www/www.domain.com/logs/error_log[/URL]
        ScriptAlias     /cgi-bin/ /var/[URL unfurl="true"]www/www.domain.com/cgi-bin/[/URL]
        Redirect        /members [URL unfurl="true"]http://www.domain2.com[/URL]
        ErrorDocument 403 /join.php
        ErrorDocument 404 /join.php
        <Directory /var/[URL unfurl="true"]www/www.domain.com/htdocs/mgp>[/URL]
                Options Indexes
        </Directory>
        <Directory /usr/share/phpmyadmin>
                AuthName "PHPMYAdmin Protected Area"
                AuthType Basic
                AuthUserFile /usr/share/phpmyadmin/.htpasswd
                <Limit GET POST>
                        require valid-user
                </Limit>
        </Directory>
        <Directory /var/[URL unfurl="true"]www/www.domain.com/htdocs/admin>[/URL]
                AuthName "Domain Site Administration Area"
                AuthType Basic
                AuthUserFile /var/[URL unfurl="true"]www/www.domain.com/htdocs/admin/.htpasswd[/URL]
                <Limit GET POST>
                        require valid-user
                </Limit>
        </Directory>
</VirtualHost>
 
thanks for the reply mbrooks!

that didn't seem to do the trick however ....
I still seem to get a page not found when I get that,
I have sub-domains set up too, so for example

or So perhaps it may be somewhere in the DNS setting?
I do see an entry of the following and I think this handles the "
sub-domain IN type points to
www A 43.102.292.393


so do I need a sub domain that is empty so say
sub-domain IN type points to
A 43.102.292.393

for " to work perhaps ?
 
As mbrooks said, do an `nslookup domain.org` first. If it says it is not found, then you will need to add an A record. My provider requires a record with the at '@' symbol in order to resolve the domain name, i.e.

Code:
subdomain IN type points to
--------- ------- ----------------
@         A       <ip>
www       A       <ip>

for that to work.
 
Thanks guys,
Those were all good points, it ended up being that the '@' address was pointing to an old ip and thats why the was not working correctly.

Many thanks! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top