LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-26-2010, 05:21 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
problem with apache config


My server works fine for http://www.mydomain.com. However, visiting http://domain.com somehow returns the apache2 default document root instead of /home/mydomain as I would like it to.

Here is the apache conf file in sites-available. Can anyone tell me what the problem might be?
Code:
<VirtualHost *:80>

        ServerAdmin webmaster@localhost

        #We want to be able to access the web site using www.dev.example.com or dev.example.com
        ServerName www.mydomain.com
        ServerAlias mydomain.com *.mydomain.com

        DocumentRoot /home/mydomain/public

        #if using awstats
        #ScriptAlias /awstats/ /usr/lib/cgi-bin/

        #we want specific log files for this domain
        # an error log
        ErrorLog /home/mydomain/logs/mydomain.com-error.log
        # an access log
        CustomLog /home/mydomain/logs/mydomain.com-access.log combined

</VirtualHost>
 
Old 08-26-2010, 07:32 PM   #2
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Did you restart apache?

Did you try viewing it locally with lynx?

Any .htaccess file?

Any other virtual host sections?
 
  


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
Drupal Apache Config problem - incorrect URLS TippExed Linux - Software 0 06-02-2005 06:38 PM
apache config problem with otto, FollowSymLinks legolin Linux - Software 1 05-16-2005 07:21 PM
Apache config problem code_junkie Linux - Newbie 2 11-30-2003 10:50 PM
Apache / PHP / Mysql config problem - debian bandit Linux - Software 14 09-03-2003 09:04 AM
php or apache config problem mattkat Linux - Software 2 04-30-2003 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:49 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