You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jonathan Trites <tr...@gmail.com> on 2005/01/10 08:44:36 UTC

Re: [users@httpd] Shouldn't this be easy? - What the heck am i doing wrong???

I don't know about the exact problem you are getting but you should be
using forward slashes  in the DocumentRoot directive
("C:/Apache2/htdocs"). I've forgotten it many times myself. Maybe that
is part of the problem?


On Sun, 09 Jan 2005 07:13:37 -0500, Rich Bowen <rb...@rcbowen.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Dan Trainor - hostinthebox.net wrote:
> |> <VirtualHost *>
> |>             DocumentRoot "C:\Apache2\htdocs"
> |>             ServerName 127.0.0.1
> |>             RewriteEngine on
> |>             RewriteRule /test /oops.cfm
> |> </VirtualHost>
> |>
> |>
> |> When I request http://127.0.0.1/test.txt, I get the oops.cfm file but
> |> it's raw ColdFusion source code. How do I make it evaluate the cfm
> |> file while still keeping the request as an internal redirect?
> 
> You need to use the [PT] flag on the rule.
> RewriteRule /test /oops.cfm [PT]
> 
> - --
> Rich Bowen
> rbowen@rcbowen.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFB4R/xXP03+sx4yJMRArSpAKDPDkmMGW8VDRM/kZYSFMbEVmp3mwCgsj1y
> hxAb899QUe9wLao2MJ6G/zo=
> =oFf6
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org