Re: PHP's doc_root
| From: | Tom Mathews | Date: | Fri, 23 Mar 2001 10:33:11 +0000 |
| Subject: | Re: PHP's doc_root | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6244@lists.php.net to get a copy of this message | ||
The other alternative (for those who don't have control of their DNS fro
instance so can't set up a pile of virtual hosts) which I often use when I'm
developing is just to set up some alias's to the root of the directory tree
that you want to use
eg http://localhost/bollox/ would take you to c:\bollox\ if
you had the
following in http.conf: -
Alias /bollox/ "C:/bollox/"
<Directory "C:/bollox/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Tom
Rayon Pinnock wrote:
> I am running Apache 1.3.19 web server under Windows 2000 Professional
> with
> php4 configured as a module of Apache.
>
> Previously php4 was configured was used a cgi interpreter
> and in the php.ini file I had
>
> doc_root = "c:\php\scripts"
>
> and in the httpd.conf file I had
>
> DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/public"
>
> and it worked beautifully. i.e. I could type
> http://localhost/myscript.php
> in my browser and the web server would automatically check the directory
>
> specified by doc_root for the requested php script and go on from there.
>
> However under the current configuration the web server cannot find the
> scripts and the browser reports the dreaded error: HTTP 404 - File not
> found.
>
> What I did as a workaround was to place the php scripts somewhere under
> the web server's DocumentRoot and specify the path when making script
> requests. This works but I want to have my scripts organized like I did
>
> before - i.e. in a separate directory tree than that of the web server's
>
> root. Please advise.
>
> Rayon Pinnock
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net