Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get .htaccess working
#1
hi,
i´ve a problem with .htaccess files to get working

mod_rewrite is enabled but if i set a .htaccess file on a directory

.htaccess-content:
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

or just:
Options All -Indexes
Options +FollowSymLinks

i get a internal server error

the content of apachehcp.conf is:
<VirtualHost *>
ServerName domain.com
ServerAlias www.domain.com
UseCanonicalName Off
DocumentRoot /var/www/vhosts/****/domain.com/httpdocs
CustomLog /var/www/vhosts/oldswede/oldswe.de/logs/access_log Common
CustomLog /var/log/apache_common_access_log Common

</VirtualHost>

the content from apache2/sites-enabled/000-default is:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride ALL
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>



do i miss something?


thank you

Restored from old drupal forum, for user uid:133 username:Cool
You may reset your password to access your new account here.
Reply
#2
i tested same,

on apache error logs,
tail -f /var/log/apache2/error.log

i got this:
[Thu Mar 27 22:47:06 2008] [alert] [client 85.98.13.196] /var/www/vhosts/realdemo/realdemo.net/httpdocs/.htaccess: Option Indexes not allowed here

i think this means that you cannot use that "option indexes" in .htaccess here.
it may be places somewhere in apache config.. this may be a feature of apache...

But unfortunately, ehcp does not support yet for custom dns and custom http in an easy way.. you have to figure it out someway,

you may either change /var/www/vhosts/ehcp/apachetemplate , which is used by all domains, or tweak code to do it for only your domain... or you will wait for ehcp that supports custom domain, custom http




instead of your directives, i put:
Allow from 10.1.2.3
Deny from 0.0.0.0/0.0.0.0


then, no other error occured,
only:
[Thu Mar 27 22:54:28 2008] [error] [client 85.98.13.196] client denied by server configuration: /var/www/vhosts/realdemo/realdemo.net/httpdocs/

which is normal.

i used this tutorial for .htaccess:
http://www.apachelounge.com/forum/viewtopic.php?p=6901
or:
http://www.google.com.tr/search?q=apache2+.htaccess+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a


Finally, .htaccess seems to be working with ehcp..

Anyway, congratulations for you used/tried ehcp.
i will anyway, all the time help you.... i will try to answer most of your requests...

Next goal for ehcp may be custom dns, custom apache... last time, with ver 0.25 i developed backup/restore.... Smile)

you may contact me at info@ehcp.net, and email/msn: ehcpdeveloper@iyibirisi.com


have nice days


see you.

Restored from old drupal forum, for user uid:133 username:Cool
You may reset your password to access your new account here.
Reply
#3
ok.
thank you!

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping