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 > alt.apache.configuration > How to create virtualHost in apache?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

How to create virtualHost in apache?

Réponse
 
LinkBack Outils de la discussion
Vieux 19/01/2008, 15h46   #1
Pawel_Iks
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to create virtualHost in apache?

I have some web application which use symfony framework and I want to
create virtual host in appache to have this application available from
adres http://webApp/ instead of http://localhost//symfony/webApp/. I
have manual which describe how to do it in Gentoo apache
distribiution, but I have apache in Windows. I tried to add folowing
code into httpd.conf:

<VirtualHost *:80>
ServerName imagene
DocumentRoot "c:\apache\htdocs\nauka\phpsolutions_27\symfon y
\Imagene\web"
DirectoryIndex index.php
Alias /sf "C:/php/PEAR/data/symfony/web/sf"
<Directory "c:\apache\htdocs\nauka\phpsolutions_27\symfony\Im agene
\web">
AllowOverride All
</Directory>
</VirtualHost>


but it didn't work. My apache server is available at 8080 port. I also
tried to paste this code into httpd-vhosts.conf file (in extra dir)
but it also didn't work
  Réponse avec citation
Vieux 19/01/2008, 15h58   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to create virtualHost in apache?

On 2008-01-19, Pawel_Iks <pawel.labedzki@gmail.com> wrote:
> distribiution, but I have apache in Windows. I tried to add folowing
> code into httpd.conf:
>
><VirtualHost *:80>


You also need a NameVirtualHost *:80 before all your <VirtualHost
blocks.

> but it didn't work. My apache server is available at 8080 port.


Then the NameVirtualHost and VirtualHost should be *:8080 or simply *

Davide

--
Q: What does the CE in Windows CE stand for?
A: Caveat Emptor.
  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 10h47.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09633 seconds with 10 queries