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

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

 



On Sat, Mar 14, 2009 at 6:07 AM, Justin Pasher
<justinp@xxxxxxxxxxxxxxxxxxx> wrote:
> Tz-Huan Huang wrote:
>>>
>>> 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?
>>>
>>
>> Yes. I find that this might be not related to autofs --
>> while I have connected to the server via ssh and pwd is $HOME
>> (so my $HOME is mounted), I might still get 404 when visit my homepage.
>>
>
> Check the Apache error log to be sure that the file it's actually trying to
> load is the exact path you are expecting. Obviously if the Apache error log
> indicates it's trying to load a different file than you expect, then the
> problem lies elsewhere. Try doing an "ls /full/path/in/error/log" to see if
> the system itself shows the file.
>
> Since I personally have not experienced this problem with autofs, I can't
> think of much else to look at.

Hi,

Think you very much, your advice is so helpful.
The log is like this:

access.log

58.114.198.68 - - [11/Mar/2009:10:30:02 +0800] "GET
/~linkh/demo-oxq/query.php HTTP/1.1" 404 278 "-" "Mozilla/4.0
(compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
58.114.198.68 - - [11/Mar/2009:10:30:20 +0800] "GET
/~linkh/demo-oxq/query.php HTTP/1.1" 200 317 "-" "Mozilla/4.0
(compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

error.log

[Wed Mar 11 10:30:02 2009] [error] [client 58.114.198.68] File does
not exist: /var/www/~linkh


When I visited the /~linkh/... first time, I got 404 error and the error.log
shows apache cannot find /var/www/~linkh, but several seconds later
I visited the same url again I got 200 and there is no error in error.log.

Maybe there is something wrong in my apache configurations?
Thank you very much.

Regrads,
Tz-Huan Huang

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