Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 16th, 2000, 09:38 PM
Beaver Beaver is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 6 Beaver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am trying to set up the rewrite module. I want to redirect the quest to another port.

at the very beginning, I added
RewriteEngine on
RewriteCond %{HTTP_HOST} ^....URL_NAME....*
RewriteRule ^/(.*)$ http://localhost:3500/$1 [P] [L]

It complaints like below
"Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration"

Then I added
LoadModule rewrite_module modules/mod_rewrite.so

It complaints again like
"Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration"

does anyone know the problem?

Thanks.



Reply With Quote
  #2  
Old October 16th, 2000, 10:55 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>at the very beginning, I added

So which file and where exactly? Is it within a <Location> block or <Directory> block or something?

>>does anyone know the problem?

What configure option did you give when compiling Apache?

Reply With Quote
  #3  
Old October 20th, 2000, 04:03 AM
carlos carlos is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 11 carlos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Did you compile mod_so into Apache??
Check if you did by typing: httpd -l
and make sure that mod_so.c is displayed.

Otherwise, re-build Apache with mod_so or just compile mod_rewrite statically with
Apache.

Hope this helps.

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by freebsd:
>>at the very beginning, I added

So which file and where exactly? Is it within a <Location> block or <Directory> block or something?

>>does anyone know the problem?

What configure option did you give when compiling Apache?
[/quote]


Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How to set mod_rewrite module?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT