as best i understand
your user pages have nothing to do with your virtual hosts
you can configure them separately
<VirtualHost xx.xx.xx.xx>
ServerName www.mydomain.com
ServerAlias mydomain.com
ServerAdmin [EMAIL PROTECTED]
ScriptAlias /cgi-bin/ "/home/username/cgi-bin/"
DocumentRoot /home/username/public_html
...
</VirtualHost>
the only flaw with this, (and correct me if i'm wrong) but doesn't
/home/username/ have to have permission bits of 755?
the way i've found around this is to set up symlinks in the user directories
to 'neutral' areas on the filesystem:
<VirtualHost xx.xx.xx.xx>
ServerName www.mydomain.com
ServerAlias mydomain.com
ServerAdmin [EMAIL PROTECTED]
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/username/"
DocumentRoot /usr/local/apache/htdocs/username
...
</VirtualHost>
$ cd /home/username
$ ln -s /usr/local/apache/htdocs/username htdocs
$ ln -s /usr/local/apache/cgi-bin/username/ cgi-bin
this will maintain the permissions on the user's home directory and keeps
all your cgi scripts under one directory. (makes for easy backups)
_________________________________
daniel a. g. quinn
starving programmer
with our basic freedom in stake, no response can be too extreme. there maybe
some minor and *temporary* abridgments in the traditionally protected areas,
such as speech and association, but only until this crisis is over.
- julie musante, babylon 5 "voices of authority"
----- Original Message -----
From: "Chet Nichols III" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 8:03 PM
Subject: Re: apache cgi-bin problems (clarified!)
Ah..I forgot to mention the key part. I can get/access the cgi-bin through a
~user folder.. the problem occurs with virtual hosts. Example: A user has
their /home/user/public_html folder attached to a virtual host..and when I
go to list their cgi-bin, it says access denied. However, if I do
site.com/~user/cgi-bin, it lets me access it. Oddly enough, its technically
the same exact folder. Is there a different rule with virtual hosts? Talk to
you soon, thanks in advance :)
Chet
----- Original Message -----
From: Hahnel William J
To: '[EMAIL PROTECTED]'
Sent: Tuesday, July 16, 2002 6:08 AM
Subject: RE: apache cgi-bin problems
First, make sure the "public_html" directory has open enough permissions:
drwxr-xr-x 2 username usergroup 4096 Apr 19 16:27 public_html
Next, make sure the public_html directory is defined in Apache to allow
the execution of CGI scripts:
<Directory /home/*/public_html>
order allow,deny
allow from all
Options Indexes FollowSymLinks ExecCGI
IndexOptions FancyIndexing NameWidth=* SuppressDescription
</Directory>
Lastly, you may want to set up aliases for each user:
ScriptAlias /cgi-bin/username "/home/username/public_html/"
Hope this helps!
-----Original Message-----
From: Chet Nichols III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 12:50 AM
To: [EMAIL PROTECTED]
Subject: apache cgi-bin problems
Alright here goes..
I'm trying to set it up so each user can have a working cgi-bin folder
in their public_html folder. I added the AddHandler thing to allow .cgi as
cgi-script or whatever it was, but every time I try and run a script, it
says it doesn't exist, and then it says the cgi-bin folder doesn't have
permission to be viewed, but it does! However, users can run cgi scripts
OUTSIDE of the cgi-bin folder. So what's up with that? I've been messing
around for a weekend now, and nothing I've read seems to have helped. Thanks
in advance for the response, talk to you soon,
Chet
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list