Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th April 2009, 01:31
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default crazy rewrite error

So this problem started a year ago but I figured it was not related to apache or ISPCONFIG. I finally decided to resolve it today, and it's apache or something.

Here's what the deal is. My translation application for Areyouliberal.com ends up giving an "500 error - Internal Server Error!" error.

Error log shows this:
Code:
[Fri Apr 17 13:02:44 2009] [alert] [client 72.198.79.154] /var/www/web6/web/wp-content/plugins/translator/.htaccess: Options not al$
[Fri Apr 17 13:02:44 2009] [warn] RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursio$
[Fri Apr 17 13:02:44 2009] [alert] [client 72.198.79.154] /var/www/web6/web/wp-content/plugins/translator/.htaccess: Options not al$
[Fri Apr 17 13:02:44 2009] [warn] RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursio$
[Fri Apr 17 13:02:44 2009] [alert] [client 72.198.79.154] /var/www/web6/web/wp-content/plugins/translator/.htaccess: Options not al$
[Fri Apr 17 13:02:44 2009] [warn] RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursio$
[Fri Apr 17 13:02:44 2009] [alert] [client 72.198.79.154] /var/www/web6/web/wp-content/plugins/translator/.htaccess: Options not al$
[Fri Apr 17 13:02:45 2009] [warn] RewriteOptions: MaxRedirects option has been removed in favor of the global LimitInternalRecursio$
The .htaccess for the website documentroot has the following:
Code:
#Options +FollowSymlinks
RewriteOptions MaxRedirects=50
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Vhosts.conf in the httpd/conf/vhosts/ directory has the following for Areyouliberal.com:
Code:
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^areyouracist\.com [NC]
RewriteRule ^/(.*)         http://areyouliberal.com/$1 [L,R]
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
How can I get Rewrite to work appropriately? According to httpd.conf there is a LOADMODULE for modrewrite.so so that should not be an issue.

I have no Apache Directives added to the website through ISPCONFIG's interface.
Reply With Quote
Sponsored Links
  #2  
Old 18th April 2009, 01:46
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Okay, after modifying Apache Directives on the ISPCONFIG web interface I added:
Code:
<Directory /var/www/web6/web/>
AllowOverride All
</Directory>
This resolved several issues, however, I am still having rewrite issues on sub-directories that should be rewritten. Is there a way to do a full override for the entire website?
Reply With Quote
  #3  
Old 18th April 2009, 16:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Please check if there are .htaccess files in some subdirectories or other parts in the Apache configuration that override this configuration.

BTW,

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^areyouracist\.com [NC]
RewriteRule ^/(.*)         http://areyouliberal.com/$1 [L,R]
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
can be shortened to

Code:
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{HTTP_HOST}   ^areyouracist\.com [NC]
  RewriteRule ^/(.*)         http://areyouliberal.com/$1 [L,R]
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 18th April 2009, 18:01
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

There are some .htaccess files but just standard little options +indexes types, nothing for rewrite.
Reply With Quote
  #5  
Old 18th April 2009, 18:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,334 Times in 4,184 Posts
Default

You should not set things Like Options +Indexes in .htaccess files. Beter set them in the apache directives field.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 18th April 2009, 18:41
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

Okay. Would it be like doing a directive for that be as:
<Directory /var/www/web6/web/>
Options +indexes
</Directory>

Yes?

And what's the word on a script to move from 2.2.x to 3.x.x ISPCONFIG versions? :-D
Reply With Quote
  #7  
Old 19th April 2009, 16:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by crypted View Post
Okay. Would it be like doing a directive for that be as:
<Directory /var/www/web6/web/>
Options +indexes
</Directory>

Yes?
Yes.

Quote:
Originally Posted by crypted View Post
And what's the word on a script to move from 2.2.x to 3.x.x ISPCONFIG versions? :-D
This is not possible. We've mentioned that in many threads now. Please accept it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LB1 Not Taking Over Shared IP Using Heartbeat 2.1.3 On FC10 64Bit asyadiqin Installation/Configuration 5 11th February 2009 20:11
configuring IPTABLES firewall adityavpratap HOWTO-Related Questions 9 27th May 2006 21:42
Frustrated with ISPConfig install! woozyerdaddee Installation/Configuration 4 19th May 2006 03:38
Installation Fails... :( cyberstorm Installation/Configuration 1 15th January 2006 18:07
Install stop at uuwish, UUDeview SeaWolf Installation/Configuration 6 4th October 2005 23:53


All times are GMT +2. The time now is 08:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.