httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Bretschneider" <bretschnei...@cleverbridge.com>
Subject AW: [users@httpd] Problem with Windoes Apache .htacces include
Date Wed, 17 Jan 2007 13:56:29 GMT
Hi Stephen,

Here you mix the php-include path for php with the document_root for apache.

The include path for PHP means that you can do the following:

Cpfunctions2.php:

<?php
  Include_once('includefile.php');
?>

This file has to be in the document_root of the apache as cpfunctions.php is
when it works.

You can then save the file includefile.php in

"C:/www/www/stephenofroissy.com/include"

Frank

-----Urspr√ľngliche Nachricht-----
Von: Stephen [mailto:stephen-d@rogers.com] 
Gesendet: Mittwoch, 17. Januar 2007 03:47
An: users@httpd.apache.org
Betreff: [users@httpd] Problem with Windoes Apache .htacces include

I normally work on my Linux server at home, but I am on the road for a 
number of weeks, and installed Apache, PHP and MySQL on my laptop. 
Windows XP Pro.

Most works fine, but I can;t seem to get my include override in 
.htaccess working.

The vhosts setting is:

<VirtualHost *:80>
    ServerAdmin webmaster@stephenofroissy.com
    DocumentRoot C:/www/www/stephenofroissy.com/public_html
    ServerName www.stephenofroissytest.com
    ErrorLog C:/www/www/stephenofroissy.com/public_html/error.log
    CustomLog C:/www/www/stephenofroissy.com/public_html/access.log common
</VirtualHost>

www.stephenofroissytest.com does resolve to 127.0.0.1 and I can view the 
index page and the file that I want to include when it is in the 
document root.

The .htacces file is:

# Set the include path
php_value include_path "C:/www/www/stephenofroissy.com/include"

When I have cpfunctions.php in the document root, and enter 
http://www.stephenofroissytest.com/cpfunctions.php it goes as expected.

When I move cpfunctions.php to C:/www/www/stephenofroissy.com/include I 
get a 404. And *no* log entry.

Help!

Please. And thank you

Stephen

---------------------------------------------------------------------
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



---------------------------------------------------------------------
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


Mime
View raw message