JMJimmy
09-09-2002, 12:57 PM
Anyone know how to enable SCRIPT_URI in the Apache Environment?
Thanks!
Thanks!
![]() | View Full Version : Enabling SCRIPT_URI JMJimmy 09-09-2002, 12:57 PM Anyone know how to enable SCRIPT_URI in the Apache Environment? Thanks! JMJimmy 09-09-2002, 11:02 PM Dang, out of 19,000+ people I thought one might know... oh well thanks anyways! :) JMJ Noldar 09-09-2002, 11:43 PM Add RewriteEngine On To the virtual host in your httpd.conf file that you want to turn this on for and then restart apache. Richard JMJimmy 09-10-2002, 12:22 AM Aha! Thanks a bunch Richard! I thought we'd tried that... must have forgotten to restart apache. *smacks Omar's forehead* ;) JMJ 2host.com 09-10-2002, 05:42 AM Originally posted by JMJimmy Anyone know how to enable SCRIPT_URI in the Apache Environment? Thanks! It comes built with it. What were you looking to use it with? PHP, CGI, or some other way? I know someone posted above about mod_rewrite, but SCRIPT_URI is a variable that is default in many environments for interfaces in Apache and other web servers, just as PATH_INFO, SCRIPT_NAME, and so many more are. What environment were you trying to use this in and failed? Or were you just curious in general? JMJimmy 09-10-2002, 07:43 AM I needed $SCRIPT_URI in the Apache Environment so that it would be passed to PHP as: http://www.domain.com/url.php I was only aware that it was tracked by mod_rewrite JMJimmy |