|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
>>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? |
|
#3
|
|||
|
|||
|
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] |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > How to set mod_rewrite module? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|