"GET /~joeblow HTTP/1.0" 302 -

"GET /~joeblow HTTP/1.0" 302 -

Post by Jeffrey A. Miyar » Sun, 14 Jul 1996 04:00:00



So far I've been unable to get any public_html files displayed using
http://localhost/~joeblow.  Netscape says there's a TCP error and to try
later, and lynx from a remote site says it "Can't access start file
http://myip/~joeblow".  There is no entry in logs/error_log but in
access_log, it says "GET /~joeblow HTTP/1.0" 302 -.

I've tried the following:

lrwxrwxrwx home -> /home (in htdocs)
lrwxrwxrwx joeblow -> /home/joeblow (in htdocs/home/, home not a link)
lrwxrwxrwx public_html -> /home/joeblow/public_html (in htdocs/home/joeblow,
                                                     real dirs again)

Apache runs as nobody, nogroup, started by root, port 80 standalone,
userdir is defined as public_html, and /home all the way to public_html
is chmod 555, but I've also tried 444, 666, and 111, with no success.  

I even have /home in a <Directory> entry, but I'm not so sure that's how
to do it.

What am I missing?  I'm guessing I don't need the links, Apache should
just grab the home dirs out of /etc/passwd, correct?

Oh yeah, /home/joeblow/public_html/index.html does exist also, chmod 555
as well.

Sorry if most of this message was all jumbled together, but I wanted to
make sure I eliminated a good portion of the useless replies.  This
message is useless enough without generating 10 more useless msgs...

Well, thanks for reading this far (both of you).  Reply via email or post
here, whatever, just don't cross post.

 
 
 

"GET /~joeblow HTTP/1.0" 302 -

Post by Jeffrey A. Miyar » Sun, 14 Jul 1996 04:00:00



: So far I've been unable to get any public_html files displayed using
: http://localhost/~joeblow.  Netscape says there's a TCP error and to try
: later, and lynx from a remote site says it "Can't access start file
: http://myip/~joeblow".  There is no entry in logs/error_log but in
: access_log, it says "GET /~joeblow HTTP/1.0" 302 -.

Well, it turns out it will work if I use http://localhost/~joeblow/ (note
the trailing /).  Hmmm...

 
 
 

"GET /~joeblow HTTP/1.0" 302 -

Post by Jeffrey A. Miyar » Sun, 14 Jul 1996 04:00:00



: So far I've been unable to get any public_html files displayed using
: http://localhost/~joeblow.  Netscape says there's a TCP error and to try
: later, and lynx from a remote site says it "Can't access start file
: http://myip/~joeblow".  There is no entry in logs/error_log but in
: access_log, it says "GET /~joeblow HTTP/1.0" 302 -.

I'm not sure what happened to my last message, but it turns out if I
added a trailing / to the username, it worked fine.  It turns out that if
the / is left out, apache doesn't look for index.html (or whatever the
default index should be).  The variable dname should = "/index.html" and
dname should actually be pointing to the 2nd character...

Anyhow, here's my quick and dirty and hardly tested (so don't blame me if
it dumps core eventually) fix:

In the file mod_userdir.c look for the lines:

        if (!strcmp(w, ""))      <--- Should be line 131
          return DECLINED;

Right after that, add:

        if (!strcmp(dname,"")) {
          dname="/index.html";
          dname++;
        }

Like I said, this probably will dump core eventually, so you may want to
look over the code a bit more than I did, or perhaps even find a proper
solution.  Oh yeah, if your directoryindex isn't index.html, but
dummy.html, I think you know what to do.

Sorry if you have more than one default directoryindex (is that
possible?).  This won't work.  Like I said it's a quick and dirty fix
that works the way I want it to do.  I don't encourage you to fix it this
way, I'm only telling you how I changed it.

 
 
 

"GET /~joeblow HTTP/1.0" 302 -

Post by Rob Hoof » Tue, 16 Jul 1996 04:00:00




> : So far I've been unable to get any public_html files displayed using
> : http://localhost/~joeblow.  Netscape says there's a TCP error and to try
> : later, and lynx from a remote site says it "Can't access start file
> : http://myip/~joeblow".  There is no entry in logs/error_log but in
> : access_log, it says "GET /~joeblow HTTP/1.0" 302 -.

> Well, it turns out it will work if I use http://localhost/~joeblow/ (note
> the trailing /).  Hmmm...

Make sure the server knows on which machine it is. The 302 is a redirect,
which will tell the client:

  there is something at "http://localhost/~joeblow" but you have to
  ask for "http://servername/~joeblow/" (with trailing slash) to
  get it.

If servername is set incorrectly in the configuration file, the latter
will make netscape barf.

Rob.

--

==== In need of protein modeling?  http://www.Sander.EMBL-Heidelberg.DE/whatif/
Validation of protein structures?  http://biotech.EMBL-Heidelberg.DE:8400/ ====
================ Long Live Linux!  Free Software Rules The World! =============

 
 
 

1. HTTP/1.0" 304 0 HTTP/1.0 304 Not

modified
Distribution:
Followup-To:
Organization: Open Software Foundation
Keywords:

Hi,

        This might be a clumsy question, but I could not find a better way
to put it. The browser gives me this error once a while, and refuses access
to the a page.

HTTP/1.0" 304 0 HTTP/1.0 304 Not modified Date: Mon, 02 Dec 1996 15:19:22 GMT Server: NCSA/1.4.2

I got around it by modifying the source file and saving a new
copy. Why does this happen at the first place?

Also, anyone know where I could find the complete error code mapping for
HTTPd? Thanks

+***********************************************+
|   James Mak           Open Software Foundation|

|   DCE                 uunet!osf.org!mak       |
|                       617 621 8805            |
|                       617 621 7324 (fax)      |
+***********************************************+

2. Win2000 and OpenLinux2.3 coexist?

3. 302 Response to HTTP/1.0 GET on Cobalt RaQ 3i

4. Virus detection for SOLARIS systems

5. GETSERVBYNAME()????????????????????"""""""""""""

6. EUREKA!!! IT WORKS!!!

7. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

8. Which SQL database has a Perl interface for Linux?

9. use apache proxy to "upgrade" HTTP/1.0 client ?

10. Xlib: extension "RENDER" missing on display "ymserver.mydomain.de:1.0"

11. Type "(", ")" and "{", "}" in X...

12. " No CDDB Entry" "Error Getting CDDB Entry" ???

13. Getting Sendmail to Read "Reply-To" and "Subject" from file