PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Debian Etch apache2 virtual host problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Debian Etch apache2 virtual host problem

Réponse
 
LinkBack Outils de la discussion
Vieux 31/07/2007, 11h40   #1
rocky
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Debian Etch apache2 virtual host problem

Hey,

I'm runing Debian etch with apache2 on it. To make the server host
many website I added the following code to the end of /etc/apache2/
apache2.conf
----------------------Code
begin--------------------------------------------------------------
NameVirtualHost *
<VirtualHost *>
# Basic setup
ServerAdmin webmaster@workzone.com
ServerName www.workzone.com
DocumentRoot /var/www/workzone/htdocs


# HTML documents, with indexing.
<Directory />
Options +Includes
</Directory>

# CGI Handling
ScriptAlias /cgi-bin/ /var/www/workzone/cgi-bin/
<Location /cgi-bin>
Options +ExecCGI
</Location>

# Logfiles
ErrorLog /var/www/workzone/logs/error.log
CustomLog /var/www/workzone/logs/access.log combined
</VirtualHost>
---------------------------------Code
End----------------------------------------
The command apache2ctl configtest tells me "[Fri Jan 01 11:55:20 1999]
[warn] NameVirtualHost *:0 has no VirtualHosts
Syntax OK"

And /etc/init.d/apache2 reload tells me "[Fri Jan 01 11:56:30 1999]
[warn] NameVirtualHost *:0 has no VirtualHosts"

How can I solve the problem please? Can any of you me out?

Blessings,
Rocky


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 17h20   #2
Andrew Sackville-West
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Etch apache2 virtual host problem

On Tue, Jul 31, 2007 at 09:30:38AM -0000, rocky wrote:
> Hey,
>
> I'm runing Debian etch with apache2 on it. To make the server host
> many website I added the following code to the end of /etc/apache2/
> apache2.conf
> ----------------------Code
> begin--------------------------------------------------------------
> NameVirtualHost *
> <VirtualHost *>
> # Basic setup
> ServerAdmin webmaster@workzone.com
> ServerName www.workzone.com
> DocumentRoot /var/www/workzone/htdocs
>
>
> # HTML documents, with indexing.
> <Directory />
> Options +Includes
> </Directory>
>
> # CGI Handling
> ScriptAlias /cgi-bin/ /var/www/workzone/cgi-bin/
> <Location /cgi-bin>
> Options +ExecCGI
> </Location>
>
> # Logfiles
> ErrorLog /var/www/workzone/logs/error.log
> CustomLog /var/www/workzone/logs/access.log combined
> </VirtualHost>
> ---------------------------------Code
> End----------------------------------------
> The command apache2ctl configtest tells me "[Fri Jan 01 11:55:20 1999]
> [warn] NameVirtualHost *:0 has no VirtualHosts
> Syntax OK"


you have not specified any virtual hosts. something like:


<VirtualHost 192.168.2.3:80>
ServerName blah.foo.com
DocumentRoot /var/www/root/of/blah
CustomLog /var/log/apache2/access.log combined
</VirtualHost>

would be in order with a different block with unique ServerName for
each virtual host you want.

see http://httpd.apache.org/docs/1.3/vhosts/name-based.html

might be ful

A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGr16iaIeIEqwil4YRAnuaAKC6+aHh1XFbsR/VdlHeaHIuPXyXyACcCiI9
dq1Q5urTl+vTPySlusVjzyU=
=Qx0w
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 02/08/2007, 07h50   #3
rocky
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Etch apache2 virtual host problem

Hey all,

Thank you very much for your ! I will go back and make the
changes.

Blessings,
Rocky


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h53.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09206 seconds with 11 queries