LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Differences between Apache 1.3 family vs. 2.0 family (http://www.linuxquestions.org/questions/linux-software-2/differences-between-apache-1-3-family-vs-2-0-family-597431/)

rushenas 11-06-2007 01:50 AM

Differences between Apache 1.3 family vs. 2.0 family
 
Hi all
Can somebody tell me, what is the differences between Apache 1.3 family vs. 2.0 family? I've seen that both version are available at apache website, but I don't know which one is better for my job. I need Apache uses mod_rewrite, basic authentication via browser, also supports PHP 5+. I have downloaded the latest 2.0 family version, but after compiling it, looks like that it doesn't support mod_rewrite. Does downgrading to 1.3 family solve my problem? Does 1.3 support PHP 5+, basic authentication, and mod_rewrite? What is the differences between Apache 1.3 family vs. 2.0 family?

gilead 11-06-2007 05:16 AM

Apache 2.0 does support mod_rewrite. There's info on the differences between 1.3 and 2.0 at http://httpd.apache.org/docs/2.0/new_features_2_0.html and http://httpd.apache.org/docs/2.0/upgrading.html. Were you getting errors when you tried to re-write URLs?

rushenas 11-06-2007 06:35 AM

I can't see mod_rewrite.so file in /usr/local/apache/modules. But I use Apache 1.3, and I find the file in /usr/local/apacheold/libexec.
By the way, I am using Open SUSE 10.2, and my configure command for Apache 2 is : ./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-module=proxy --enable-shared=rewrite

gilead 11-06-2007 12:47 PM

I think it's just a syntax difference for the configure command. For Apache 2.0, running ./configure --help lists --enable-modules=MODULE-LIST as one of the options (not --enable-module=MODULE-LIST as you have listed). However, re-write also gets its own configure option, so I use the following:
Code:

./configure --with-layout=Apache --prefix=/usr/local/apache2 --enable-rule=SHARED_CORE --enable-so --enable-ssl --enable-rewrite --with-ssl=/usr/include
Hope that helps

rushenas 11-07-2007 01:26 AM

Hi Steve
Thank you for your help, but unfortunately it still doesn't work. I can't find mod_rewrite.so under modules directory, also there is not any entry for mod_rewrite in httpd.conf file.

gilead 11-07-2007 03:45 AM

I don't have a mod_write.so in my modules directory either, but I have the following in my virtual hosts entries:
Code:

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]

It disables the trace method - when I comment it out, tracing works, when it's not commented out, tracing is denied. So it seems that the functionality is built in somewhere else, but it works as long as --enable-rewrite is selected when configuring.
P.S. The preferred way to disable tracing is with TraceEnable - that's an old piece of code I've shown

gilead 11-07-2007 04:09 AM

To see which modules have been compiled in with Apache 2.0, try running apachectl -l (lower case "L"). I get the following:
Code:

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c



All times are GMT -5. The time now is 08:02 AM.