[SATLUG] Apache 1.3
swinston at trinity.edu
Mon Aug 5 22:19:37 CDT 2002
the httpd.conf file has all the configuration stuff you're gonna
need. It's changed as of Apache 1.3.4 to no longer put new stuff in
access.conf. And if you're not a fan of modules then you're out of luck.
As of Apache 2.0 they're using MPMs (Multi-Processing modules). So
everything has changed. For those who care the reason for the switch is
to support/custimize to more operating systems. The linux default module
is threaded where windoze is mpm_winnt MPM. If you want to keep your old
1.3 configs use prefork MPM.
Anyway here's my answer to your question:
what does your directory premissions look like in httpd.conf?
here is a defualt one that seems to work well for me on my 1.3 system.
Options Indexes FollowSymLinks
AllowOverride ALL #this allows .htaccess overrides in directories
allow from all
Premissions are inherieted from directory to directory. If you like
making a lot of .htaccess files you could change that inherietence option
by simply doing this in place of the above:
Deny from All
Hope that helps... I have a few more ideas but I want to see if the easy
stuff fixes it first ;-)... good luck...
On Mon, 5 Aug 2002, Walt DuBose wrote:
> Ok, thanks so much to Red, Bruce and Jeremy.
> I am using Apache 1.3.
> The first problem is that Apache 1.3 has an httpd.conf and a
> commonhttpd.conf. Most of the "stuff" that I am used to looking at in
> httpd.conf is now in commonhttpd.conf and httpd.conf is loading a bunch
> of modules.
> The second thing I noticed and it went right over my head was that there
> is a /var/www/cgi-bin for "scripts" (I didn't look too closely at the
> sample in there but it might be where the php scripts are kept). And
> there is a directory /var/www/perl where the two samples had .pl
> extensions which muct be where the perl scripts are kept.
> commonhttpd.conf has much of the permissions "allow-deny" permissiona of
> the old httpd.conf.
> So, I have edited my html forms to point to the /var/www/perl directory
> and now they run.
> So the next questions is why am I "forbidden" to the directories under
> /var/www/html? In a specific instance, I have HTML files in
> /var/www/html/test (where my test work is) and the test directory is 755
> and the files in the test directory are 644.
> Note that in the commonhttpd.conf the DocumentRoot is /var/www/html. In
> previous versions of Apache, anything under this directory was
> accessable. Does this area need to be edited? I really don't' want
> everything to be in the /var/www/html directory.
> Any ideas on how to get to directories under /var/www/html?
> Red Lloyd wrote:
> > Just off the top of my head... take a look at the ScriptAlias stanza. Should
> > look something like
> > <<snip>>
> > #
> > # ScriptAlias: This controls which directories contain server scripts.
> > # ScriptAliases are essentially the same as Aliases, except that
> > # documents in the realname directory are treated as applications and
> > # run by the server when requested rather than as documents sent to the
> > client.
> > # The same rules about trailing "/" apply to ScriptAlias directives as to
> > # Alias.
> > #
> > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> > #
> > # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> > # CGI directory exists, if you have that configured.
> > #
> > <Directory "/var/www/cgi-bin">
> > AllowOverride None
> > Options None
> > Order allow,deny
> > Allow from all
> > </Directory>
> > <<snip>>
> > You can add multiple stanzas for different directories.
> > > A quick couple of questions for those using newer versions of Apache
> > >
> > > 1) I have a directory /var/www/html/forms. When I try to go to the URL,
> > > I get a FORBIDDEN message. I changed the directory to 777 and still get
> > > the forbidden.
> > >
> > > 2) I put my Perl files in the cgi-bin directory and made the 755 and
> > > get a FORBIDDEN message...I am forbidden access to that directory.
> > >
> > > Is there something in the /etc/httpd/conf/httpd.conf that I have to
> > > change or something else?
> > >
> > > Thanks,
> > >
> > > Walt
> > > _______________________________________________
> > > Satlug mailing list
> > > Satlug at satlug.org
> > > http://alamo.satlug.org/mailman/listinfo/satlug
> > _____
> > Be nice to geeks. Chances are you'll end up working for one.
> > _______________________________________________
> > Satlug mailing list
> > Satlug at satlug.org
> > http://alamo.satlug.org/mailman/listinfo/satlug
> Satlug mailing list
> Satlug at satlug.org
Home: (210) 641-0565
Office: (210) 582-5898
Cell: (281) 615-9612
6:35pm up 5 days, 2:19, 2 users, load average: 0.07, 0.03, 0.03
In real love you want the other person's good. In romantic love you
want the other person.
-- Margaret Anderson
More information about the Satlug