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: Can't get simple alias to work |
|
Author |
|
Fraoch
Joined: 18 Jun 2014 Posts: 2 Location: Cambridge, Ontario, Canada
|
Posted: Fri 25 Jul '14 16:10 Post subject: Can't get simple alias to work |
|
|
Hello:
I'm using Apache 2.4.7 on Linux Mint 17.
Apache is currently working fine using an alias for one webserver, weewx. I had a heck of a time configuring the alias though, most configurations would result in a 404 error.
I'm trying to get it working with another webserver, IOG. And I'm again getting 404 errors...
Currently my IOG.conf file looks like this:
Code: | Alias /IOG /home/Storage/iog
<Directory /home/Storage/iog>
Options Indexes
AllowOverride None
Require all granted
</Directory> |
/home/Storage/iog is good, it's the exact path and is readable/writable by all users.
Options Indexes is included because IOG does not generate an index.html.
AllowOverride None is included because I'm not using .htaccess files, and because it worked for the weewx configuration file.
Require all granted is used because I'm not serving this external to my LAN and would like all LAN machines to have access.
My (working) weewx configuration file:
Code: | Alias /weewx/ "/home/Storage/weewx/"
<Directory "/home/Storage/weewx/">
Options Indexes Includes FollowSymlinks
AllowOverride None
Require all granted
</Directory> |
Of course I tried that first, modifying the paths to IOG, and got a 404 error.
I make sure to reload Apache each time I make a change to the configuration file.
Any tips/pointers?
Thank you! |
|
Back to top |
|
AdrianK_IT
Joined: 30 May 2013 Posts: 34 Location: Scottish Borders, UK
|
Posted: Mon 28 Jul '14 20:38 Post subject: |
|
|
One problem might be, that aliases are case sensitive. Should be:
Alias /iog /home/Storage/iog
if the web address is http://www.dynw.com/iog/ |
|
Back to top |
|
Fraoch
Joined: 18 Jun 2014 Posts: 2 Location: Cambridge, Ontario, Canada
|
Posted: Mon 28 Jul '14 20:49 Post subject: |
|
|
Thanks for the reply.
There's something weird going on...it suddenly just worked. I didn't restart or anything, it suddenly just started working as expected. Weird.
This was a lot like my other alias where I tried everything and nothing worked, then suddenly, on its own, it just started working.
I suspect there's some other service (besides Apache) that needed to restart, or my browser cache needs to expire or something. I would say I just needed to restart my browser and/or clear cache, but my other LAN devices couldn't load it until now either.
Oh well - at least it's working, I'm just not sure why.
Thanks. |
|
Back to top |
|
|
|
|
|
|