This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: RE: Apache info. request
From: "Russell W. Behne" <russ@behne.stafford.va.us>
Date: Mon, 13 Sep 1999 04:11:53 -0400 (EDT)
Today, Adrian Buxton thusly expounded:
> Kristina,
> The default is /home/httpd/html
> Place your files in here and everything should work..
Bzzzzt... Wrong!
/home/httpd/html is the default for the localhost only. Kristina should
create another directory in /home/httpd/ to hold the pages that will be
uploaded to a remote host, since the anchors in those pages will reference
that domain, not the local domain! They will not be viewable on the
localhost by the general public, but whatever's in /home/httpd/html/ is.
i.e.; /home/httpd/behne is what I use for the pages that I upload
to a server named http://behne.virginia.com, whereas my localhost is
behne.stafford.va.us and its pages are in the default location.
===
Subject: RE: Apache info. request
From: "Greg W" <redhat_list@hotmail.com>
Date: Mon, 13 Sep 1999 10:53:14 GMT
It will depend on her setup and exactly how she wants to setup
Will also depend on whether DNS ect will be setup on the machine, I am not
sure of the version, but I see both as correct :-)
The problem is there are too many options/possible configs !
Probably better practice to create sub directory under a home directory of
either public_html (another popular one is httpd or httpdocs but these
will require further modification of the httpd.conf file in
/etc/httpd/conf/ )
In any case if you use the default RH setup of Apache use public_html for
web pages and cgi-bin for CGI scripts if any
so home directory will look like this if user is kristina
/home/kristina/
/home/kristina/public_html/
/home/kristina/cgi-bin/
Then...
Edit httpd.conf file, only making one change, look for ServerRoot , and
point it to the home directory /home/kristina/public_html/
This will work if using IP or DNS to resolve, will make possible to FTP from
any host allowed.
There are other alternatives as well, such as changing users home directory
to the one used by Apache, if all permissions are set correct, all should
work ok
look through srm.conf and httpd.conf , and maybe access.conf a little
later all in /etc/httpd/conf/ directory , you can learn what the
defaults are from there, this should give you enough info to work from
there.
===
===
Subject: Re: starting and stopping httpd
From: Michael Ghens <michael@spconnect.com>
Date: Mon, 27 Sep 1999 09:05:59 -0700 (PDT)
On Mon, 27 Sep 1999, Meghan Madel wrote:
> Date: Mon, 27 Sep 1999 10:36:53 -0400
> From: Meghan Madel <meghan@server.nsnva.pvt.k12.va.us>
> Subject: starting and stopping httpd
>
> I have made some changes in my
> /etc/httpd/conf/access.conf file and (correct me if I am
> wrong) need to stop and start httpd in order for the
> changes to work. The change was 'ExecCGI'. If I want to
> just restart it the documentation tells me to do this:
>
> kill -HUP 'cat /usr/local/apache/logs/httpd.pid'
>
> well I know that won't work because that does not exist on
> my system in that path. I did a locate on httpd.pid and
> the only place I found it was /var/run/httpd.pid. Is this
> normal or a problem. Please let me know if there is any
> other info. I can give you to help me. Again, I
> appreciate your time and answers.
Well, The location that you mentioned used to be standard since time
whatever.
However, in stock redhat, they decided to change things around.
Pid file: /var/run/httpd.pid
HTDOCS dir: /home/httpd/html
CGI dir: /home/httpd/cgi-bin
Config: /etc/httpd/conf
Logs: /var/log/httpd
You have serveral options
SysV Init route.
Restart
/etc/rc.d/init.d/httpd restart
Stop
/etc/rc.d/init.d/httpd stop
Start
/etc/rc.d/init.d/httpd stop
My favorate for reloading config file is simply:
killall -1 httpd
Or your method
kill -1 `cat /var/run/httpd.pid`
===
Subject: Binary File Search Engines for Apache Web Server?
From: "Jerry Keene" <0791jrk@scseng.com>
Date: Wed, 22 Sep 1999 15:54:37 -0500
Now that I've looked at lots and lots of add-in search engines for
Apache, it almost seems as if there's no search engine that works
with Apache that's capable of indexing a website's word, excel or
other binary file formats?
Of course any site that might want those kinds of files indexed
could publish them as .html files which might in fact be the best
solution by far for lots of reasons.
Therefore, even though such a thing might be in the category of an
elephant foot hatstand, does the thing exist?
I apologize if this is a stupid question.
===
Subject: Re: RPM for Apache 1.3.9
From: Brian Wright <bdw@aturna.com>
Date: Fri, 08 Oct 1999 11:02:53 -0700
Apache 1.3.9 is in the RedHat 6.1 distribution, but if you have RedHat 6
it should work just fine with it. If you're running 5.x, you'll want to
d/l the source RPM and rebuild it. The 6.x packages link against
glibc-2.1.
===
Subject: Apache and Document Root
From: "James Michael Keller" <jmkeller@radix.net>
Date: Sat, 16 Oct 1999 02:15:41 -0400
I'm a bit perplexed with apache at the moment. I'm setting up a test server
one of the file servers I built a while ago ( rh 6.0 . For testing I am
just using some of the studio dept's file space with a copy of our intranet
server's html dir ( it's currently a FreeBSD box that's a pain to keep
updated ) So I've changed the document root to /export/hdc1/httpd/html
this httpd is a copy of the default from /home/httpd ) and all I get is the
/home/httpd/html/index.html default apache file. So I slink the directories
figuring it must have been a hard coded compile time option. Apache
compalines it can't access a symbolic link, server runs as nobody.nobody the
dirs are all root.root 755. follow slinks is on for both the default and
/home/httpd and /export/hdc1/httpd.
But all I get is an access denied message and the httpd.log bit about not
following symbolic links.
Is there anyway to just change the darn document root? I assumed
DocumentRoot in httpd.conf was the ticket.... but perhaps that's just
virtual hosts.
===
Subject: Re: Apache and Document Root
From: "Greg W" <redhat_list@hotmail.com>
Date: Fri, 15 Oct 1999 19:22:23 GMT
Document root is exactly that, so if you change it you will have to have the
html files in there, make sure you have not altered the ServerRoot by
mistake, make sure you did not move files from here....only copy them
You can always set it back to default, and use a virtual directive, there
are samples at the bottom of the httpd.conf file
Either way I would setup a user, and then set the doc root or virt user to
go to this users home dir, then you can FTP your files and permissions etc
will be correct
Each version of Apache is different too... so set it back to original, then
make small changes confirming that each part has worked along the way
===
Subject: Re: Apache and Document Root
From: "James Michael Keller" <jmkeller@radix.net>
Date: Sat, 16 Oct 1999 05:00:29 -0400
Yeah, while tinkering I added the same information in as a virtual host and
it works fine.
I assume now that apache was following
/home/httpd/html--->/export/httpd/html and then realizing it was in /export
and not /home, but even after I set DocumentRoot to /export/httpd/html vs
the symbolic link from the default location it still didn't work - it happly
loaded everything out of /home/httpd/html.
I belive the culprit is probably linuxconf munging something badly, I'll
roll my own config file from scratch and see if things work they way I
expected it to.
When in doubt, blame it on the front ends :)
===
Subject: apache & userdel
From: "Clive Crous" <ccrous@shoprite.co.za>
Date: Thu, 14 Oct 1999 10:11:54 +0200
First off thanks a lot to all those who anwered my previous questions :)
apache:
I have an extreemely simple setup of redhat 6.0 @ home atm.
only 3 users, 1 box, no network
my girlfriend does quite a bit of web design and she asked me to install
apache so that she could "simulate" more accurately an
actuall site etc. no problem.
heres the catch. now, even as root if i do a
http://127.0.0.1/
apache gives me the 404 permission denied thing
how do i setup who has access or not ?
I read through the config files etc all i could find was
</home/httpd>
and i added the "access all" like with some of the other
lines as in the config file but this didn't help.
never used apache , i just dont know.
second problem is in the apache error log, it gives this
"invalid symbolic link /home/httpd" etc
the only related symbolic link that i can see is my home
i have a bit of a wierd setup due to the fact that i'm constantly
swapping hard drives to access certain information
( thus my previous question about networking ;) )
/home -> /linkrelay/home -> /mnt/.mountpoints/hdc2/home
so " /home " == " /mnt/.mountpoints/hdc2/home "
userdel:
recently whenever my girlfriend's user tried to load gimp
the box would hang.
i mean really hang.
no ctrl-atl-esc no ctrl-alt-f? no mouse movement NOTHING
had to use the good old reset button i'd forgotten about
she tells me it also happened sometimes with netscape
aswell
what could cause this ?
what i eventually did was copy all her saved files from her user
did a userdel -r
recreated the user and copied the files back. seems to be working fine now
during this proccess i noticed that all her data files' ownership
was given to "501" i assume this is because linux is attempting
to prevent a scenario where one user is removed , another user
_with_the_same_name_ is added, and is able to access/modify etc
the old user's data.
is there a shortcut or when this happens would i have to tranfer ownership
from "501" ( what is that anyway ??? ) back to the
username again manually
===
Subject: Re: Kinda OT... Apache to ignore our domain when logging hits
From: Alan Mead <adm@ipat.com>
Date: Thu, 09 Dec 1999 16:53:10 -0600
At 09:22 AM 12/10/99 +1100, Dan Horth wrote:
>Hiya - can't find anywhere better to post this... and the redhat list
>has been the speediest turnaround list I've ever been on so forgive
>me for taking liberties with a little OT question :)
>
>Does anyone know how to set up Apache to ignore certain domains when
>logging hits?
>
>basically I'd like to get our server (and all virtual hosts running
>on it which are logging to separate log files) to not log hits from
>*.nitro.com.au
A new apache list started up on moongroup.com. I think you will need to
specify (and possible tinker with) the process being used to log hits. For
example, I wouldn't have Apache fail to log connections from your domain, I
just wouldn't count them in the SSI/CGI/script/whatever that reports hits
by parsing the log.
===
Subject: Re: Kinda OT... Apache to ignore our domain when logging hits
From: Charles Galpin <cgalpin@lighthouse-software.com>
Date: Thu, 9 Dec 1999 20:48:48 -0500 (EST)
usually you would just filter them out with you log analysis software. I
do this with webalizer.
===
Subject: Re: Kinda OT... Apache to ignore our domain when logging hits
From: Alan Mead <adm@ipat.com>
Date: Thu, 09 Dec 1999 16:53:10 -0600
At 09:22 AM 12/10/99 +1100, Dan Horth wrote:
>Hiya - can't find anywhere better to post this... and the redhat list
>has been the speediest turnaround list I've ever been on so forgive
>me for taking liberties with a little OT question :)
>
>Does anyone know how to set up Apache to ignore certain domains when
>logging hits?
>
>basically I'd like to get our server (and all virtual hosts running
>on it which are logging to separate log files) to not log hits from
>*.nitro.com.au
A new apache list started up on moongroup.com. I think you will need to
specify (and possible tinker with) the process being used to log hits. For
example, I wouldn't have Apache fail to log connections from your domain, I
just wouldn't count them in the SSI/CGI/script/whatever that reports hits
by parsing the log.
===
Subject: Re: Kinda OT... Apache to ignore our domain when logging hits
From: Charles Galpin <cgalpin@lighthouse-software.com>
Date: Thu, 9 Dec 1999 20:48:48 -0500 (EST)
usually you would just filter them out with you log analysis software. I
do this with webalizer.
===