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 > apache2 virtual host question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

apache2 virtual host question

Réponse
 
LinkBack Outils de la discussion
Vieux 04/02/2008, 12h10   #1
henribaeyens
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut apache2 virtual host question

Hello group,

I'm running apache2 under gutsy gibbon (ubuntu 7.10).
My question is about setting up a virtual host whose domain is already
registered. Say, www.thisdomain.com already exists, and I wish to set up
a virtual host of the form dev.thisdomain.com
The domain name is registered by a client of mine and I'm developing his
site. I can access the local version via localhost but I'd like to use
the virtual name.
I've already set up other virtual hosts and they are correctly "mapped"
to my local server, but in those instances, the domain names don't exist
"out there" (ie they're not registered or parked). I thought that even if
the domain existed apache would first look in the enabled sites. But no.
When I type in dev.thisdomain.com I'm directed to the hosted
thisdomain.com

Am I being clear enough?

Well here's the dev.thisdomain.com file:

<VirtualHost *:80>
ServerName dev.thisdomain.com
DocumentRoot /var/www/htdocs/thisdomain/
<Directory /var/www/htdocs/thisdomain/>
Options Indexes ExecCGI
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>

Thanks for any assistance some of you might be kind enough to offer

Henri
  Réponse avec citation
Vieux 04/02/2008, 12h35   #2
phantom
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 virtual host question

"henribaeyens" <contact@myname.com> wrote in message
news:47a70098$0$885$ba4acef3@news.orange.fr...
> Hello group,
>
> I'm running apache2 under gutsy gibbon (ubuntu 7.10).
> My question is about setting up a virtual host whose domain is already
> registered. Say, www.thisdomain.com already exists, and I wish to set up
> a virtual host of the form dev.thisdomain.com
> The domain name is registered by a client of mine and I'm developing his
> site. I can access the local version via localhost but I'd like to use
> the virtual name.
> I've already set up other virtual hosts and they are correctly "mapped"
> to my local server, but in those instances, the domain names don't exist
> "out there" (ie they're not registered or parked). I thought that even if
> the domain existed apache would first look in the enabled sites. But no.
> When I type in dev.thisdomain.com I'm directed to the hosted
> thisdomain.com
>


How are you telling your browser to look for dev.thisdomain.com on the local
machine?
i.e. have you put an entry in /etc/hosts for it?


  Réponse avec citation
Vieux 04/02/2008, 13h27   #3
Henri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: apache2 virtual host question

On Mon, 04 Feb 2008 12:35:42 +0000, phantom wrote:

> "henribaeyens" <contact@myname.com> wrote in message
> news:47a70098$0$885$ba4acef3@news.orange.fr...
>> Hello group,
>>
>> I'm running apache2 under gutsy gibbon (ubuntu 7.10). My question is
>> about setting up a virtual host whose domain is already registered.
>> Say, www.thisdomain.com already exists, and I wish to set up a virtual
>> host of the form dev.thisdomain.com The domain name is registered by a
>> client of mine and I'm developing his site. I can access the local
>> version via localhost but I'd like to use the virtual name.
>> I've already set up other virtual hosts and they are correctly "mapped"
>> to my local server, but in those instances, the domain names don't
>> exist "out there" (ie they're not registered or parked). I thought that
>> even if the domain existed apache would first look in the enabled
>> sites. But no. When I type in dev.thisdomain.com I'm directed to the
>> hosted thisdomain.com
>>
>>

> How are you telling your browser to look for dev.thisdomain.com on the
> local machine?
> i.e. have you put an entry in /etc/hosts for it?


oh my my, of course!!

I always seem to forget one detail

thanks a bunch
  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 01h59.


É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,11060 seconds with 11 queries