Jerry Ford | 1 Jan 2003 01:24
Picon

userdir doesn't work

I can't get userdir to work on  a localhost install of Apache 1.3.27. 
 I'm using the same directives in httpd.conf that are in my live server 
installation, where it does work. (Red Hat Linux 7.1 on both boxes.) 

Am I overlooking something in the config, or does userdir not work on a 
localhost?

Here's what's in both conf files:

LoadModule userdir_module     libexec/mod_userdir.so     
AddModule mod_userdir.c 

...

<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

...

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
(Continue reading)

Matt Simonsen | 1 Jan 2003 01:30

Apache 2.0 on Linux

I have read that it is best to use the preforking version of Apache 2.0
on Linux until the 2.6 kernel comes out. Is this the accepted Apache
group recommendation, too? 

I couldn't find any definitive statement on this, although I did read
the docs. The best I got was that preforking is the default for Unix. I
assume this is because many Unixes do not do threading well (and I
understand Linux is one).

Also, do any of you have real world benchmarks? I wonder, too, if the
threaded will benefit even more from hyper-threading.

Thanks
Matt

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Rich Bowen | 1 Jan 2003 01:35
Favicon
Gravatar

Re: userdir doesn't work

On Tue, 31 Dec 2002, Jerry Ford wrote:

> I can't get userdir to work on  a localhost install of Apache 1.3.27.
>  I'm using the same directives in httpd.conf that are in my live server
> installation, where it does work. (Red Hat Linux 7.1 on both boxes.)

...

> <Directory /home/*/public_html>
>     AllowOverride FileInfo AuthConfig Limit
>     Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
>     <Limit GET POST OPTIONS PROPFIND>
>         Order allow,deny
>         Allow from all
>     </Limit>
>     <LimitExcept GET POST OPTIONS PROPFIND>
>         Order deny,allow
>         Deny from all
>     </LimitExcept>
> </Directory>
>
> Works when I go to my home page on the live server; but when I try
> httpd://localhost/~jford on the localhost server, I get a Forbidden
> message---don't have permission to access /~jford on this server.

What does the error log say? The Forbidden message is the message that
goes to the browser, but the real error message is in the error log.

Make sure that the permissions on /home/*/public_html are such that the
'nobody' user can read and execute:
(Continue reading)

J. Greenlees | 1 Jan 2003 01:50
Picon
Favicon

Re: Apache 2.0 on Linux


Matt Simonsen wrote:
> I have read that it is best to use the preforking version of Apache 2.0
> on Linux until the 2.6 kernel comes out. Is this the accepted Apache
> group recommendation, too? 
> 
> I couldn't find any definitive statement on this, although I did read
> the docs. The best I got was that preforking is the default for Unix. I
> assume this is because many Unixes do not do threading well (and I
> understand Linux is one).
unix, linux, irix.
which version of linux were you taling about?
red hat, mandrake, debian, free-bsd, gentoo...... ( very long list )
every distribution has customised the *nix kernel to suit themselves.
( mandrake has "supermount" and pcmcia and networking as part of the 
kernel. supermount is an automount for file systems, threading in the 
kernal is being worked on for inclusion in next release [ version 9.1 ] 
I think I saw somewhere ) red hat is closer to a stock unix kernel, as 
are gentoo, debian and free-bsd.

for this type of question linux is not a clear enough description for a 
good answer. to many variables depending on what distribution you have. ;)

> 
> Also, do any of you have real world benchmarks? I wonder, too, if the
> threaded will benefit even more from hyper-threading.
> 
> Thanks
> Matt
> 
(Continue reading)

Jerry Ford | 1 Jan 2003 02:07
Picon

Re: userdir doesn't work

Thanks,  error_log does indeed point out the problem:

"/usr/local/webserver/apache/htdocs/home/~jford/  does not exist"

But why is Apache looking there?  Again, syntax on both boxes is the same:

DocumentRoot "/usr/local/webserver/apache/htdocs"
UserDir public_html
<Directory /home/*/public_html>
    ...
</Directory>

On one it works and on the other it doesn't.

Jerry

Rich Bowen wrote:

 >On Tue, 31 Dec 2002, Jerry Ford wrote:
 >
 >
 >
 >>I can't get userdir to work on  a localhost install of Apache 1.3.27.
 >> I'm using the same directives in httpd.conf that are in my live server
 >>installation, where it does work. (Red Hat Linux 7.1 on both boxes.)
 >>
 >>
 >
 >...
 >
(Continue reading)

Darryl Luff | 1 Jan 2003 04:45
Picon

How to access META data from a CGI script?

Hi, I'm using <META NAME="Keywords"... in each web page, and want a perl 
CGI included from each page to have access to the contents of the 
"Keywords" data.

I couldn't see how to access the META data directly from the CGI, so I 
tried setting the data in a variable, and using the variable to set the 
META data and to pass the value to the CGI:

...
<!--#set var="keys" value="..." -->
<META NAME=Keywords CONTENT="${keys}">
...
</HEAD>
<BODY>
...
<!--#include virtual="/cgi-bin/goog.pl?${keys}" -->
</BODY>

This works fine for the CGI, but the meta data still shows up in the 
browser as:

<meta NAME=Keywords CONTENT="${keys}">

ie. The 'keys' variable isn't expanded in the 'meta' header.

Any suggestions for a better/working way to do this besides entering the 
data twice in each page?

Server is apache 1.3.

(Continue reading)

Jurgen | 1 Jan 2003 05:08

Re: How to access META data from a CGI script?

Hi,

how about SSI? Check out the XBitHack directive to save yourself some work.

Jurgen

On Wed, 01 Jan 2003 14:45:31 +1100
Darryl Luff <darryl <at> snakegully.nu> wrote:

> Hi, I'm using <META NAME="Keywords"... in each web page, and want a perl 
> CGI included from each page to have access to the contents of the 
> "Keywords" data.
> 
> I couldn't see how to access the META data directly from the CGI, so I 
> tried setting the data in a variable, and using the variable to set the 
> META data and to pass the value to the CGI:
> 
> ...
> <!--#set var="keys" value="..." -->
> <META NAME=Keywords CONTENT="${keys}">
> ...
> </HEAD>
> <BODY>
> ...
> <!--#include virtual="/cgi-bin/goog.pl?${keys}" -->
> </BODY>
> 
> This works fine for the CGI, but the meta data still shows up in the 
> browser as:
> 
(Continue reading)

Zac Stevens | 1 Jan 2003 05:07
Gravatar

Re: How to access META data from a CGI script?

Hi Darryl,

On Wed, Jan 01, 2003 at 02:45:31PM +1100, Darryl Luff wrote:
> This works fine for the CGI, but the meta data still shows up in the 
> browser as:
> 
> <meta NAME=Keywords CONTENT="${keys}">

That's because you haven't used an SSI directive there to allow for
interpolation.  Try something like:

<meta NAME=Keywords CONTENT="<--#echo var="keys" -->">

Untested, but that's more or less what you're looking for.

Cheers,

Zac

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Gary Turner | 1 Jan 2003 05:26
Picon
Favicon

Re: Totally new

William Martin wrote:

>Hi folks,
>
>I am new to the world of http server. I have played with it some in the past
>but have always ended up being frustrated. I have a question that I really
>need some help on. My home computer with Windows 2000 Pro is connected to a
>cable modem as well as two other computers.  The cable is route to a Terayon
>modem and then from there,  it's routed to the Ethernet Cable/DSL router on
>to these three computers. Is there any way that I can set it up to allow
>users from Internet to view the website on my home computer?  Any help would
>be greatly appreciated. Thanks!

First, when starting a new question/thread, don't 'reply'.  Instead,
start a new message (you are buried in the thread you replied to).

Second, the question is kinda open-ended--see
http://www.tuxedo.org/~esr/faqs/smart-questions.html

Third, the short answer is yes :)

You don't tell us a lot, but we can guess that the router performs
network address translation.  In that case, you need to set rules on the
router to forward port 80 requests to the proper machine on the LAN.
You'll need to RTFM on your router.

Do you have a registered domain name?  A fixed IP addy?  Using a dynamic
dns?  In other words, how does anyone reach you?
--
gt                  kk5st <at> sbcglobal.net
(Continue reading)

Gary Turner | 1 Jan 2003 05:32
Picon
Favicon

Re: How to log the actual IP address of the machine accessing the website

Chris Taylor wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>No, if the machine accessing the site is behind some kind of NAT
>gateway, it will not be possible to log the IP of the originating
>machine, as it's not sent in any way with the request.
>
In addition, any proxy servers will also mask the original IP.  Only the
last proxy/gateway is known to your server.
--
gt                  kk5st <at> sbcglobal.net
 If someone tells you---
 "I have a sense of humor, but that's not funny." 
                                  ---they don't.

---------------------------------------------------------------------
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 <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org


Gmane