redirect

Discussion in 'Installation/Configuration' started by wieserdk, Jun 16, 2009.

  1. wieserdk

    wieserdk New Member

    Hi,

    I have redirect on my server

    here is vhost file:
    <Directory /var/www/domain.dk>
    AllowOverride None
    Order Deny,Allow
    Deny from all
    </Directory>

    <VirtualHost 10.10.0.102:80>
    DocumentRoot /var/www/domain.dk/web

    ServerName domain.dk
    ServerAlias www.domain.dk
    ServerAdmin [email protected]

    ErrorLog /var/log/ispconfig/httpd/domain.dk/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html

    <Directory /var/www/domain.dk/web>
    Options FollowSymLinks
    # AllowOverride Indexes AuthConfig Limit
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <Directory /var/www/clients/client8/web241/web>
    Options FollowSymLinks
    AllowOverride Indexes AuthConfig Limit
    Order allow,deny
    Allow from all
    </Directory>
    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@cen$
    php_admin_value upload_tmp_dir /var/www/clients/client8/web241/tmp
    php_admin_value session.save_path /var/www/clients/client8/web241/tmp
    #php_admin_value open_basedir /var/www/clients/client8/web241:/usr/share/ph$

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain.dk [NC]
    RewriteRule ^/(.*)$ /public/$1
    RewriteCond %{HTTP_HOST} ^www.domain.dk [NC]
    RewriteRule ^/(.*)$ /public/$1
    </VirtualHost>




    When I'm trying to go to domain.dk/admin I have:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] 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.
    Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g Server at domain.dk Port 80



    And in error log:
    [Tue Jun 16 11:15:54 2009] [error] [client x.x.x.56] Request exceeded the limit of 10 internal redirects due to probable configuration error.
    Use 'LimitInternalRecursion' to increase the limit if necessary.
    Use 'LogLevel debug' to get a backtrace.


    What can it be?
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Try setting the type to "L".
     
  3. wieserdk

    wieserdk New Member

    Hi,

    Unfortunately, the same situation.

    Michael
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Make sure that you do not have any additional .htaccess files in the sites or one of its subdirectories that contain anay apache rwrite rules.
     

Share This Page