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 > xampp apache vhosts setting (linux) - !!!!
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

xampp apache vhosts setting (linux) - !!!!

Réponse
 
LinkBack Outils de la discussion
Vieux 13/01/2008, 17h21   #1
IT-BOY
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut xampp apache vhosts setting (linux) - !!!!

I have install xampp on linux centros 5.1 server in ISP hosted server. After
completed the installation . When i type http://domain.com will direct to
http://domain.com/xampp xampp control panel.

Now i have upload web site to this server
/opt/xampp/htdocs/site1(http://www.domain.com/site1) , also i want modify
the setting when I type http://www.domain.com will redirect to
http:///www.domain.com/site1 web site , another the xampp will keep
http://www.domain.com/xampp , please advice how to config.

IT


  Réponse avec citation
Vieux 13/01/2008, 18h47   #2
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: xampp apache vhosts setting (linux) - !!!!

On Mon, 14 Jan 2008 01:21:58 +0800, "IT-BOY"
<it_jackie@hotmail.com> wrote:

>I have install xampp on linux centros 5.1 server in ISP hosted server. After
>completed the installation . When i type http://domain.com will direct to
>http://domain.com/xampp xampp control panel.
>
>Now i have upload web site to this server
>/opt/xampp/htdocs/site1(http://www.domain.com/site1) , also i want modify
>the setting when I type http://www.domain.com will redirect to
>http:///www.domain.com/site1 web site , another the xampp will keep
>http://www.domain.com/xampp , please advice how to config.
>
>IT


You don't need and can't use virtual hosts for that,
because both 'sites' are within the same host,
www.domain.com

Assuming you can edit your httpd.conf (which you also
would need for vhosts), you can point the directory root
to the /opt/xampp/htdocs/site1 directory, as in:

DirectoryRoot /opt/xampp/htdocs/site1
<Directory /opt/xampp/htdocs/site1>
(some config here)
</Directory>

and make an alias for xampp, like so:

<alias /xampp /opt/xampp/htdocs/xampp>
<Directory /opt/xampp/htdocs/xampp>
(some config here)
</Directory>

No need for vhosts, rewrites or pages which include
redirection headers.

HTH
--
( Kees
)
c[_] Its a JOKE, like the funny kind but different. (#74)
  Réponse avec citation
Vieux 14/01/2008, 01h27   #3
it
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: xampp apache vhosts setting (linux) - !!!!

I try to modify the httpd.conf document root, after the web site all pc
noting and I back to type http://www.domain.com/mc show internal server
error.


"Kees Nuyt" <k.nuyt@nospam.demon.nl> wrote in message
news:romko3pgblgimrgodusi648bvtgs7bf63l@dim53.demo n.nl...
> On Mon, 14 Jan 2008 01:21:58 +0800, "IT-BOY"
> <it_jackie@hotmail.com> wrote:
>
>>I have install xampp on linux centros 5.1 server in ISP hosted server.
>>After
>>completed the installation . When i type http://domain.com will direct to
>>http://domain.com/xampp xampp control panel.
>>
>>Now i have upload web site to this server
>>/opt/xampp/htdocs/site1(http://www.domain.com/site1) , also i want modify
>>the setting when I type http://www.domain.com will redirect to
>>http:///www.domain.com/site1 web site , another the xampp will keep
>>http://www.domain.com/xampp , please advice how to config.
>>
>>IT

>
> You don't need and can't use virtual hosts for that,
> because both 'sites' are within the same host,
> www.domain.com
>
> Assuming you can edit your httpd.conf (which you also
> would need for vhosts), you can point the directory root
> to the /opt/xampp/htdocs/site1 directory, as in:
>
> DirectoryRoot /opt/xampp/htdocs/site1
> <Directory /opt/xampp/htdocs/site1>
> (some config here)
> </Directory>
>
> and make an alias for xampp, like so:
>
> <alias /xampp /opt/xampp/htdocs/xampp>
> <Directory /opt/xampp/htdocs/xampp>
> (some config here)
> </Directory>
>
> No need for vhosts, rewrites or pages which include
> redirection headers.
>
> HTH
> --
> ( Kees
> )
> c[_] Its a JOKE, like the funny kind but different. (#74)



  Réponse avec citation
Vieux 14/01/2008, 07h37   #4
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: xampp apache vhosts setting (linux) - !!!!


On Mon, 14 Jan 2008 09:27:59 +0800, "it" <it@123.com>
wrote:

>I try to modify the httpd.conf document root, after the web site all pc
>noting and I back to type http://www.domain.com/mc show internal server
>error.


Did you restart httpd (the apache http deamon) after the
changes?
Did you check the configuration using apachectrl?

What's in your error log? It will explain the error.
Why /mc? Previously we were only talking about / and
/xampp.
--
( Kees
)
c[_] beautify our dumps. Throw away something pretty. (#169)
  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 11h07.


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