LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2007, 01:50 AM   #1
rushenas
Member
 
Registered: May 2005
Posts: 34

Rep: Reputation: 15
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?
 
Old 11-06-2007, 05:16 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
Old 11-06-2007, 06:35 AM   #3
rushenas
Member
 
Registered: May 2005
Posts: 34

Original Poster
Rep: Reputation: 15
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
 
Old 11-06-2007, 12:47 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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
 
Old 11-07-2007, 01:26 AM   #5
rushenas
Member
 
Registered: May 2005
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 11-07-2007, 03:45 AM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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

Last edited by gilead; 11-07-2007 at 03:49 AM.
 
Old 11-07-2007, 04:09 AM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finally I am with my family : ) nena LinuxQuestions.org Member Intro 2 01-27-2006 03:14 PM
Network with family PC claudius753 Linux - Newbie 3 09-03-2005 02:28 PM
Linux for my family? shortname Linux - General 2 06-02-2005 08:39 PM
My little linux family britishnemesis LinuxQuestions.org Member Success Stories 1 11-02-2003 05:40 PM
Happy family? docGonzo2000 Slackware 14 05-15-2003 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration