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