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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 | |
| Display Modes | |
|
|