Apache Server configuration support - PHP, apache_lookup_uri

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > PHP, apache_lookup_uri





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP, apache_lookup_uri
Jim Carlock

2007-01-21, 7:23 pm

IS there a better way to do this...

<VirtualHost *:80>
ServerName www.example.com
DocumentRoot "C:/Program Files/Apache/htdocs/www/example/com/html"
Alias /data/ "C:/Program Files/Apache/htdocs/www/example/com/data/"
<Directory "C:/Program Files/Apache/htdocs/www/example/com/data">
Options None
AllowOverride None
Order deny,allow
Allow from none
</Directory>
ErrorLog logs/www/example/com/error.log
CustomLog logs/www/example/com/access.log combined
</VirtualHost>

The goal is to provide access to php only, not to web-browsers.

PHP gains access via the apache_lookup_uri() function which
would grab the path via the Alias command above.

The above is currently untested and may need to get modified.

I'm wondering if there's other ways to go about this.

--
Jim Carlock
Post replies to the group.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com