PHP, apache_lookup_uri
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > PHP, apache_lookup_uri




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    PHP, apache_lookup_uri  
Jim Carlock


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-22-07 12:23 AM

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.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:49 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register