httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=49787

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: travissidelinger@gmail.com


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
Hostname/port: webpool1-prod.cml.lib.oh.us:80
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
APR_USE_SYSVSEM_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D
APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -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
SERVER_CONFIG_FILE="conf/httpd.conf"

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
    </Directory>
    Alias /myalias /other/path/timeline
    <Directory /other/path/timeline
        Options -MultiViews FollowSymLinks
        DirectoryIndex index.php
        AllowOverride None
        Order Allow,Deny
        Allow from all
    </Directory>
</VirtualHost>

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message