You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Neo Wee Teck <st...@gmail.com> on 2006/07/02 14:32:03 UTC

[users@httpd] VirtualDocumentRoot problem

Hi,

I just notice some problems when using mod_vhost_alias

It seems that when using VirtualDocumentRoot, the variable DocumentRoot in
PHP got mixed up

Server Global

> DocumentRoot /var/www/htdocs

Inside  <VirtualHost>
> VirtualDocumentRoot /var/www/vhost/%0/htdocs

When I run a phpinfo script, this is the variable it gave

> _SERVER["DOCUMENT_ROOT"] /var/www/htdocs

Is this suppose to be correct? How can I force it to the interpolated path
which is /var/www/vhost/somehostname.blah.com/htdocs

Re: [users@httpd] VirtualDocumentRoot problem

Posted by Joshua Slive <jo...@slive.ca>.
On 7/2/06, Neo Wee Teck <st...@gmail.com> wrote:
> Sorry,
>
> Does the patch included works for Apache 1.3?

I don't know.  Try it and see.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] VirtualDocumentRoot problem

Posted by Neo Wee Teck <st...@gmail.com>.
Sorry,

Does the patch included works for Apache 1.3?



On 7/2/06, Joshua Slive <jo...@slive.ca> wrote:
>
> On 7/2/06, Neo Wee Teck <st...@gmail.com> wrote:
> > works for Apache 1.3?
>
> If you want to make yourself understood, try writing in complete
> sentences.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] VirtualDocumentRoot problem

Posted by Joshua Slive <jo...@slive.ca>.
On 7/2/06, Neo Wee Teck <st...@gmail.com> wrote:
> works for Apache 1.3?

If you want to make yourself understood, try writing in complete sentences.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] VirtualDocumentRoot problem

Posted by Neo Wee Teck <st...@gmail.com>.
works for Apache 1.3?

On 7/2/06, Joshua Slive <jo...@slive.ca> wrote:
>
> On 7/2/06, Neo Wee Teck <st...@gmail.com> wrote:
> > Hi,
> >
> > I just notice some problems when using mod_vhost_alias
> >
> > It seems that when using VirtualDocumentRoot, the variable DocumentRoot
> in
> > PHP got mixed up
> >
> > Server Global
> >
> > > DocumentRoot /var/www/htdocs
> >
> > Inside  <VirtualHost>
> > > VirtualDocumentRoot /var/www/vhost/%0/htdocs
> >
> > When I run a phpinfo script, this is the variable it gave
> >
> > > _SERVER["DOCUMENT_ROOT"] /var/www/htdocs
> >
> >  Is this suppose to be correct? How can I force it to the interpolated
> path
> > which is /var/www/vhost/somehostname.blah.com/htdocs
>
> See:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=26052
> which outlines the whole long debate behind this issue and also
> suggests a patch for those who want it.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] VirtualDocumentRoot problem

Posted by Joshua Slive <jo...@slive.ca>.
On 7/2/06, Neo Wee Teck <st...@gmail.com> wrote:
> Hi,
>
> I just notice some problems when using mod_vhost_alias
>
> It seems that when using VirtualDocumentRoot, the variable DocumentRoot in
> PHP got mixed up
>
> Server Global
>
> > DocumentRoot /var/www/htdocs
>
> Inside  <VirtualHost>
> > VirtualDocumentRoot /var/www/vhost/%0/htdocs
>
> When I run a phpinfo script, this is the variable it gave
>
> > _SERVER["DOCUMENT_ROOT"] /var/www/htdocs
>
>  Is this suppose to be correct? How can I force it to the interpolated path
> which is /var/www/vhost/somehostname.blah.com/htdocs

See:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26052
which outlines the whole long debate behind this issue and also
suggests a patch for those who want it.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org