mod_vhost_alias

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Jacobs

    #1

    mod_vhost_alias

    Hi all

    We have the mod_vhost_alias module installed on our FreeBSD box. This has
    screwed up the $_SERVER['DOCUMENT_ROOT'] variable for php as it's set to
    /home in httpd.conf.

    This is the most contrary thing I've every seen as (probably) 99% of scripts
    out there will rely on this to some extent. Does anyone know if there is a
    work round for this? We don't want to turn the module off. The
    server_path_tra nslated variable is no good without modifying the code to
    strip of the actual script file on the end.

    Regards

    Andy

  • Sjoerd

    #2
    Re: mod_vhost_alias


    Andy Jacobs wrote:[color=blue]
    > We have the mod_vhost_alias module installed on our FreeBSD box. This has
    > screwed up the $_SERVER['DOCUMENT_ROOT'] variable for php as it's set to
    > /home in httpd.conf.[/color]

    See:


    A workaround may be to auto-include (php.ini: auto_prepend_fi le) a file
    which sets $_SERVER['DOCUMENT_ROOT'].

    Comment

    Working...