04-14-2023, 10:07 PM
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.
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.