Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Why is the modified document root is not taken by Apache2.2?

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


varunawithapache at gmail

Nov 15, 2009, 9:54 AM

Post #1 of 2 (292 views)
Permalink
Why is the modified document root is not taken by Apache2.2?

In file httpd.conf
I modified DocumentRoot "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs" , to be DocumentRoot "C:/Program Files/Apache
Software Foundation/Apache2.2/test"
Then <Directory "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs"> to be <Directory "C:/Program Files/Apache
Software Foundation/Apache2.2/test">
at the end of the above operation I created a directory "test" in the
Apache2.2 directory and put inside the file phptest.php which contained the
script .
>
> html>
> <head>
> <title> PHP </title>
> </head>
> <body>
> <?php
> echo "It really works!"
> ?>
> </body>
> </html>
>
But the message "It really works" does not get displayed when typed the URL
http:/localhost/test/phptest.php, what is displayed is "
Not Found

The requested URL /test/phptest.php was not found on this server.
*The line LoadModule php5_module "c:/php/apache2_2.dll and the lines AddType
application/x-httpd-php .php, AddType application /x-httpd-php-source .phps
were also added*

*Regards Varuna*


covener at gmail

Nov 15, 2009, 11:18 AM

Post #2 of 2 (270 views)
Permalink
Re: Why is the modified document root is not taken by Apache2.2? [In reply to]

On Sun, Nov 15, 2009 at 12:54 PM, varunawithapache
<varunawithapache [at] gmail> wrote:

> to be DocumentRoot "C:/Program Files/Apache

> http:/localhost/test/phptest.php, what is displayed is "

Why do you have /test/ in your URL if the documentroot already
contains the test subdirectory?

--
Eric Covener
covener [at] gmail

---------------------------------------------------------------------
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 [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.