Re: 404 when first visit if userdir is mounted using autofs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tz-Huan Huang wrote:
Hi,

In our www server the /home/* is mounted automatically
using autofs.

When visiting a user's homepage via
http://hostname/~user first time, the httpd says
``404 not found'', but after reloading page several times
all thing works.

Is there any way to avoid this annoying behavior but still
using autofs? Thank you very much.

I use autofs and LDAP myself to mount home directories, and I've never had any problems with it, so I can't offer a direct solution. However, I can offer some suggestions.

1) Do you ever have trouble doing an "ls /home/username" on a directory that is not mounted? Does it properly mount the directory and give you a directory listing?

2) If you request the http://hostname/~username from a browser, get a 404 error, then do an "ls /home", do you see the "username" directory mounted?

3) After you successfully pull http://hostname/~username, unmount the home directory (umount /home/username), then try your request again to see if it gives out a 404 error again.

4) Try restarting the autofs daemon (you have to make sure no home directories are currently in use to be successful). Sometimes daemons can just act up for no obvious reason.

All in all, signs point more to an autofs problem and not Apache.

--
Justin Pasher

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux