LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-11-2004, 12:13 PM   #1
notmatt
Member
 
Registered: Apr 2004
Distribution: Mepis/Kubuntu/Other
Posts: 32

Rep: Reputation: 16
Virtualhost setup on apache 2


Hello

I'm using Debian - testing (3.1), as a webserver.

I'm having some problems with setting up virtualhosts under apache2. I can't seem to find any documentation (no man pages & the README isn't very helpful) to set up new virtualhosts using Debian's system for virtualhosts. Are you supposed to use the standard apache directives for setting up virtualhosts? If you are then what have I missed?

I get the following error message from apache2 when stopping and starting:

[Mon Oct 11 18:07:48 2004] [error] (EAI 2)Name or service not known: Cannot resolve host name newVhost --- ignoring!

This is the syntax in /var/apache2/sites-available/newVhost

I have created a directory /var/www/newVhost and put an index.html file in it.

Code:
NameVirtualHost newVhost
<VirtualHost newVhost>
        ServerAdmin admin@newVhost

        DocumentRoot /var/www/newVhost
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/newVhost>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                # RedirectMatch ^/$ /apache2-default/
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">              
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

        Alias /icons/ "/usr/share/apache2/icons/"
        <Directory "/usr/share/apache2/icons">
            Options Indexes MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>
Anyone able help?

Thanks

Matt
 
Old 10-11-2004, 12:54 PM   #2
notmatt
Member
 
Registered: Apr 2004
Distribution: Mepis/Kubuntu/Other
Posts: 32

Original Poster
Rep: Reputation: 16
I am an idiot. I've managed to figure it out. The virtualhosts now work. I just now get the error:

Reloading web server config...[Mon Oct 11 18:51:18 2004] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2001:ba8:1af:1000::1 (check DNS) -- or specify an explicit ServerName
done.

Which I think is just and ipv6 issue.

Sorry to have been a bother. I must stop posting to here when I get a problem. I'm usually able to solve it my self, with a bit of work.
 
Old 10-28-2004, 01:05 PM   #3
notmatt
Member
 
Registered: Apr 2004
Distribution: Mepis/Kubuntu/Other
Posts: 32

Original Poster
Rep: Reputation: 16
Reloading web server config...[Mon Oct 11 18:51:18 2004] [error] (EAI 2)Name or service not known: Failed to resolve server name for 2001:ba8:1af:1000::1 (check DNS) -- or specify an explicit ServerName done.

I am still getting the same error message. Anyone else ever get this message? Anyone able to help?
 
  


Reply



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 -VirtualHost davidhk Debian 7 08-19-2005 12:33 PM
VirtualHost Apache 2 Problem Chris_K1 Linux - Networking 0 01-25-2005 10:00 AM
How to setup the virtualhost in home? treotan Linux - Networking 9 08-05-2004 09:31 AM
Help with Apache <VirtualHost> please. smakkythecamel Linux - Networking 2 06-12-2003 07:15 PM
apache virtualhost jonfa Linux - Networking 5 08-12-2002 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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