Solved

In compatibility problems

Posted on 2006-10-30
2
185 Views
Last Modified: 2010-03-04
We are trying to migrate applications from one server to another in Apache.

one server(x1) running apache 1.3  and another server(x2) running apache 2.0
1.3 apache version doesnt have any mod rewrite function, but 2.0 apache version
has mod rewrite function.

when we forward all the pages from one server (x2) to (x1) redirect works just fine,
but when we redirect pages from x1 to x2 redirect doesnt work.


please provide suggestions..

-------------------
The following inquiries are in regards to mod_rewrite running on apache 1.3:

1.  Need to determine if the module is loaded.

2.  Need to load it if it is not already loaded.

3.  If it is already loaded, need to know how to activate it.

0
Comment
Question by:shihabf
2 Comments
 

Author Comment

by:shihabf
ID: 17852621
any one could answer
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 17854043
to know which module are compiled in Apache1.3 you can invoke from command line:
/usr/local/apache/bin/httpd -l (or on windows C:\apache\apache.exe -l)

If module is not the list you need to recompile apache with additional option:
--enable-module=rewrite (see http://httpd.apache.org/docs/1.3/install.html for details about compilation and installation)

once module is installed then you can start using it by adding following lines:

RewriteEngine  on
RewriteRule ....

more detailed info about mod rewrite and url rewritig guides are on
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
and
http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now