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

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

am 13.01.2008 18:21:58 von IT-BOY

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

Re: xampp apache vhosts setting (linux) - help help !!!!

am 13.01.2008 19:47:52 von Kees Nuyt

On Mon, 14 Jan 2008 01:21:58 +0800, "IT-BOY"
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

(some config here)


and make an alias for xampp, like so:



(some config here)


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

HTH
--
( Kees
)
c[_] Its a JOKE, like the funny kind but different. (#74)

Re: xampp apache vhosts setting (linux) - help help !!!!

am 14.01.2008 02:27:59 von IT

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" wrote in message
news:romko3pgblgimrgodusi648bvtgs7bf63l@dim53.demon.nl...
> On Mon, 14 Jan 2008 01:21:58 +0800, "IT-BOY"
> 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
>
> (some config here)
>

>
> and make an alias for xampp, like so:
>
>
>
> (some config here)
>

>
> No need for vhosts, rewrites or pages which include
> redirection headers.
>
> HTH
> --
> ( Kees
> )
> c[_] Its a JOKE, like the funny kind but different. (#74)

Re: xampp apache vhosts setting (linux) - help help !!!!

am 14.01.2008 08:37:05 von Kees Nuyt

On Mon, 14 Jan 2008 09:27:59 +0800, "it"
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[_] Help beautify our dumps. Throw away something pretty. (#169)