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

VirtualHost question

Réponse
 
LinkBack Outils de la discussion
Vieux 08/02/2007, 17h34   #1
Johnny
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut VirtualHost question

Hi all:

Simple question.

I have something like http://www.domain.com/webthing/weblook/login.htm
and I
want to change all that to just http://www.domain.com and people would
still
see the same thing.

New to Apache so can someone me out?

-TIA

-John

  Réponse avec citation
Vieux 08/02/2007, 17h48   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VirtualHost question

On 2007-02-08, Johnny <lilgrasshopper@gmail.com> wrote:
> I have something like http://www.domain.com/webthing/weblook/login.htm
> and I
> want to change all that to just http://www.domain.com and people would


Very bad thing to do: first of all your clients won't be able to do things
like bookmarks, in second I found these kind of 'trick' really uggly.
Anyway, the only way to do so is to create a index page in the root
directory of the web server with a frame that redirect to wathever
page you want, the client will see the URL of the external frame. Note
that this is quickly defeated if the client just show the internal
frame. And no, there is no other way to do it. Otherwise your site
won't work at all.

Davide

--
Double your disk space - delete Windows!
-- Albert Dorofeev
  Réponse avec citation
Vieux 08/02/2007, 18h36   #3
Jim Hayter
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VirtualHost question

Davide Bianchi wrote:
> On 2007-02-08, Johnny <lilgrasshopper@gmail.com> wrote:
>> I have something like http://www.domain.com/webthing/weblook/login.htm
>> and I
>> want to change all that to just http://www.domain.com and people would

>
> Very bad thing to do: first of all your clients won't be able to do things
> like bookmarks, in second I found these kind of 'trick' really uggly.
> Anyway, the only way to do so is to create a index page in the root
> directory of the web server with a frame that redirect to wathever
> page you want, the client will see the URL of the external frame. Note
> that this is quickly defeated if the client just show the internal
> frame. And no, there is no other way to do it. Otherwise your site
> won't work at all.
>
> Davide
>


If all he wants is that the short URL result in the long URL page, why
not a RewriteRule or even AliasMatch

AliasMatch ^/$ /<path-to-web-root>/webthing/weblook/login.htm

I'm confused. It appears that Davide and I am anwering very different
questions.

Jim
  Réponse avec citation
Vieux 08/02/2007, 19h07   #4
Johnny
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: VirtualHost question

My boss does not like people having to type all that long www stuff
and having to remember it, he wants
to simplify, when they go to www.domain.com then have the server
display what it would have displayed if they typed that long one.

On Feb 8, 1:36 pm, Jim Hayter <see.reply...@nowhere.invalid> wrote:
> Davide Bianchi wrote:
> > On 2007-02-08, Johnny <lilgrasshop...@gmail.com> wrote:
> >> I have something likehttp://www.domain.com/webthing/weblook/login.htm
> >> and I
> >> want to change all that to justhttp://www.domain.comand people would

>
> > Very bad thing to do: first of all your clients won't be able to do things
> > like bookmarks, in second I found these kind of 'trick' really uggly.
> > Anyway, the only way to do so is to create a index page in the root
> > directory of the web server with a frame that redirect to wathever
> > page you want, the client will see the URL of the external frame. Note
> > that this is quickly defeated if the client just show the internal
> > frame. And no, there is no other way to do it. Otherwise your site
> > won't work at all.

>
> > Davide

>
> If all he wants is that the short URL result in the long URL page, why
> not a RewriteRule or even AliasMatch
>
> AliasMatch ^/$ /<path-to-web-root>/webthing/weblook/login.htm
>
> I'm confused. It appears that Davide and I am anwering very different
> questions.
>
> Jim- Hide quoted text -
>
> - Show quoted text -



  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 09h30.


É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,09134 seconds with 12 queries