[BlueOnyx:01007] Re: .htaccess Error

Richard Sidlin richard at sidlin.co.uk
Tue Apr 7 11:37:36 -05 2009


Apologies!

There appears to be an error folder within the site with the same contents 
of the folder you mentioned. Since I made the change to the httpd.conf file 
by adding "All" as per Tjerk's email, I now get a 403 Forbidden error:
Forbidden
You don't have permission to access / on this server.

In the error log, I get this:

[Tue Apr 07 17:30:08 2009] [error] [client 82.16.219.xxx] Options 
FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule 
directive is forbidden: /home/.sites/28/site1/web/

The .htaccess file sits in the /web folder of the website with these 
permissions:

-rw-r--r--  1 root    site1  138 Apr  7 17:25 .htaccess

The content of the .htaccess file contains these rewrites:

RewriteEngine on
RewriteRule ^news/([0-9]+)/(.+) /news/detail.php?id=$1 [L]

RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]


but I notice that there are some rewrites in the vhosts/site1 file (whole 
file produced. Sorry for the length of it):

# owned by VirtualHost
NameVirtualHost 192.168.200.3:80

# FrontPage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
ServerRoot /etc/httpd

<VirtualHost 192.168.200.3:80>
ServerName www.2110consult.com
ServerAlias 2110consult.co.uk 2110consult.com
ServerAdmin admin
DocumentRoot /home/.sites/28/site1/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^192.168.200.3(:80)?$
RewriteCond %{HTTP_HOST}                !^www.2110consult.com(:80)?$ [NC]
RewriteRule ^/(.*)                      http://www.2110consult.com/$1 [L,R]
# BEGIN Bandwidth SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
# END Bandwidth SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
# BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
# BEGIN JSP SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
# END JSP SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? 
/home/.sites/28/site1/users/$1/web/$3
Include /etc/httpd/conf/vhosts/site1.include
# BEGIN PHP SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
php_admin_flag safe_mode Off
php_admin_flag safe_mode_gid Off
php_admin_value safe_mode_allowed_env_vars PHP_
php_admin_value safe_mode_exec_dir .
php_admin_value safe_mode_include_dir .
php_admin_value safe_mode_protected_env_vars LD_LIBRARY_PATH
php_admin_flag register_globals On
php_admin_flag allow_url_fopen On
php_admin_flag allow_url_include Off
php_admin_value open_basedir 
/home/:/tmp/:/var/lib/php/session/:/home/.sites/28/site1/
php_admin_value post_max_size 8M
php_admin_value upload_max_filesize 2M
php_admin_value max_execution_time 30
php_admin_value max_input_time 60
php_admin_value memory_limit 16M
# END PHP SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>
# end of VirtualHost owned section


Sorry for the length of the post but unsure where to go from here. Any help 
really appreciated.

Richard








----- Original Message ----- 
From: Gerald Waugh
To: BlueOnyx General Mailing List
Sent: Tuesday, April 07, 2009 3:56 PM
Subject: [BlueOnyx:01006] Re: .htaccess Error


Post in plain text, please!

I have seem the following error on some BX (BO) boxes.
[Tue Apr 07 14:31:08 2009] [error] [client 80.46.45.xxx] File does not 
exist: /home/.sites/28/site1/web/error/noindex.html
Seems as though the 'error' directory is not initialized when site is 
created.
BTW noindex.html is a blamk page, of course you may edit it as desired.

we corrected by mkdir 'error' for the website in the web directory
Then copied these files to that directory
   /etc/skel/vsite/es/web/error/*

Gerald
----- Original Message ----- 
From: Richard Sidlin
To: BlueOnyx General Mailing List
Sent: Tuesday, April 07, 2009 7:35 AM
Subject: [BlueOnyx:01005] Re: .htaccess Error


OK. I did what is below and now getting this error:

[Tue Apr 07 14:31:08 2009] [error] [client 80.46.45.xxx] Options 
FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule 
directive is forbidden: /home/.sites/28/site1/web/
[Tue Apr 07 14:31:08 2009] [error] [client 80.46.45.xxx] File does not 
exist: /home/.sites/28/site1/web/error/noindex.html

Where would I go to amend these errors please?


----- Original Message ----- 
From: Tjerk Hacquebord
To: 'BlueOnyx General Mailing List'
Sent: Tuesday, April 07, 2009 2:08 PM
Subject: [BlueOnyx:01000] Re: .htaccess Error


Did you enable .htaccess files for vhosts?

pico /etc/httpd/conf.d/blueonyx.conf

find:
<Directory /home/.sites/>
Options Indexes FollowSymLinks Includes MultiViews
AllowOverride AuthConfig Indexes Limit

add "All", like this:

<Directory /home/.sites/>
Options Indexes FollowSymLinks Includes MultiViews
AllowOverride AuthConfig Indexes Limit All

save and reload httpd:

/etc/rc.d/init.d/httpd reload




Tjerk Hacquebord
---
tjerk at hqmatics.nl
http://www.hqmatics.nl


HQMatics: Software- en websiteontwikkeling

Van: blueonyx-bounces at blueonyx.it [mailto:blueonyx-bounces at blueonyx.it] 
Namens Richard Sidlin
Verzonden: dinsdag 7 april 2009 14:37
Aan: blueonyx at blueonyx.it
Onderwerp: [BlueOnyx:00997] .htaccess Error

Hi

Wondered if anyone can help. I have a client that has put this .htaccess 
file on the website:

RewriteEngine on
RewriteRule ^news/([0-9]+)/(.+) /news/detail.php?id=$1 [L]

RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
This comes up with an Internal Error 500 when enabled. Is there something 
wrong with the file? It was uploaded using the site admins user.

Thanks


Richard

-- 
This message has been scanned for viruses and
dangerous content by Help Internet MailScanner, and is
believed to be clean.



_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx




_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx


-- 
This message has been scanned for viruses and
dangerous content by Help Internet MailScanner, and is
believed to be clean.



_______________________________________________
Blueonyx mailing list
Blueonyx at blueonyx.it
http://www.blueonyx.it/mailman/listinfo/blueonyx 




More information about the Blueonyx mailing list