You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/08/19 22:02:00 UTC

DO NOT REPLY [Bug 49787] New: aliases behave as redirects when the trailing / is not added to the url

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


DO NOT REPLY [Bug 49787] aliases behave as redirects when the trailing / is not added to the url

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49787

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Nick Kew <ni...@webthing.com> 2010-08-19 16:36:45 EDT ---
Please use a user support forum such as the users mailinglist for help with
configuration.

-- 
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


DO NOT REPLY [Bug 49787] aliases behave as redirects when the trailing / is not added to the url

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49787

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Eric Covener <co...@gmail.com> 2010-08-19 22:00:25 EDT ---
http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryslash

Config here works as expected when the target of alias is a file [no redirect]
or a directory [redirect to add trailing slash].  Further discussion on users
discussion list.  You'll probably want verbatim requests/responses there.

-- 
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


DO NOT REPLY [Bug 49787] aliases behave as redirects when the trailing / is not added to the url

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49787

Travis Sidelinger <tr...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #3 from Travis Sidelinger <tr...@gmail.com> 2010-08-19 21:31:23 EDT ---
This issue is not resolved.

-- 
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


DO NOT REPLY [Bug 49787] aliases behave as redirects when the trailing / is not added to the url

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49787

--- Comment #2 from Travis Sidelinger <tr...@gmail.com> 2010-08-19 21:30:52 EDT ---
(In reply to comment #1)
> Please use a user support forum such as the users mailinglist for help with
> configuration.

If I thought this was configuration issue, then I would have.  If you feel it
is a configuration issue, then please share some details.

-- 
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