PHP, apache_lookup_uri

This is a discussion on PHP, apache_lookup_uri within the Apache Web Server forums, part of the Web Server and Related Forums category; IS there a better way to do this... <VirtualHost *:80> ServerName www.example.com DocumentRoot "C:/Program ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-21-2007
Jim Carlock
 
Posts: n/a
Default PHP, apache_lookup_uri

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.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0