View Full Version : problem with htaccess
grofar
10th August 2009, 21:39
[Mon Aug 10 20:19:09 2009] [alert] [client 89.44.185.105] /var/www/web5/web/.htaccess: Options not allowed here
[Mon Aug 10 20:19:09 2009] [alert] [client 89.44.185.105] /var/www/web5/web/.htaccess: Options not allowed here
pls help me !!!
Mark_NL
11th August 2009, 10:33
1. Go to http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride and read that.
2. If you did the above thus understand what you're doing, add the following to this site's apache directive:
<Directory /var/www/web5/web/>
AllowOverride Options
</Directory>
grofar
11th August 2009, 19:46
it's not work :( outher help for this problem ???
_X_
12th August 2009, 01:40
give us something ... what's in htaccess in /var/www/web5/web/
strip out real info like ip or address ...
what linux have you set and what Tutorial did you follow?
nikita
13th August 2009, 08:39
Hello,
First, thanks for ispconfig
I have a similar problem and found no resolution on the forum yet. I have 1 site that is using mod_rewrite. here is the content of .htaccess:
#ErrorDocument 403 /403.php
#ErrorDocument 404 /404.php
RewriteEngine On
##RewriteBase /
RewriteRule ^referinte\/(.*)\-([0-9]*)\.html$ refferences.php?id=$2 [NC,L]
RewriteRule ^articole\/(.*)\-([0-9]*)\.html$ articles.php?id=$2 [NC,L]
RewriteRule ^oferte\/pachet\-life\-fitness\.html$ offers_lifefitness.php [NC,L]
RewriteRule ^oferte\/pachet\-cybex\.html$ offers_cybex.php [NC,L]
RewriteRule ^oferte\/pachet\-startrac\.html$ offers_startrac.php [NC,L]
RewriteRule ^oferte\/pachet\-precor\.html$ offers_precor.php [NC,L]
# Aparate Cardio
RewriteRule ^catalog\/aparate-cardio\/$ catalog.php?sid=1 [NC,L]
RewriteRule ^catalog\/aparate-cardio\/(.*)\-([0-9])\/$ catalog.php?sid=1&cat_id=$2 [NC,L]
# Aparate de Culturism si Fitness
RewriteRule ^catalog\/aparate-culturism-si-fitness\/$ catalog.php?sid=2 [NC,L]
RewriteRule ^catalog\/aparate-culturism-si-fitness\/(.*)\-([0-9]*)/$ catalog.php?sid=2&cat_id=$2 [NC,L]
RewriteRule ^catalog\/aparate-culturism-si-fitness\/(.*)\-([0-9]*)/(.*)\-([0-9]*).html$ catalog.php?sid=2&cat_id=$2&prod_id=$4 [NC,L]
# Bari si gantere
RewriteRule ^catalog/bari-si-gantere/$ catalog.php?sid=3 [NC,L]
RewriteRule ^catalog/bari-si-gantere/(.*)\-([0-9]*)/$ catalog.php?sid=3&cat_id=$2 [NC,L]
# Oferte Speciale
RewriteRule ^catalog/oferte-speciale/$ catalog.php?sid=4 [NC,L]
RewriteRule ^catalog/oferte-speciale/(.*)-([0-9]*)/$ catalog.php?sid=4&cat_id=$2 [NC,L]
RewriteRule ^catalog\/aparate-culturism-si-fitness\/detalii-produs\/(.*)-([0-9]*)\.html$ produse.php?prod_id=$2 [NC,L]
RewriteRule ^despre_noi.html$ about.php [NC,L]
RewriteRule ^galerie.html$ gallery.php [NC,L]
RewriteRule ^galerie\/(.*)\-([0-9]*)\.html$ gallery.php?id=$2 [NC,L]
RewriteRule ^galerie\-sali\-de\-culturism\-si\-fitness\.html$ galleryp.php [NC,L]
RewriteRule ^galerie\-antrenamente\.html$ gallerya.php [NC,L]
RewriteRule ^catalog.html$ catalog.php [NC,L]
RewriteRule ^referinte.html$ refferences.php [NC,L]
RewriteRule ^noutati.html$ articles.php [NC,L]
RewriteRule ^contact.html$ contact.php [NC,L]
RewriteRule ^newsletter$ newsletter.php [NC,L]
RewriteRule ^cauta\/cuvant\/(.*)$ search.php?keywords=$1 [NC,L]
php_value output_handler ob_gzhandler
I have put the directive as specified in the previous post and i still get:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@fitness-shop.ro and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
in the error log i get:
/srv/www/web12/web/.htaccess: php_value not alowed here
i had tried with simpler test .httaccess and i get 404 error
i use ispconfig2 on opensuse 11.1
can you please help me a bit? i'm not that good with html, i'm an admin.
Thank you very much
grofar
13th August 2009, 09:21
ok i use ispconfig 2 linux fedora 11 and tutorial perfect server with fedora 11 :)
the .htaccess in web look likt this
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
it's the joomla htacces and i try to fix the problem and the same problem i have NOT WORK !!!
if i erase Options +FollowSymLinks it's work, in httpd.conf look like this
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
i try with None default and still not work pls help me !
_X_
13th August 2009, 23:27
@ nikita:
obviously
php_value output_handler ob_gzhandler
line is problem. I really don't know what that line does but comment it out with # at beginning and see if that works for you.
the rest of htaccess is just there to create SEF urls
@ grofar
http://www.howtoforge.com/forums/showpost.php?p=170555&postcount=8
this is how to set ISPConfig to work with Joomla 1.0 or 1.5
grofar
14th August 2009, 08:36
tnx _X_ it's wotk with that htacces just i change it ( no change in httpd.conf ) :) tnx again !!!
nikita
14th August 2009, 09:16
@ nikita:
obviously
php_value output_handler ob_gzhandler
line is problem. I really don't know what that line does but comment it out with # at beginning and see if that works for you.
the rest of htaccess is just there to create SEF urls
@ grofar
http://www.howtoforge.com/forums/showpost.php?p=170555&postcount=8
this is how to set ISPConfig to work with Joomla 1.0 or 1.5
Thanks! commenting out the php line solved that error. Actually, after putting the CORRECT directive php doesn't yell error anymore. it just does not work properly.
now the problem is that it doesn't seem to load the pages corectly, and the links are giving 404 file not found.
if you load www.fitness-shop.ro it's obvious that the page does not look corectly.
the directives for the site are:
<Directory /srv/www/web12/web/>
Options FollowSymLinks
AllowOverride All
</Directory>
the efect is the same as if i remove .htaccess
any ideea?
Thank you!
_X_
14th August 2009, 15:58
As far as I can everything works ok.
problems are like here
http://www.fitness-shop.ro/catalog/bari-si-gantere/
or here
http://www.fitness-shop.ro/articole/pe-5-august-se-deschide-prima-sala-de-culturism-si-fitness-dotata-cu-aparate-nautilus-nitro-de-firma-mens-mentis-32.html
where pictures are not displayed.
Dont see any other problems :confused:
nikita
14th August 2009, 18:20
Yes it works like a charm now. I erased the directve and paste it again and it started to work.
Thank you very much for the help!
_X_
15th August 2009, 02:48
Glad I could help :)
nikita
15th August 2009, 03:30
you really did. next week i'll send some money for the project. whish ispconfig 3 was better documented already :)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.