LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 03-24-2005, 01:06 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 682

Rep: Reputation: 39
Problems Adding Directives to the httpd.conf file


Hi there --

I want to disable the TRACE and TRACK methods on our Apache 1.3.31 server with the mod_ssl 2.8.18 module. We have one virtual host section which automatically redirects connections to the server from port 80 to port 443. I initially added the following lines to both the port 80 and 443 sections:

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

However when I stopped and then restarted the server, the error message I received indicated a syntax error for the first line containing RewriteEngine or the command was not defined.

I don't believe I enabled the Rewrite module during the initial configuration. I ran the httpd -l command and there was no listing referencing rewrite. How would I go about enabling the module?
 
Old 03-25-2005, 07:56 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
If you have the capability to use a DSO, check your httpd.conf for the LoadModule directives. You may need to build the module if you don't currently have it in your modules directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 httpd.conf file, which one is being used? newlinuxnewbie Linux - General 2 11-27-2005 04:43 PM
Allow file upload in httpd.conf? @ngelot Linux - Newbie 2 05-13-2005 08:07 AM
Apache httpd.conf file?? matux Mandriva 2 01-28-2005 09:20 AM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM
httpd.conf File? HappyDude Linux - Software 3 08-16-2003 12:38 AM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration