Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Aliases work, but only with the ending "/" |
|
Author |
|
OldManRiver
Joined: 21 Jun 2006 Posts: 21
|
Posted: Wed 10 Jun '15 22:44 Post subject: Aliases work, but only with the ending "/" |
|
|
Was working on my aliases and now any major page, with index.php or index.html crashes saying:
"The page isn't redirecting properly"
This effects:
* localhost,
* phpmyadmin,
* Google,
* etc.
Do not see any errors in the logs, so wonder what is going on?
Running Kubuntu 14.04 LTS on an Acer Aspire 7739Z
Posted the 000-default.conf at:
http://pastebin.com/Ee5hG7NJ
All aliases work, but only with the ending "/" as in:
localhost/ads Does not work
localhost/ads/ Works
Supposed to work either way. Not sure what apache setting is either missing or wrong.
All help appreciated!
Thnx!
OMR |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 11 Jun '15 0:32 Post subject: Re: Weird Problem |
|
|
OldManRiver wrote: | Supposed to work either way. Not sure what apache setting is either missing or wrong |
No it's not always supposed to work either way, on one very specific case will it work either way.[1]
Look at the docs http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias specifically beginning at "Note that if you include a trailing /" and the next part right under the example.
Code: | left side right side
Alias /something /path/to/something <- no trailing /s on both sides[1]
Alias /otherthing/ /path/to/otherthing/ <- trailing /s on both sides |
Now look at yours; Code: | Alias /files "/home/files/" | Do both sides have either a trailing slash, none, or one side does not yet the other side does? They have either have trailing slashes on both side or not on both side, no mixing. |
|
Back to top |
|
|
|
|
|
|