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

virtual host in my local server

Réponse
 
LinkBack Outils de la discussion
Vieux 28/05/2007, 21h03   #1
alecoscia@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut virtual host in my local server

for my local tests I need different servername with different
documentRoot
so I put this lines in my httpd.conf

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1:80>
DocumentRoot E:/www/newsite
ServerName mynewlocalhost
CustomLog logs/sick-internals common
<Directory "E:/www/newsite">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

but when I put http://mynewlocalhost in my browser I can see
anything...
what's wrong?

thanks!
Alex

  Réponse avec citation
Vieux 28/05/2007, 21h45   #2
Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: virtual host in my local server

alecoscia@gmail.com wrote in news:1180382603.085575.50300
@u30g2000hsc.googlegroups.com:

> for my local tests I need different servername with different
> documentRoot
> so I put this lines in my httpd.conf
>
> NameVirtualHost 127.0.0.1
>
> <VirtualHost 127.0.0.1:80>
> DocumentRoot E:/www/newsite
> ServerName mynewlocalhost
> CustomLog logs/sick-internals common
> <Directory "E:/www/newsite">
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> </VirtualHost>
>
> but when I put http://mynewlocalhost in my browser I can see
> anything...
> what's wrong?
>
> thanks!
> Alex
>
>


What's wrong is that your computer is trying to resolve "mynewlocalhost"
through DNS. Your fix will be to add the following line in your "hosts"
file.

127.0.0.1 mynewlocalhost




--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 29/05/2007, 06h07   #3
kwan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: virtual host in my local server

On May 28, 1:45 pm, Mark <mtaylor*@*lrim.com> wrote:
> alecos...@gmail.com wrote in news:1180382603.085575.50300
> @u30g2000hsc.googlegroups.com:
>
>
>
>
>
> > for my local tests I need different servername with different
> > documentRoot
> > so I put this lines in my httpd.conf

>
> > NameVirtualHost 127.0.0.1

>
> > <VirtualHost 127.0.0.1:80>
> > DocumentRoot E:/www/newsite
> > ServerName mynewlocalhost
> > CustomLog logs/sick-internals common
> > <Directory "E:/www/newsite">
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride None
> > Order allow,deny
> > Allow from all
> > </Directory>
> > </VirtualHost>

>
> > but when I puthttp://mynewlocalhostin my browser I can see
> > anything...
> > what's wrong?

>
> > thanks!
> > Alex

>
> What's wrong is that your computer is trying to resolve "mynewlocalhost"
> through DNS. Your fix will be to add the following line in your "hosts"
> file.
>
> 127.0.0.1 mynewlocalhost
>
> --
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> - Show quoted text -


You are using Windows platform to run your apache, it is better to put
the www.something.com in the VirtualHost directory
<VirtualHost www.something.com>
......
ServerName something.com
</VirtualHost>

  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 06h41.


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