LinuxQuestions.org
Visit Jeremy's Blog.
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 07-06-2008, 09:55 PM   #1
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Rep: Reputation: 30
"Options +FollowSymlinks" not working on my server


been trying to add something to my .htaccess file that uses "Options +FollowSymlinks" but whenever i add that line i get a "500 Internal Server Error" error message

ubuntu 7.1, apache2
 
Old 07-07-2008, 01:55 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,656

Rep: Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816
You could take a look at the apache error_log to see if you find out what the problem is.
Check if you have "AllowOverride All" or at least ""AllowOverride Options" in httpd.conf or in the .htaccess
 
Old 07-07-2008, 02:01 AM   #3
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
that didn't seem to work :\
 
Old 07-07-2008, 02:37 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,656

Rep: Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816
Quote:
that didn't seem to work :\
Could you give some details? Post at least the .htaccess and the entry in the error_log
 
Old 07-07-2008, 01:05 PM   #5
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
Code:
Options +FollowSymlinks 
RewriteEngine on 
RewriteCond %{REMOTE_HOST} 22\.22\.22\.22
RewriteRule \.php$ http://website.com [R=301,L]
and the error log has:

Code:
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:40 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:41 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:41 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:05:51 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:05:57 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:05:58 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:05:59 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:06:00 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:06:01 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:06:02 2008] [error] [client 127.0.0.1] File does not exist: /htdo                                             cs
[Mon Jul 07 19:06:06 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:06:06 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:06:07 2008] [error] an unknown filter was not added: PHP
[Mon Jul 07 19:06:07 2008] [error] an unknown filter was not added: PHP
 
Old 07-08-2008, 02:59 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,656

Rep: Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816Reputation: 1816
There are a couple of errors in the logs, but none of them results in a 500 Internal Server Error. Make sure you have at least "AllowOverride Options" in the <Directory /path/to/htdocs> part of httpd.conf.
As for the errors, just some things to look into:
Quote:
[Mon Jul 07 19:05:40 2008] [error] an unknown filter was not added: PHP
To get rid of this error read this
Quote:
Mon Jul 07 19:05:40 2008] [error] [client 127.0.0.1] File does not exist: /htdo cs
I guess this is because of the rewrite rule. I don't know what you're trying to do and I'm not very familiar with mod_rewrite, so I can only make some suggestions to your rewrite based on the apache mod_rewrite manual.
1. RewriteCond %{REMOTE_HOST} 22\.22\.22\.22 should be RewriteCond %{REMOTE_ADDR} ^22\.22\.22\.22$
2. For RewriteRule \.php$ http://website.com [R=301,L] try: RewriteRule .*\.php$ http://website.com [R=301,L]
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Apply "Advanced Search" options to "My LQ" searches PTrenholme LQ Suggestions & Feedback 22 03-10-2007 08:30 AM
Wine not working. Xlib: connection to ":0.0" refused by server Xerop Linux - General 1 02-18-2004 09:37 PM
How to modify dial options ( From "pulse" to "tone" ) nykey Linux - Newbie 3 11-24-2003 01:39 PM

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

All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration