You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marko Asplund <ma...@ixonos.com> on 2008/05/02 12:22:53 UTC
Re: [users@httpd] Cache configuration advice
On Wed, 30 Apr 2008 18:37:35 Joshua Slive wrote:
> > As far as I've understood the below setup would not correctly cache
> > request content when using request parameters (requires Expires header).
> > What would be the best way to fix this?
>
> See the CacheIgnoreQueryString directive.
So, is the only way to get content for both of the below requests cached
correctly to make the backend system set the Expires header and setting
'CacheIgnoreQueryString Off' in httpd.conf?
/listnews?page=1
/listnews?page=2
> > How will the Cache-Control and Expires (ExpiresByType) work together?
>
> The Expires* directives also set max-age on Cache-Control.
Yes, I just tested and it appears to do that.
By the way, I noticed that if no expires header is set by the backend system,
Apache sets the header value based on Last-Modified header and the
CacheLastModifiedFactor directive values.
The calculation is described in CacheLastModifiedFactor directive
documentation but the documentation only talks about the expiry date
calculation and doesn't explicitly state that also the Expires header is set by
mod_cache. Since the current wording could be interpreted to refer only to
local cache internal operation it might be helpful to explicitly mention
that the Expires header will be set.
> Using those directives, you are influencing how down-stream caches
> will behave, not the local cache. The local cache would need to see
> those directives coming from the upstream (if I remember correctly).
I just double checked this and if I set s-maxage in Apache it does appear to
make the response cacheable by the local cache.
> You'll want to use the CacheDefaultExpire directive to control the
> local cache. Unfortunately, I don't think it is possible to set
> different expiration times within the same host, since this directive
> can't be placed in <Directory>/<Location> sections.
Yes, I found this out the hard way :(
Any hope of getting this restriction removed some time in the future?
thanks,
marko
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] RE:How to start different apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Vinay Purohit <Vi...@trianz.com>.
I google it and found :
"Apache can be configured to support multiple virtual hosts either by
running a separate httpd daemon for each hostname(this is what I
required), or by running a single httpd daemon, which supports all the
virtual hosts.
If separate httpd daemons must be run for each host, separate
installations of Apache for each virtual host have to be created. For
each installation, use the Listen directive in the httpd.conf
configuration file to select which IP address or virtual host that
daemon services"
Do I need to have separate installation of apache or copying the conf
folder will do ?
\Vinay
-----Original Message-----
From: Vinay Purohit
Sent: Monday, May 05, 2008 2:24 PM
To: 'users@httpd.apache.org'
Subject: RE: [users@httpd] RE:How to start different apache daemon in
apache 2.2.8 on RHEL 5.1
Thanks Jet !!
I am not using default Apache. I have installed Apache 2.2.8 on RHEL5.1
in /usr/MYAPP/Apa directory. With respect to this path I have modified
the script( script pasted below) but it is not working(so many commands
directories executable not found). I assume there is only one Apache
installation required that will have two different conf directory
(/usr/MYAPP/Apa/conf /usr/MYAPP/Apa/NewConf)exists. Each conf directroy
will have its own httpd.conf/ssl.conf so that I can configure IP based
virtual server. Finally, with these configs, different daemon can be
started and stopped.
Note : I don't want these daemon to start at boot time. Is there
anything wrong in following script provided apache 2.2.8 is installed on
RHEL5.1 in /usr/MYAPP/Apa. I re-state my requirement
I would like to configure IP based virtual server in apache2.2.8 on
RHEL5.1 so that they can be started/stopped as a different daemon
without affecting each other.
runApache.sh
export ORIG_APACHE=Apa
export NEW_APACHE=Apa2
export BINDIR=/usr/sbin
export ETC=/usr/MYAPP
export APPLOG=/home
export VAR=/var
export OLD_CONF=$ETC/$ORIG_APACHE
export NEW_LOG=$APPLOG/$NEW_APACHE
export NEW_CONF=$ETC/$NEW_APACHE
export NEWBINNAME=httpd1
mkdir /home/Apa2
export BINNAME=httpd
l n-s $NEW_LOG $NEW_CONF/logs
ln -s $ETC/$ORIG_APACHE/modules $NEW_CONF/modules ln -s $VAR/run
$NEW_CONF/run # link in a new executable ln -s $BINDIR/$BINNAME
$BINDIR/$NEWBINNAME # copy in the configuration files mkdir
$NEW_CONF/conf cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/ # make
modifications to the configuration files sed -e
"s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place
$NEW_CONF/conf/httpd.conf # copy in the subordinate configuration files
mkdir $NEW_CONF/conf.d cp -Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/ # add
2 lines into /etc/sysconfig/$NEW_APACHE echo
"HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE echo
"OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE # Copy
the rc start script cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot
chkconfig --add $NEW_APACHE chkconfig $NEW_APACHE on
\Vinay
-----Original Message-----
From: Wilda, Jet [mailto:Jet.Wilda@ChasePaymentech.com]
Sent: Friday, May 02, 2008 11:40 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
I'm not familiar with the Windows side, however it is effectively
separate daemon processes that can be stopped and started independently.
Remember that you need to over ride the /etc/init.d/functions killproc
if you use symlinks for the binaries (there are pros and cons to this).
Here is the code we use in our /etc/init.d/$NEW_APACHE scripts to make
sure it doesn't kill all the Apache instances running.
# A function to stop a program.
killproc() {
RC=0; delay=3
# Test syntax.
if [ "$#" -eq 0 ]; then
echo $"Usage: killproc [ -d delay] {program} [signal]"
return 1
fi
if [ "$1" = "-d" ]; then
delay=$2
shift 2
fi
notset=0
# check for second arg to be kill level
if [ -n "$2" ]; then
killlevel=$2
else
notset=1
killlevel="-9"
fi
# Save basename.
base=${1##*/}
# Find pid.
pid=
if [ -f $pidfile ]; then
local line p
read line < $pidfile
for p in $line ; do
[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] &&
pid="$pid $p"
done
fi
# Kill it.
if [ -n "${pid:-}" ] ; then
[ "$BOOTUP" = "verbose" -a -z "$LSB" ] && echo -n "$base
"
if [ "$notset" -eq "1" ] ; then
if checkpid $pid 2>&1; then
# TERM first, then KILL if not dead
kill -TERM $pid >/dev/null 2>&1
usleep 100000
if checkpid $pid && sleep 1 &&
checkpid $pid && sleep $delay &&
checkpid $pid ; then
kill -KILL $pid >/dev/null 2>&1
usleep 100000
fi
fi
checkpid $pid
RC=$?
NUM=`ps -ef | grep $prog | grep -v "grep" | grep
-v "service" | grep -v "init.d" | wc -l`
if [ $NUM -gt 0 ]; then
failure $" shutdown"
echo
ps -ef | grep $prog | grep -v "grep" |
grep -v "service" | grep -v "init.d"
echo
else
[ "$RC" -eq 0 ] && failure $"$base
shutdown" || success $"$base shutdown"
fi
[ "$RC" -eq 0 ] && failure $"$base shutdown" ||
success $"$base shutdown"
RC=$((! $RC))
# use specified level only
else
if checkpid $pid; then
kill $killlevel $pid >/dev/null 2>&1
RC=$?
[ "$RC" -eq 0 ] && success $"$base
$killlevel" || failure $"$base $killlevel"
fi
fi
else
failure $"$base shutdown"
RC=1
fi
# Remove pid file if any.
if [ "$notset" = "1" ]; then
rm -f $pidfile
fi
return $RC
}
________________________________________
From: Vinay Purohit [mailto:Vinay.Purohit@trianz.com]
Sent: Friday, May 02, 2008 1:58 PM
To: users@httpd.apache.org; users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
Thanks Jet !! Is it effectively different apache virtual running as a
different daemon which can be started and stoped without affecting
others ? Is it same as running IP based virtual server (apache3.3.8
service/daemon) on windows ?
\Vinay
________________________________________
From: Wilda, Jet [mailto:Jet.Wilda@ChasePaymentech.com]
Sent: Fri 5/2/2008 11:15 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1 Hi,
We run multiple Apache httpd instances on Red hat all with
different server roots and here is how we do it (I hope this is what
your asking,-). Below are the steps we do to create a new server root
and binary (or symlink of a new binary to the old). $ORIG_APACHE=httpd
and $NEW_APACHE=whatever_you_want and $BINDIR=/usr/sbin.
OLD_CONF=$ETC/$ORIG_APACHE
NEW_LOG=$APPLOG/$NEW_APACHE
NEW_CONF=$ETC/$NEW_APACHE
# create the new directory for the configuration files mkdir
$ETC/$NEW_APACHE
# create a logging directory
mkdir $NEW_LOG
# OK, now build out the configuration directory ln -s $NEW_LOG
$NEW_CONF/logs ln -s /usr/lib/$ORIG_APACHE/modules $NEW_CONF/modules ln
-s $VAR/run $NEW_CONF/run
# link in a new executable
ln -s $BINDIR/$BINNAME $BINDIR/$NEWBINNAME
# copy in the configuration files
mkdir $NEW_CONF/conf
cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/
# make modifications to the configuration files sed -e
"s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place
$NEW_CONF/conf/httpd.conf
# copy in the subordinate configuration files mkdir $NEW_CONF/conf.d cp
-Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/
# add 2 lines into /etc/sysconfig/$NEW_APACHE echo
"HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE echo
"OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE
# Copy the rc start script
cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot
chkconfig --add $NEW_APACHE chkconfig $NEW_APACHE on
Then just edit the $ETC/$NEW_APACHE/conf/httpd.conf and/or the
$ETC/$NEW_APACHE/conf.d/ssl.conf and as root 'service $NEW_APACHE
start'. NOTE this assumes that you are using the default structure that
Red Hat lays it's Apache httpd down as.
One thing to NOTE is that we had to over-ride the killproc function in
'/etc/init.d/functions' because of the way it tries to find the pid of
what is running. Since we symlink the binarys it would kill all the
running apache instances.
Hope that helps :-)
~Jet
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Friday, May 02, 2008 11:26 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
On Fri, May 2, 2008 at 10:12 AM, Vinay Purohit
<Vi...@trianz.com> wrote:
> Thanks Eric :-)
>
> Can you please provide little more detail on this. Precisely, I want
to
> run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing
services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above. If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing
services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above. If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] RE:How to start different apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Vinay Purohit <Vi...@trianz.com>.
Thanks Jet !!
I am not using default Apache. I have installed Apache 2.2.8 on RHEL5.1 in /usr/MYAPP/Apa directory. With respect to this path I have modified the script( script pasted below) but it is not working(so many commands directories executable not found). I assume there is only one Apache installation required that will have two different conf directory (/usr/MYAPP/Apa/conf /usr/MYAPP/Apa/NewConf)exists. Each conf directroy will have its own httpd.conf/ssl.conf so that I can configure IP based virtual server. Finally, with these configs, different daemon can be started and stopped.
Note : I don't want these daemon to start at boot time. Is there anything wrong in following script provided apache 2.2.8 is installed on RHEL5.1 in /usr/MYAPP/Apa. I re-state my requirement
I would like to configure IP based virtual server in apache2.2.8 on RHEL5.1 so that they can be started/stopped as a different daemon without affecting each other.
runApache.sh
export ORIG_APACHE=Apa
export NEW_APACHE=Apa2
export BINDIR=/usr/sbin
export ETC=/usr/MYAPP
export APPLOG=/home
export VAR=/var
export OLD_CONF=$ETC/$ORIG_APACHE
export NEW_LOG=$APPLOG/$NEW_APACHE
export NEW_CONF=$ETC/$NEW_APACHE
export NEWBINNAME=httpd1
mkdir /home/Apa2
export BINNAME=httpd
l n-s $NEW_LOG $NEW_CONF/logs
ln -s $ETC/$ORIG_APACHE/modules $NEW_CONF/modules
ln -s $VAR/run $NEW_CONF/run
# link in a new executable
ln -s $BINDIR/$BINNAME $BINDIR/$NEWBINNAME
# copy in the configuration files
mkdir $NEW_CONF/conf
cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/
# make modifications to the configuration files
sed -e "s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place $NEW_CONF/conf/httpd.conf
# copy in the subordinate configuration files
mkdir $NEW_CONF/conf.d cp -Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/
# add 2 lines into /etc/sysconfig/$NEW_APACHE
echo "HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE
echo "OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE
# Copy the rc start script
cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot
chkconfig --add $NEW_APACHE chkconfig $NEW_APACHE on
\Vinay
-----Original Message-----
From: Wilda, Jet [mailto:Jet.Wilda@ChasePaymentech.com]
Sent: Friday, May 02, 2008 11:40 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
I'm not familiar with the Windows side, however it is effectively separate daemon processes that can be stopped and started independently. Remember that you need to over ride the /etc/init.d/functions killproc if you use symlinks for the binaries (there are pros and cons to this). Here is the code we use in our /etc/init.d/$NEW_APACHE scripts to make sure it doesn't kill all the Apache instances running.
# A function to stop a program.
killproc() {
RC=0; delay=3
# Test syntax.
if [ "$#" -eq 0 ]; then
echo $"Usage: killproc [ -d delay] {program} [signal]"
return 1
fi
if [ "$1" = "-d" ]; then
delay=$2
shift 2
fi
notset=0
# check for second arg to be kill level
if [ -n "$2" ]; then
killlevel=$2
else
notset=1
killlevel="-9"
fi
# Save basename.
base=${1##*/}
# Find pid.
pid=
if [ -f $pidfile ]; then
local line p
read line < $pidfile
for p in $line ; do
[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
done
fi
# Kill it.
if [ -n "${pid:-}" ] ; then
[ "$BOOTUP" = "verbose" -a -z "$LSB" ] && echo -n "$base "
if [ "$notset" -eq "1" ] ; then
if checkpid $pid 2>&1; then
# TERM first, then KILL if not dead
kill -TERM $pid >/dev/null 2>&1
usleep 100000
if checkpid $pid && sleep 1 &&
checkpid $pid && sleep $delay &&
checkpid $pid ; then
kill -KILL $pid >/dev/null 2>&1
usleep 100000
fi
fi
checkpid $pid
RC=$?
NUM=`ps -ef | grep $prog | grep -v "grep" | grep -v "service" | grep -v "init.d" | wc -l`
if [ $NUM -gt 0 ]; then
failure $" shutdown"
echo
ps -ef | grep $prog | grep -v "grep" | grep -v "service" | grep -v "init.d"
echo
else
[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
fi
[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
RC=$((! $RC))
# use specified level only
else
if checkpid $pid; then
kill $killlevel $pid >/dev/null 2>&1
RC=$?
[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
fi
fi
else
failure $"$base shutdown"
RC=1
fi
# Remove pid file if any.
if [ "$notset" = "1" ]; then
rm -f $pidfile
fi
return $RC
}
________________________________________
From: Vinay Purohit [mailto:Vinay.Purohit@trianz.com]
Sent: Friday, May 02, 2008 1:58 PM
To: users@httpd.apache.org; users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Thanks Jet !! Is it effectively different apache virtual running as a different daemon which can be started and stoped without affecting others ? Is it same as running IP based virtual server (apache3.3.8 service/daemon) on windows ?
\Vinay
________________________________________
From: Wilda, Jet [mailto:Jet.Wilda@ChasePaymentech.com]
Sent: Fri 5/2/2008 11:15 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1 Hi,
We run multiple Apache httpd instances on Red hat all with different server roots and here is how we do it (I hope this is what your asking,-). Below are the steps we do to create a new server root and binary (or symlink of a new binary to the old). $ORIG_APACHE=httpd and $NEW_APACHE=whatever_you_want and $BINDIR=/usr/sbin.
OLD_CONF=$ETC/$ORIG_APACHE
NEW_LOG=$APPLOG/$NEW_APACHE
NEW_CONF=$ETC/$NEW_APACHE
# create the new directory for the configuration files mkdir $ETC/$NEW_APACHE
# create a logging directory
mkdir $NEW_LOG
# OK, now build out the configuration directory ln -s $NEW_LOG $NEW_CONF/logs ln -s /usr/lib/$ORIG_APACHE/modules $NEW_CONF/modules ln -s $VAR/run $NEW_CONF/run
# link in a new executable
ln -s $BINDIR/$BINNAME $BINDIR/$NEWBINNAME
# copy in the configuration files
mkdir $NEW_CONF/conf
cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/
# make modifications to the configuration files sed -e "s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place $NEW_CONF/conf/httpd.conf
# copy in the subordinate configuration files mkdir $NEW_CONF/conf.d cp -Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/
# add 2 lines into /etc/sysconfig/$NEW_APACHE echo "HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE echo "OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE
# Copy the rc start script
cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot chkconfig --add $NEW_APACHE chkconfig $NEW_APACHE on
Then just edit the $ETC/$NEW_APACHE/conf/httpd.conf and/or the $ETC/$NEW_APACHE/conf.d/ssl.conf and as root 'service $NEW_APACHE start'. NOTE this assumes that you are using the default structure that Red Hat lays it's Apache httpd down as.
One thing to NOTE is that we had to over-ride the killproc function in '/etc/init.d/functions' because of the way it tries to find the pid of what is running. Since we symlink the binarys it would kill all the running apache instances.
Hope that helps :-)
~Jet
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Friday, May 02, 2008 11:26 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
On Fri, May 2, 2008 at 10:12 AM, Vinay Purohit <Vi...@trianz.com> wrote:
> Thanks Eric :-)
>
> Can you please provide little more detail on this. Precisely, I want
to
> run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and modify the invocation of apachectl or httpd within the script to pass different -f parameters.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by "Wilda, Jet" <Je...@ChasePaymentech.com>.
I'm not familiar with the Windows side, however it is effectively separate daemon processes that can be stopped and started independently. Remember that you need to over ride the /etc/init.d/functions killproc if you use symlinks for the binaries (there are pros and cons to this). Here is the code we use in our /etc/init.d/$NEW_APACHE scripts to make sure it doesn't kill all the Apache instances running.
# A function to stop a program.
killproc() {
RC=0; delay=3
# Test syntax.
if [ "$#" -eq 0 ]; then
echo $"Usage: killproc [ -d delay] {program} [signal]"
return 1
fi
if [ "$1" = "-d" ]; then
delay=$2
shift 2
fi
notset=0
# check for second arg to be kill level
if [ -n "$2" ]; then
killlevel=$2
else
notset=1
killlevel="-9"
fi
# Save basename.
base=${1##*/}
# Find pid.
pid=
if [ -f $pidfile ]; then
local line p
read line < $pidfile
for p in $line ; do
[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
done
fi
# Kill it.
if [ -n "${pid:-}" ] ; then
[ "$BOOTUP" = "verbose" -a -z "$LSB" ] && echo -n "$base "
if [ "$notset" -eq "1" ] ; then
if checkpid $pid 2>&1; then
# TERM first, then KILL if not dead
kill -TERM $pid >/dev/null 2>&1
usleep 100000
if checkpid $pid && sleep 1 &&
checkpid $pid && sleep $delay &&
checkpid $pid ; then
kill -KILL $pid >/dev/null 2>&1
usleep 100000
fi
fi
checkpid $pid
RC=$?
NUM=`ps -ef | grep $prog | grep -v "grep" | grep -v "service" | grep -v "init.d" | wc -l`
if [ $NUM -gt 0 ]; then
failure $" shutdown"
echo
ps -ef | grep $prog | grep -v "grep" | grep -v "service" | grep -v "init.d"
echo
else
[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
fi
[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
RC=$((! $RC))
# use specified level only
else
if checkpid $pid; then
kill $killlevel $pid >/dev/null 2>&1
RC=$?
[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
fi
fi
else
failure $"$base shutdown"
RC=1
fi
# Remove pid file if any.
if [ "$notset" = "1" ]; then
rm -f $pidfile
fi
return $RC
}
________________________________________
From: Vinay Purohit [mailto:Vinay.Purohit@trianz.com]
Sent: Friday, May 02, 2008 1:58 PM
To: users@httpd.apache.org; users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Thanks Jet !! Is it effectively different apache virtual running as a different daemon which can be started and stoped without affecting others ? Is it same as running IP based virtual server (apache3.3.8 service/daemon) on windows ?
\Vinay
________________________________________
From: Wilda, Jet [mailto:Jet.Wilda@ChasePaymentech.com]
Sent: Fri 5/2/2008 11:15 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Hi,
We run multiple Apache httpd instances on Red hat all with
different server roots and here is how we do it (I hope this is what
your asking,-). Below are the steps we do to create a new server root
and binary (or symlink of a new binary to the old). $ORIG_APACHE=httpd
and $NEW_APACHE=whatever_you_want and $BINDIR=/usr/sbin.
OLD_CONF=$ETC/$ORIG_APACHE
NEW_LOG=$APPLOG/$NEW_APACHE
NEW_CONF=$ETC/$NEW_APACHE
# create the new directory for the configuration files
mkdir $ETC/$NEW_APACHE
# create a logging directory
mkdir $NEW_LOG
# OK, now build out the configuration directory
ln -s $NEW_LOG $NEW_CONF/logs
ln -s /usr/lib/$ORIG_APACHE/modules $NEW_CONF/modules
ln -s $VAR/run $NEW_CONF/run
# link in a new executable
ln -s $BINDIR/$BINNAME $BINDIR/$NEWBINNAME
# copy in the configuration files
mkdir $NEW_CONF/conf
cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/
# make modifications to the configuration files
sed -e "s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place
$NEW_CONF/conf/httpd.conf
# copy in the subordinate configuration files
mkdir $NEW_CONF/conf.d
cp -Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/
# add 2 lines into /etc/sysconfig/$NEW_APACHE
echo "HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE
echo "OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE
# Copy the rc start script
cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot
chkconfig --add $NEW_APACHE
chkconfig $NEW_APACHE on
Then just edit the $ETC/$NEW_APACHE/conf/httpd.conf and/or the
$ETC/$NEW_APACHE/conf.d/ssl.conf and as root 'service $NEW_APACHE
start'. NOTE this assumes that you are using the default structure that
Red Hat lays it's Apache httpd down as.
One thing to NOTE is that we had to over-ride the killproc function in
'/etc/init.d/functions' because of the way it tries to find the pid of
what is running. Since we symlink the binarys it would kill all the
running apache instances.
Hope that helps :-)
~Jet
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Friday, May 02, 2008 11:26 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
On Fri, May 2, 2008 at 10:12 AM, Vinay Purohit
<Vi...@trianz.com> wrote:
> Thanks Eric :-)
>
> Can you please provide little more detail on this. Precisely, I want
to
> run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Vinay Purohit <Vi...@trianz.com>.
Thanks Jet !! Is it effectively different apache virtual running as a different daemon which can be started and stoped without affecting others ? Is it same as running IP based virtual server (apache3.3.8 service/daemon) on windows ?
\Vinay
________________________________
From: Wilda, Jet [mailto:Jet.Wilda@ChasePaymentech.com]
Sent: Fri 5/2/2008 11:15 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Hi,
We run multiple Apache httpd instances on Red hat all with
different server roots and here is how we do it (I hope this is what
your asking,-). Below are the steps we do to create a new server root
and binary (or symlink of a new binary to the old). $ORIG_APACHE=httpd
and $NEW_APACHE=whatever_you_want and $BINDIR=/usr/sbin.
OLD_CONF=$ETC/$ORIG_APACHE
NEW_LOG=$APPLOG/$NEW_APACHE
NEW_CONF=$ETC/$NEW_APACHE
# create the new directory for the configuration files
mkdir $ETC/$NEW_APACHE
# create a logging directory
mkdir $NEW_LOG
# OK, now build out the configuration directory
ln -s $NEW_LOG $NEW_CONF/logs
ln -s /usr/lib/$ORIG_APACHE/modules $NEW_CONF/modules
ln -s $VAR/run $NEW_CONF/run
# link in a new executable
ln -s $BINDIR/$BINNAME $BINDIR/$NEWBINNAME
# copy in the configuration files
mkdir $NEW_CONF/conf
cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/
# make modifications to the configuration files
sed -e "s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place
$NEW_CONF/conf/httpd.conf
# copy in the subordinate configuration files
mkdir $NEW_CONF/conf.d
cp -Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/
# add 2 lines into /etc/sysconfig/$NEW_APACHE
echo "HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE
echo "OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE
# Copy the rc start script
cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot
chkconfig --add $NEW_APACHE
chkconfig $NEW_APACHE on
Then just edit the $ETC/$NEW_APACHE/conf/httpd.conf and/or the
$ETC/$NEW_APACHE/conf.d/ssl.conf and as root 'service $NEW_APACHE
start'. NOTE this assumes that you are using the default structure that
Red Hat lays it's Apache httpd down as.
One thing to NOTE is that we had to over-ride the killproc function in
'/etc/init.d/functions' because of the way it tries to find the pid of
what is running. Since we symlink the binarys it would kill all the
running apache instances.
Hope that helps :-)
~Jet
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Friday, May 02, 2008 11:26 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
On Fri, May 2, 2008 at 10:12 AM, Vinay Purohit
<Vi...@trianz.com> wrote:
> Thanks Eric :-)
>
> Can you please provide little more detail on this. Precisely, I want
to
> run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by "Wilda, Jet" <Je...@ChasePaymentech.com>.
Hi,
We run multiple Apache httpd instances on Red hat all with
different server roots and here is how we do it (I hope this is what
your asking,-). Below are the steps we do to create a new server root
and binary (or symlink of a new binary to the old). $ORIG_APACHE=httpd
and $NEW_APACHE=whatever_you_want and $BINDIR=/usr/sbin.
OLD_CONF=$ETC/$ORIG_APACHE
NEW_LOG=$APPLOG/$NEW_APACHE
NEW_CONF=$ETC/$NEW_APACHE
# create the new directory for the configuration files
mkdir $ETC/$NEW_APACHE
# create a logging directory
mkdir $NEW_LOG
# OK, now build out the configuration directory
ln -s $NEW_LOG $NEW_CONF/logs
ln -s /usr/lib/$ORIG_APACHE/modules $NEW_CONF/modules
ln -s $VAR/run $NEW_CONF/run
# link in a new executable
ln -s $BINDIR/$BINNAME $BINDIR/$NEWBINNAME
# copy in the configuration files
mkdir $NEW_CONF/conf
cp -Rp $OLD_CONF/conf/* $NEW_CONF/conf/
# make modifications to the configuration files
sed -e "s/$ORIG_APACHE\.pid/$NEW_APACHE\.worker\.pid/g" \
-e "s/\/$ORIG_APACHE/\/$NEW_APACHE/g" --in-place
$NEW_CONF/conf/httpd.conf
# copy in the subordinate configuration files
mkdir $NEW_CONF/conf.d
cp -Rp $OLD_CONF/conf.d/* $NEW_CONF/conf.d/
# add 2 lines into /etc/sysconfig/$NEW_APACHE
echo "HTTPD=/usr/sbin/$NEWBINNAME" >> $ETC/sysconfig/$NEW_APACHE
echo "OPTIONS=\"-d $ETC/$NEW_APACHE\"" >> $ETC/sysconfig/$NEW_APACHE
# Copy the rc start script
cp $ETC/init.d/$ORIG_APACHE $ETC/init.d/$NEW_APACHE
#Add the the automatic startup scripts and set to start on boot
chkconfig --add $NEW_APACHE
chkconfig $NEW_APACHE on
Then just edit the $ETC/$NEW_APACHE/conf/httpd.conf and/or the
$ETC/$NEW_APACHE/conf.d/ssl.conf and as root 'service $NEW_APACHE
start'. NOTE this assumes that you are using the default structure that
Red Hat lays it's Apache httpd down as.
One thing to NOTE is that we had to over-ride the killproc function in
'/etc/init.d/functions' because of the way it tries to find the pid of
what is running. Since we symlink the binarys it would kill all the
running apache instances.
Hope that helps :-)
~Jet
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Friday, May 02, 2008 11:26 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
On Fri, May 2, 2008 at 10:12 AM, Vinay Purohit
<Vi...@trianz.com> wrote:
> Thanks Eric :-)
>
> Can you please provide little more detail on this. Precisely, I want
to
> run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Eric Covener <co...@gmail.com>.
On Fri, May 2, 2008 at 10:12 AM, Vinay Purohit <Vi...@trianz.com> wrote:
> Thanks Eric :-)
>
> Can you please provide little more detail on this. Precisely, I want to
> run multiple httpd based on the httpd.conf supplied as start parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Vinay Purohit <Vi...@trianz.com>.
Thanks Eric :-)
Can you please provide little more detail on this. Precisely, I want to
run multiple httpd based on the httpd.conf supplied as start parameter.
I want to start multiple virtual servers(apache2.2.8 on RHEL5.1) as
different daemon so that I can start and stop them without affecting
others. Idealy they should use different httpd.conf, the way it works on
windows i.e.
apache -k install -n "Service1" -f " C:\Program Files\Apache
Group\Apache2\conf\httpd1.conf
apache -k install -n "Service1" -f " C:\Program Files\Apache
Group\Apache2\conf\httpd2.conf
Any further help ?
\Vinay
-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Friday, May 02, 2008 7:30 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8
on RHEL 5.1
> I have installed apache2.2.8 on RHEL5.1. I would like to start
> various apache daemon. Please help me in how to do that ?
> I could do the same on windows with the following command :
>
> apache -k install -n "Service1" -f " C:\Program Files\Apache
> Group\Apache2\conf\httpd1.conf"
Install RedHat's httpd RPM and look at /etc/rc.d/init.d/httpd
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Eric Covener <co...@gmail.com>.
> I have installed apache2.2.8 on RHEL5.1. I would like to start various
> apache daemon. Please help me in how to do that ?
> I could do the same on windows with the following command :
>
> apache -k install -n "Service1" -f " C:\Program Files\Apache
> Group\Apache2\conf\httpd1.conf"
Install RedHat's httpd RPM and look at /etc/rc.d/init.d/httpd
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] RE:How to start apache daemon in apache 2.2.8 on RHEL 5.1
Posted by Vinay Purohit <Vi...@trianz.com>.
Any pointers in this...........
-----Original Message-----
From: Vinay Purohit
Sent: Friday, May 02, 2008 4:30 PM
To: 'users@httpd.apache.org'
Subject: How to start apache daemon in apache 2.2.8
Hi,
I have installed apache2.2.8 on RHEL5.1. I would like to start various
apache daemon. Please help me in how to do that ?
I could do the same on windows with the following command :
apache -k install -n "Service1" -f " C:\Program Files\Apache
Group\Apache2\conf\httpd1.conf"
\Vinay
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Cache configuration advice
Posted by Joshua Slive <jo...@slive.ca>.
On Fri, May 2, 2008 at 6:22 AM, Marko Asplund <ma...@ixonos.com> wrote:
>
> On Wed, 30 Apr 2008 18:37:35 Joshua Slive wrote:
>
> > > As far as I've understood the below setup would not correctly cache
> > > request content when using request parameters (requires Expires header).
> > > What would be the best way to fix this?
> >
> > See the CacheIgnoreQueryString directive.
>
> So, is the only way to get content for both of the below requests cached
> correctly to make the backend system set the Expires header and setting
> 'CacheIgnoreQueryString Off' in httpd.conf?
>
> /listnews?page=1
> /listnews?page=2
No, if the response includes an appropriate Cache-Control/Expires
header, then the CacheIgnoreQueryString should not be necessary.
> > You'll want to use the CacheDefaultExpire directive to control the
> > local cache. Unfortunately, I don't think it is possible to set
> > different expiration times within the same host, since this directive
> > can't be placed in <Directory>/<Location> sections.
>
> Yes, I found this out the hard way :(
> Any hope of getting this restriction removed some time in the future?
The problem is that the cache operates somewhat outside the normal
apache configuration process. This is necessary to get maximum
efficiency (so that all the config directives don't need to be
processed on cached requests) but obviously limits configuration
flexibility. But if you manage to set correct Cache-Control headers on
your content, the CacheDefaultExpire directive should never come into
play, so you should be alright.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] How to start apache daemon in apache 2.2.8
Posted by Vinay Purohit <Vi...@trianz.com>.
Hi,
I have installed apache2.2.8 on RHEL5.1. I would like to start various
apache daemon. Please help me in how to do that ?
I could do the same on windows with the following command :
apache -k install -n "Service1" -f " C:\Program Files\Apache
Group\Apache2\conf\httpd1.conf"
\Vinay
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org