LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache: 'mydomain.com' doesn't work ('www.mydomain.com' does) (https://www.linuxquestions.org/questions/linux-software-2/apache-mydomain-com-doesnt-work-www-mydomain-com-does-508135/)

guarriman 12-07-2006 03:51 AM

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.

acid_kewpie 12-07-2006 04:10 AM

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.

guarriman 12-07-2006 04:16 AM

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 :(


All times are GMT -5. The time now is 10:23 PM.