LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-07-2006, 03:51 AM   #1
guarriman
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
Apache: 'mydomain.com' doesn't work ('www.mydomain.com' does)


Hi.

Working with Apache 2 on Fedora Core, I'm trying to make server accept also 'mydomain.com'
(www.mydomain.com works fine).

Within my httdp.conf, I've got:
Code:
<VirtualHost 102.100.x.x:80>
        ServerName   mydomain.com:80
        ServerAlias  www.mydomain.com
        UseCanonicalName Off
        DocumentRoot /var/www/mydomain.com/httpdocs/www
</VirtualHost>
But it doesn't work: when typing 'mydomain.com' on my browser, I get one blank
webpage (not a "Server not found" message). I'd like to know where http petitions
are launching (in which local directory). Any suggestion?

Thank you very much and happy holidays.
 
Old 12-07-2006, 04:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you've not declared a virtual host for "mydomain.com" have you? you've got "mydomain:80" which is invalid, as the port number is not part of the host name.
 
Old 12-07-2006, 04:16 AM   #3
guarriman
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Hi. Thank you for your answer.

I've just changed
Code:
ServerName   mydomain.com:80
by
Code:
ServerName   mydomain.com
and it doesn't work
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 1.3: mydomain.com/mypage -> mydomain.com/mypage.html rolandw Linux - Server 1 11-01-2006 02:27 AM
forcing www.mydomain.com to just mydomain.com sneakyimp Linux - Software 4 07-24-2006 02:23 PM
can't access www.mydomain.net thisObject Linux - Software 12 04-17-2006 05:47 PM
How to make PHPBB not show a directory listining www.mydomain.com/phpBB2/ fur Linux - Networking 3 04-26-2004 07:17 PM
mail.mydomain.com does not work saravanan1979 Linux - Networking 8 02-01-2002 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration