LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2007, 11:46 AM   #1
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Rep: Reputation: 15
Apache2 how install mod_rewrite ?


My Apache2 is on a Fedora

It is installed here:
/etc/httpd

Modules are in:
/etc/httpd/modules

I searched a lot but I did not found how to install mod_rewrite.

I want to do url rewriting.

Can you help me please?
 
Old 09-22-2007, 06:31 AM   #2
Sachin.Verma
LQ Newbie
 
Registered: Sep 2007
Location: Delhi, India
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
Quote:
how to install mod_rewrite.

yeah ! the specification you have provided here tells you have installed apache with rpm, right ? i guess you really don't have to install anything else.. try to check what modules are there with ur apache, mod_rewrite must be there.

If you've compile apache, the same can achieve by providing option –-enable-rewrite.

http://linuxadministration.wordpress...figure-apache/
 
Old 09-23-2007, 10:28 AM   #3
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
Yes I installed Apache with rpm file

In /etc/httpd/modules I found the file mod_rewrite.so

Now how do I activate it?

Thanks!
 
Old 09-23-2007, 11:16 AM   #4
MJWhiteDerm
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
yast under 9.3 vs 10.1

Stefani,

I am running my host under ubuntu ... but I have another box running Suse 10.1 and I remember that a lot of the functions for apache were accessible with gui tools under 10.1. It might be easier to fix under Suse 10.1 than under 9.3.

Michael
 
Old 09-23-2007, 12:06 PM   #5
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
My server is on a Fedora Core.
 
Old 09-23-2007, 12:26 PM   #6
MJWhiteDerm
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
Oops. Sorry ..

Good luck. I last played with RedHat 9.0 .. before migrating. When they decided not to support the individual user, I decided to migrate.

I will follow this with interest, however.

Michael
 
Old 09-23-2007, 05:29 PM   #7
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
I fixed the problem like this.

I added this line to etc/httpd/conf/httpd.conf :

Code:
RewriteEngine on
And at he line :

Code:
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride all

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>
I changed:

Code:
    AllowOverride none
To:

Code:
    AllowOverride all
 
  


Reply

Tags
apache, modrewrite



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
Apache2 mod_rewrite isn't working vargadanis Linux - Server 3 11-09-2009 08:21 PM
Apache2 mod_rewrite rule for changing file extentions CyberDog3K Linux - Server 0 08-27-2007 01:25 AM
gallery2 and mod_rewrite in Apache2 swmok Linux - Software 1 07-08-2007 11:42 PM
Top-Level Domain rewrite using mod_rewrite in Apache2 subcon Linux - Server 0 06-24-2007 11:33 PM
how to add mod_rewrite to apache2 scabrous1 Linux - Software 1 07-07-2006 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:43 PM.

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