Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-27-2010, 06:40 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
I have a Problem with Apache which does not recognize the road my site


I need just like that hand I installed my server on a base DEBIAN configured Apache which works with a site
I want to put to hand a second site and the I have the following problem.
Apache refuses to take into account the second site
I activate it with the command a2ensite my and I have the following answer.
ERROR module mon does not exist

I have the same road as for the first site which works her then I do not understand any more
This somebody can inform me would be nice

Old 08-27-2010, 07:23 AM   #2
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
Put virtualhosts in your httpd.conf file. If,, and all resolve to the same IP, then:

<VirtualHost *:80>
    DocumentRoot /var/www/
    ServerName site1
    ErrorLog /var/log/httpd/error_site1
    CustomLog /var/log/httpd/access_site1 common
    ErrorDocument 404 /index.php

    DocumentRoot /var/www/
    ServerName site2
    ErrorLog logs/error_site2
    CustomLog logs/access_site2 common
    ErrorDocument 404 /index.php

    DocumentRoot /var/www/
    ServerName site3
    ErrorLog logs/error_site3
    CustomLog logs/access_site3 common
will serve 3 distinct web sites based on the URL you're hitting. In this instance, is the default, and will be served for any hosts that aren't explicity defined in a virtualhost - ie if you have resolving to the server's IP.
Old 08-28-2010, 03:51 PM   #3
LQ Newbie
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Question I have a Problem with Apache which does not recognize the road my site

Thank you for your answer my the httpd.conf file is not any more used in apache2 under débian, the configuration file and in site available and defect the I installed my VirtualHost as you the presented, the problem and what Apache recognize that the first site and does not want to take into account the second site

As a In principle is needed active Apache in the console with the command: a2ensite my
And posts me the following message:
ERROR mon does not exist
Voila I hope to have been clearer.


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 site redirects using what rule? -> LaughingBoy Linux - Server 2 04-16-2009 09:51 PM
Apache 2: second site on a second port problem aclarke Linux - Server 4 11-11-2008 08:38 AM
Apache 2.2 won't recognize virtual hosts gregmcavoy Linux - Server 3 01-17-2007 06:44 PM
apache not able to recognize php files phamtranquocvie Linux - Newbie 2 10-06-2004 11:32 AM
linux don't recognize my apache modem droplsh Linux - Hardware 0 03-02-2004 02:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 PM.

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