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

with multiple sites configuration.

Réponse
 
LinkBack Outils de la discussion
Vieux 10/02/2007, 19h53   #1
blake@kingdomrpg.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut with multiple sites configuration.

Thanks, Hans & Mark,

The configuration changes worked. However, I didn't really
understand your follow-ups. Mark said:

>I fully agree with Hans here, and would add a suggestion. Anytime you
>have virtual hosts be sure your main server (not the virtual host config)
>in not defined. Instead, create a third virtual host placed in front of
>all your other virtual hosts as an 'error catch-all' v-host. That way you
>do not show a wrong website, you admit that an error has occurred and the
>intended website in not available at this time.


So...what, I set up a placeholder directory called, say,
"ServerNotFound" and...set up the first record to point to that?

And then Hans said:

>I even prefer to make it independent to the order of configuration and
>*name* it
><virtual_host _default_:80> ... </virtual_host>
>(While using an include 'vhost/*.conf' OS sorting order may vary and break
>the intent, but when named this way )
>In fact I dislike serveraliasses so much, I have some mapped rewrites in
>there to redirect *.domain.tld to www.domain.tld. Even domian.tld or
>domane.tld is put on the right track that way ... nifty list of 10 domains
>times avg 5 speling bugs ;-)
>It keeps me from hassling with domain and as a bonus google will not
>report double content...


Example?

Thanks again!

  Réponse avec citation
Vieux 11/02/2007, 11h49   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: with multiple sites configuration.

On 10 Feb, 19:53, b...@kingdomrpg.com wrote:
> Thanks, Hans & Mark,
>
> The configuration changes worked. However, I didn't really
> understand your follow-ups. Mark said:
>
> >I fully agree with Hans here, and would add a suggestion. Anytime you
> >have virtual hosts be sure your main server (not the virtual host config)
> >in not defined. Instead, create a third virtual host placed in front of
> >all your other virtual hosts as an 'error catch-all' v-host. That way you
> >do not show a wrong website, you admit that an error has occurred and the
> >intended website in not available at this time.

>
> So...what, I set up a placeholder directory called, say,
> "ServerNotFound" and...set up the first record to point to that?
>


yep!


> And then Hans said:
>
> >I even prefer to make it independent to the order of configuration and
> >*name* it
> ><virtual_host _default_:80> ... </virtual_host>
> >(While using an include 'vhost/*.conf' OS sorting order may vary and break
> >the intent, but when named this way )
> >In fact I dislike serveraliasses so much, I have some mapped rewrites in
> >there to redirect *.domain.tld towww.domain.tld. Even domian.tld or
> >domane.tld is put on the right track that way ... nifty list of 10 domains
> >times avg 5 speling bugs ;-)
> >It keeps me from hassling with domain and as a bonus google will not
> >report double content...

>
> Example?
>
> Thanks again!


<VirtualHost _default_:80>
ServerName _default_
DocumentRoot /usr/local/apache2/vhosts/servernotfound/public
....
</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 23h36.


É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,09883 seconds with 10 queries