Hallo alle zusammen !
Ich hoffe Ihr könnt mir bei meinem Problem behilflich sein. Ich versuche schon seit einiger Zeit Drupal auf meinem Rootserver zu installieren.
Und ich bekomme jedesmal wenn ich die .htaccess datei im Drupalverzeichniss lasse den berüchtigten Server 500 Fehler. Ist die Datei gelöscht- kann ich die Installation von Drupal vornehmen.
Aber ich kann keine suchmaschinenfreundlichen Urls einrichten. Das auskommentieren der .htaccess datei hat mich auch leider nicht weiter erleuchtet. Deshalb hab ich mir mal die Freiheit genommen und euch
mal die .htaccess datei ; die Confixx_vhost.conf und die default-server.conf datei hiereingestellt.
Die Befehle zum umschreiben der confixx_vhost.conf bewerkstellige ich über das http special Fenster der Confixxsoftware des Rootservers.
Was ich erreichen möchte ist das ich Drupal installieren kann und das mit suchmaschinenfreundlichen Urls.
.Htacessdatei:
confixx_vhost.conf
Default vhost.conf datei
*Die Ipadressen sind selbstverständlich geändert worden.
Ich hoffe Ihr könnt mir bei meinem Problem behilflich sein. Ich versuche schon seit einiger Zeit Drupal auf meinem Rootserver zu installieren.
Und ich bekomme jedesmal wenn ich die .htaccess datei im Drupalverzeichniss lasse den berüchtigten Server 500 Fehler. Ist die Datei gelöscht- kann ich die Installation von Drupal vornehmen.
Aber ich kann keine suchmaschinenfreundlichen Urls einrichten. Das auskommentieren der .htaccess datei hat mich auch leider nicht weiter erleuchtet. Deshalb hab ich mir mal die Freiheit genommen und euch
mal die .htaccess datei ; die Confixx_vhost.conf und die default-server.conf datei hiereingestellt.
Die Befehle zum umschreiben der confixx_vhost.conf bewerkstellige ich über das http special Fenster der Confixxsoftware des Rootservers.
Was ich erreichen möchte ist das ich Drupal installieren kann und das mit suchmaschinenfreundlichen Urls.
.Htacessdatei:
Code:
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1.
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
</IfModule>
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# If your site can be accessed both with and without the 'www.' prefix, you
# can use one of the following settings to redirect users to your preferred
# URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
#
# To redirect all users to access the site WITH the 'www.' prefix,
# ([URL="http://example.com/"]Example Web Page[/URL]... will be redirected to [URL="http://www.example.com/"]Example Web Page[/URL]...)
# adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
#
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# ([URL="http://www.example.com/"]Example Web Page[/URL]... will be redirected to [URL="http://example.com/"]Example Web Page[/URL]...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at [URL]http://example.com/drupal[/URL] uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at [URL="http://example.com/"]Example Web Page[/URL],
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
Code:
#### CONFIXX APACHE VHOST FILE ####
### created Sun Jan 27 01:18:01 2008 ###
NameVirtualHost 95.35.112.41:30
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /srv/www/empty
UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" confixx
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" confixx2
CustomLog |/usr/local/confixx/pipelog.pl confixx
<Directory "/srv/www">
<Files ~ "^\.ht">
deny from all
</Files>
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>
<Directory "/srv/www/web1/html">
Options +ExecCGI +Indexes
</Directory>
<VirtualHost 95.35.112.41:30
ServerName 95.35.112.41
DocumentRoot /srv/www/confixx/html/gesperrt
</VirtualHost>
<VirtualHost 95.35.112.41:30
ServerName ***************.de
ServerAlias [URL="http://www.*************.de"]www.*************.de[/URL]
DocumentRoot /srv/www/web1/html/+++++++++++++/drupal
SuexecUserGroup web1 ftponly
ScriptAlias /cgi-bin/ /srv/www/web1/html/cgi-bin/
php_admin_value open_basedir /srv/www/web1/:/srv/www/htdocs/phpMyAdmin/:/srv/www/htdocs/confixx/html/gesperrt/
php_admin_value upload_tmp_dir /srv/www/web1/phptmp/
</VirtualHost>
<VirtualHost 95.35.112.41:30
ServerName *****************.de
ServerAlias Geht euch garnichts an
DocumentRoot /srv/www/web1/html
SuexecUserGroup web1 ftponly
ScriptAlias /cgi-bin/ /srv/www/web1/html/cgi-bin/
php_admin_value open_basedir /srv/www/web1/:/srv/www/htdocs/phpMyAdmin/:/srv/www/htdocs/confixx/html/gesperrt/
php_admin_value upload_tmp_dir /srv/www/web1/phptmp/
</VirtualHost>
Code:
#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
#
DocumentRoot "/srv/www"
#
# Configure the DocumentRoot
#
<Directory "/srv/www">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [URL="http://httpd.apache.org/docs-2.0/mod/core.html#options"]core - Apache HTTP Server[/URL]
# for more information.
Options None
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
# Aliases: aliases can be added as needed (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings. If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot simply be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
UserDir public_html
# The actual configuration of the directory is in
# /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
# You can, however, change the ~ if you find it awkward, by mapping e.g.
# [URL]http://www.example.com/users/karl-heinz/[/URL] --> /home/karl-heinz/public_html/
#AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
</IfModule>
# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
Include /etc/apache2/conf.d/*.conf
# The manual... if it is installed ('?' means it won't complain)
Include /etc/apache2/conf.d/apache2-manual?conf
Last edited by a moderator: