httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49787] New: aliases behave as redirects when the trailing / is not added to the url
Date Thu, 19 Aug 2010 20:02:00 GMT

           Summary: aliases behave as redirects when the trailing / is not
                    added to the url
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_alias

Apache build info:

Server Version: Apache/2.2.15 (Unix) PHP/5.2.13
Server Built: Apr 15 2010 21:21:25
Server loaded APR Version: 1.4.2
Compiled with APR Version: 1.4.2
Server loaded APU Version: 1.3.9
Compiled with APU Version: 1.3.9
Module Magic Number: 20051115:24
Timeouts: connection: 300    keep-alive: 5
MPM Name: Prefork
MPM Information: Max Daemons: 100 Threaded: no Forked: yes
Server Architecture: 64-bit
Server Root: /vol/prod/webpool1/apache2
Config File: /vol/prod/webpool1/apache2/conf/httpd.conf
Server Built With: -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE
-D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D
HTTPD_ROOT="/vol/prod/webpool1/apache2" -D
SUEXEC_BIN="/vol/prod/webpool1/apache2/bin/suexec" -D
DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D

vhost configuration:

<VirtualHost *:80>
    ServerName internal-app-name-prod.mydomain.tld
    ServerAlias external-app-name.mydomain.tld
    DocumentRoot /some/path
    <Directory /some/path
    Options FollowSymLinks -MultiViews
        AllowOverride None
        Order Allow,Deny
        Allow from all
        DirectoryIndex index.php
    Alias /myalias /other/path/timeline
    <Directory /other/path/timeline
        Options -MultiViews FollowSymLinks
        DirectoryIndex index.php
        AllowOverride None
        Order Allow,Deny
        Allow from all

If we navigate to http://ServerAlias/myalias the web server
will return an immediate 301 hard redirect to http://ServerName/myalias.

If we navigate to http://ServerAlias/myalias/ the web server
will return with the DirectoryIndex.  Thus, it works correctly if the user
types puts the final slash.

I have a similar configuration and results that are replicated in a number of
different web sites.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message