|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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) |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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) |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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) |
|
![]() |
| Outils de la discussion | |
|
|