![]() |
Apache + Alias directories returning 404
(I've banged my head against this problem for a coupla weeks now, and I'm finally admitting I'm stumped by it...)
I'm running Apache 2 (not sure which exact version, but I'm trying to get that now.) on my Gentoo server, and after a brief period of it being so badly misconfigured that it wouldn't serve documents at all, I have it working again. Except for the Aliased directories, which I just get a 404 on each time I try to go to them. My httpd.conf file is below: Code:
LoadModule actions_module modules/mod_actions.so |
I don't think you want the trailing slash or quotes, so try
Code:
Alias /icons /var/www/localhost/iconsCode:
Alias /icons/ "/var/www/localhost/icons" |
Hmm...
changed the Alias lines like you suggested, then restarted Apache. Unfortunately, this seems to have had no effect. :( Code:
Alias /icons /var/www/localhost/icons |
Do you know if the mod_alias test is being triggered?
Can you navigate to file://var/www/localhost/icons/index.html (subsititute a file that's there)? Are you trying to navigate to httpd://localhost/blog/index.html or just httpd://localhost/blog? I don't see a DirectoryIndex entry anywhere |
[solved: Pebkac]
> Do you know if the mod_alias test is being triggered?
Not a clue, I'm afraid. > Can you navigate to file://var/www/localhost/icons/index.html (subsititute a file that's there)? I can, and I can view the file > Are you trying to navigate to httpd://localhost/blog/index.html or just > httpd://localhost/blog? I don't see a DirectoryIndex entry anywhere I was just trying to navigate to 'http://localhost/blog/', but I have tried 'http://localhost/blog/index.php' with the same result (404.) Adding a DirectoryIndex did not help either. :( EDIT: okay, I found why it didn't work, and now I feel really stupid. Code:
LoadModule alias_module modules/mod_alias.soI now present myself for ritual humiliation, as I deserve. :P |
No - it's too easy to miss something that you later think is obvious - that's why I asked you the trigger question. It's too easy to see what you expect when you go over your own work (try proofreading something you've written - then give it to a friend/partner and see how many mistakes they find!)
|
| All times are GMT -5. The time now is 04:20 AM. |