You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Matthew P. Smith" <m...@smithwebdesign.net> on 2010/08/12 00:00:05 UTC
[users@httpd] url rewrite help
I need to rewrite requested urls from this:
domain.com/some-directory/
to
domain.com/some-directory/index.cfm
Can someone provide an example? I need it to apply to all directory only
requests.
I looked here, but did not see how to do it.
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
<http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My apache knowledge
is very limited.
Re: [users@httpd] url rewrite help
Posted by Rich Bowen <rb...@rcbowen.com>.
On Aug 13, 2010, at 11:22 AM, Matthew Smith wrote:
> I found this, which is what I am trying to do:
> http://blog.razuna.com/2008/02/04/custom-404-pages-with-coldfusion-8-macos-x-and-the-difference-with-iis/
>
> I did not see mod_rewrite listed in the modules at the top of
> http.conf, so I added:
> LoadModule rewrite_module libexec/apache2/mod_rewrite.so
>
> However, I am getting an error when trying to load the module:
> [Fri Aug 13 10:09:36 2010] [notice] Child 2688: Exit event signaled.
> Child process is ending.
> httpd.exe: Syntax error on line 128 of C:/Program Files/Apache
> Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/
> Program Files/Apache Software Foundation/Apache2.2/libexec/apache2/
> mod_rewrite.so into server: The specified module could not be found.
>
> I did not see mod_rewrite listed in the modules at the top of
> http.conf, so I added:
> LoadModule rewrite_module libexec/apache2/mod_rewrite.so
>
> I do not know why it is looking into libexec instead of modules. I
> even created the directories under apache2.2 (/libexec/apache2/) and
> copied the file there.. No dice.
>
It's looking into libexec instead of modules because that's what you
told it to do in the LoadModule directive. Loadmodule should point to
the actual file path of the mod_rewrite.so file
--
Rich Bowen
rbowen@rcbowen.com
Re: [users@httpd] url rewrite help
Posted by Matthew Smith <ch...@gmail.com>.
I found this, which is what I am trying to do:
http://blog.razuna.com/2008/02/04/custom-404-pages-with-coldfusion-8-macos-x-and-the-difference-with-iis/
I did not see mod_rewrite listed in the modules at the top of http.conf, so
I added:
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
<http://blog.razuna.com/2008/02/04/custom-404-pages-with-coldfusion-8-macos-x-and-the-difference-with-iis/>However,
I am getting an error when trying to load the module:
[Fri Aug 13 10:09:36 2010] [notice] Child 2688: Exit event signaled. Child
process is ending.
httpd.exe: Syntax error on line 128 of C:/Program Files/Apache Software
Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache
Software Foundation/Apache2.2/libexec/apache2/mod_rewrite.so into server:
The specified module could not be found.
I did not see mod_rewrite listed in the modules at the top of http.conf, so
I added:
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
I do not know why it is looking into libexec instead of modules. I even
created the directories under apache2.2 (/libexec/apache2/) and copied the
file there.. No dice.
How do I get this module to work?
On Thu, Aug 12, 2010 at 5:01 AM, David Ricar <re...@ethernet.cz> wrote:
> Error pages are set in apache configs too, so just change that line...
>
> Matthew P. Smith wrote:
>
>> Hi, I have this in the conf:
>> <IfModule dir_module>
>> DirectoryIndex index.cfm
>> </IfModule>
>>
>> I am running coldfusion 9. I am tyring to use the onMissingTemplate
>> function to call a custom 404. The application server does not invoke this
>> function for directory calls, so I need to redirect to /index.cfm
>>
>> On Wed, Aug 11, 2010 at 5:21 PM, David Ricar <reg@ethernet.cz <mailto:
>> reg@ethernet.cz>> wrote:
>>
>> I'd use default index and extend it for .cfm as this:
>>
>> DirectoryIndex index.html index.cgi index.pl <http://index.pl>
>>
>> index.php index.xhtml
>> index.htm index.cfm
>>
>> Cheers
>> David
>>
>> Matthew P. Smith wrote:
>>
>> I need to rewrite requested urls from this:
>>
>> domain.com/some-directory/ <http://domain.com/some-directory/>
>> <http://domain.com/some-directory/>
>>
>> to
>>
>> domain.com/some-directory/index.cfm
>> <http://domain.com/some-directory/index.cfm>
>> <http://domain.com/some-directory/index.cfm>
>>
>>
>> Can someone provide an example? I need it to apply to all
>> directory only requests.
>>
>> I looked here, but did not see how to do it.
>>
>> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
>>
>> <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My
>> apache knowledge is very limited.
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>> <ma...@httpd.apache.org>
>>
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> <ma...@httpd.apache.org>
>>
>> For additional commands, e-mail: users-help@httpd.apache.org
>> <ma...@httpd.apache.org>
>>
>>
>>
>>
>> --
>> Regards,
>> Matthew Smith
>> MS Data Systems, Inc. - Mobile AL <http://www.msdatasystems.com>
>> Mobile AL Web Design Company <
>> http://www.mobile-al-web-design.com/ms-data-systems-mobile-al/mobile-al-web-design/mobile-al-web-design.cfm
>> >
>>
>>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards,
Matthew Smith
Owner, Smith Web Design
m@smithwebdesign.net
(251) 272-9433
Re: [users@httpd] url rewrite help
Posted by David Ricar <re...@ethernet.cz>.
Error pages are set in apache configs too, so just change that line...
Matthew P. Smith wrote:
> Hi, I have this in the conf:
> <IfModule dir_module>
> DirectoryIndex index.cfm
> </IfModule>
>
> I am running coldfusion 9. I am tyring to use the onMissingTemplate
> function to call a custom 404. The application server does not invoke
> this function for directory calls, so I need to redirect to /index.cfm
>
> On Wed, Aug 11, 2010 at 5:21 PM, David Ricar <reg@ethernet.cz
> <ma...@ethernet.cz>> wrote:
>
> I'd use default index and extend it for .cfm as this:
>
> DirectoryIndex index.html index.cgi index.pl <http://index.pl>
> index.php index.xhtml
> index.htm index.cfm
>
> Cheers
> David
>
> Matthew P. Smith wrote:
>
> I need to rewrite requested urls from this:
>
> domain.com/some-directory/ <http://domain.com/some-directory/>
> <http://domain.com/some-directory/>
>
> to
>
> domain.com/some-directory/index.cfm
> <http://domain.com/some-directory/index.cfm>
> <http://domain.com/some-directory/index.cfm>
>
>
> Can someone provide an example? I need it to apply to all
> directory only requests.
>
> I looked here, but did not see how to do it.
>
> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
>
> <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My
> apache knowledge is very limited.
>
>
>
> ---------------------------------------------------------------------
> 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
> <ma...@httpd.apache.org>
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> <ma...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
> <ma...@httpd.apache.org>
>
>
>
>
> --
> Regards,
> Matthew Smith
> MS Data Systems, Inc. - Mobile AL <http://www.msdatasystems.com>
> Mobile AL Web Design Company
> <http://www.mobile-al-web-design.com/ms-data-systems-mobile-al/mobile-al-web-design/mobile-al-web-design.cfm>
>
---------------------------------------------------------------------
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
Re: [users@httpd] url rewrite help
Posted by "Matthew P. Smith" <m...@smithwebdesign.net>.
Hi, I have this in the conf:
<IfModule dir_module>
DirectoryIndex index.cfm
</IfModule>
I am running coldfusion 9. I am tyring to use the onMissingTemplate
function to call a custom 404. The application server does not invoke this
function for directory calls, so I need to redirect to /index.cfm
On Wed, Aug 11, 2010 at 5:21 PM, David Ricar <re...@ethernet.cz> wrote:
> I'd use default index and extend it for .cfm as this:
>
> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
> index.htm index.cfm
>
> Cheers
> David
>
> Matthew P. Smith wrote:
>
>> I need to rewrite requested urls from this:
>>
>> domain.com/some-directory/ <http://domain.com/some-directory/>
>>
>> to
>>
>> domain.com/some-directory/index.cfm <
>> http://domain.com/some-directory/index.cfm>
>>
>>
>> Can someone provide an example? I need it to apply to all directory only
>> requests.
>>
>> I looked here, but did not see how to do it.
>>
>> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
>>
>> <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My apache
>> knowledge is very limited.
>>
>>
>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards,
Matthew Smith
MS Data Systems, Inc. - Mobile AL <http://www.msdatasystems.com>
Mobile AL Web Design
Company<http://www.mobile-al-web-design.com/ms-data-systems-mobile-al/mobile-al-web-design/mobile-al-web-design.cfm>
Re: [users@httpd] url rewrite help
Posted by Matthew Smith <ch...@gmail.com>.
Hi, I have this in the conf:
<IfModule dir_module>
DirectoryIndex index.cfm
</IfModule>
I am running coldfusion 9. I am tyring to use the onMissingTemplate
function to call a custom 404. The application server does not invoke this
function for directory calls, so I need to redirect to /index.cfm
On Wed, Aug 11, 2010 at 5:21 PM, David Ricar <re...@ethernet.cz> wrote:
> I'd use default index and extend it for .cfm as this:
>
> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
> index.htm index.cfm
>
> Cheers
> David
>
> Matthew P. Smith wrote:
>
>> I need to rewrite requested urls from this:
>>
>> domain.com/some-directory/ <http://domain.com/some-directory/>
>>
>> to
>>
>> domain.com/some-directory/index.cfm <
>> http://domain.com/some-directory/index.cfm>
>>
>>
>> Can someone provide an example? I need it to apply to all directory only
>> requests.
>>
>> I looked here, but did not see how to do it.
>>
>> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
>>
>> <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My apache
>> knowledge is very limited.
>>
>>
>
> ---------------------------------------------------------------------
> 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
>
>
--
Regards,
Matthew Smith
Owner, Smith Web Design
m@smithwebdesign.net
(251) 272-9433
Re: [users@httpd] url rewrite help
Posted by David Ricar <re...@ethernet.cz>.
I'd use default index and extend it for .cfm as this:
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
index.htm index.cfm
Cheers
David
Matthew P. Smith wrote:
> I need to rewrite requested urls from this:
>
> domain.com/some-directory/ <http://domain.com/some-directory/>
>
> to
>
> domain.com/some-directory/index.cfm
> <http://domain.com/some-directory/index.cfm>
>
> Can someone provide an example? I need it to apply to all directory
> only requests.
>
> I looked here, but did not see how to do it.
>
> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
>
> <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My apache
> knowledge is very limited.
>
---------------------------------------------------------------------
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