perchild
perchild is http://httpd.apache.org/docs-2.0/mod/perchild.html
or experimental (mostly broken) or still experimental, and not
stable. or see Metux MPM or see peruseree itk
However, they are all still experimental.
NO, forget that. It doesnt work.
apache can call a script that's setuid
Yes, that's what I said.
Im fairly sure that once apon a time User and Group worked in
Virtualhost context
I think in 1.3 or earlier
you'd be wrong
Yes, it does, but only for CGI.
If you're just interested in cgi hosting
execution, then setuid does that.
I know, im doing that already.
If you're referring to other things, then, no, it's not
possible, and also wasn't possible in 1.3
In 1.3, using User and Group in vhost context was for CGI, and
nothing else.
is no longer supported. ( in regard to the User directive
)
hmm ok.
That's because, in 2.x, that directive has changed its name.
Looking it up ...
SuexecUserGroup
SuexecUserGroup is
http://httpd.apache.org/docs/2.2/mod/mod_suexec.html#suexecusergroup
http://httpd.apache.org/docs/2.0/mod/mod_suexec.html#suexecusergroup
I'm getting this warning on startup:
Could not reliably determine the server's fully qualified domain host name,
using 10.0.1.4 for ServerName
But there's no indication of which of the 164 domains we host
behind 10.0.1.4, that it is related to
/sbin/apache2 -S shows this:
http://rafb.net/p/i0ocpN14.html
Is it possible to host an ASP.NET Web Service from
Apache?
http://wiki.apache.org/httpd/Errors/CouldNotDetermineServerName
Checking
This is so weird...
http://www.gnu-designs.com/
All of my images, css, styles are missing, but they're
accessible... permissions are fine, you can manually put in the url
to an image and it
displays
But hover over the links on the left..
"http://www.gnu-designs.comhttp//www.gnu-designs.com/?a=hosting"
step one
whatever the problem, step one is to look in the error log
(and any other logs that may apply, such as suexec, mod_rewrite, or
mod_security).
"http//www.gnu-designs.com/?a=hosting"
This same _exact_ (byte for byte) tree works flawlessly under
1.3.x
With LogLevel debug, I see:
3 2007] [debug] mod_deflate.c(447): [client 127.0.0.1] Zlib:
Compressed 7283 to 2821 : URL
That's it, that one line... no errors whatsoever
But another site on the same server (www.pilot-link.org for
example), works fine, all images are intact.
try /?a=domains rather than just ?a=domains
i'm not sure if ?foo is a valid uri ref
http://www.gnu-designs.com/index.pl?a=domains
Try that
http://www.gnu-designs.com/img/logo.jpg
does Apache2 _require_ explicit, absolute paths now?
same deal. "?foo" isn't a valid uri ref on its own as there's
no url path
Neat, because Apache 1.3 and earlier never bitched
I guess 2.x is being more pedantic, so no more relative paths
That's truly going to suck for a lot of enterprise web apps
Its even eating my base href tag:
base href="http://www.gnu-designs.comhttp://www.gnu-designs.com/"
/
That's why its broken
you're mistaking apache's url handling for the browser's. the
fact that my browser sees your links like the one you just pasted
has nothing to do with apache.
Apache is internally rewriting the page output, breaking all of
those urls
And eating base href and mangling it all
why do you think that?
Because server-side, running the mod_perl code directly, works
fine
But what the server
host is serving, is mangled
oh noes!
I am inclined to disagree with you
Let me pull Squid out of the picture and see what happens
here
hrm, now it works... so Squid is eating things
base href="http://www.gnu-designs.comhttp://www.gnu-designs.com/index.pl"
/
i guess that's the problem
noodl, Right, but what is appending that? Its not leaving the
mod_perl script that way
base href="http://www.gnu-designs.com" /
Something else adds the trash to the end of it
dunno, blame squid?
I just did
And verified it
Now to figure out why
squid MUST be broken.
no, apache2 must be
Well, squid's docs are entirely incorrect for setting up 2.6 as
an Apache accellerator
it HAS to be
And 2.6 is _vastly_ different from 2.5
damn them for trying to roll out a new release! what were they
thinking?
they must hate setuid
Well, rolling out a new release by breaking backward
compatibility and documenting the path forward incorrectly, is no
way to get people to migrate
uWell, rolling out a new release by breaking backward
compatibility and documenting the path forward incorrectly, is no
way to get people to migrate/u
buWell, rolling out a new release by breaking backward
compatibility and documenting the path forward incorrectly, is no
way to get people to migrate/u/b
jpeg, WAKE UP!!!
wha?
What are these?
these is MS stabdardds
9 -0400] "GET / HTTP/1.0" 200 669 "-" "Apache (internal
dummy
And why?
http://wiki.apache.org/httpd/Logs/InternalDummyConnection
for your httpd3 features list.. remove internal dummy connection
ktnxbai
hrm, that documented struct didn't help
# grep loopback apache2.conf sites-enabled/000-default
apache2.confetEnvIf Remote_Addr "127\.0\.0\.1" loopback
sites-enabled/000-default: CustomLog /var/log/apache2/access.log
combined env=!loopback
I never noticed that behaviour.
arreyder, I get about 250/minute here
damn it
why must apache listen on port 80
why cant http be on port 1
Gosh. Outragoues.
Erm.
Because I'm using your port 1
Now shush
i installed another 128mb of memory and everything is
fine. was just running to much for how much i had in
:|
you're still here?
No, its a figment of your imagination
ah
what does --enable-shared=max on compile 1.3 do?
I'd like to build apache, modsec, php (with mysql support, zlib
and libxml2 support). what do I need to do to build these packages
to be totally standalone (statically compiled) so it will run on
the RHEL/clear box. All the guides onthe Internet that reference
apache 2.x with modules
MaxeyPad "statically compiled" ?
do a ./configure --help you should have all the info about how
to activate the different supports . You can add
--prefix=/theDirectoryWhereToPutApache
Hey -- I'm having issues with mod_auth_pam. Is anyone familar
with this module?
Better off just asking your question
0 [apache2] PAM _pam_load_conf_file: unable to open
3 2007] [error] [client 127.0.0.1] PAM: user 'root' - not
authenticated: Module is
Any ideas what might cause that? The obvious reason (the file's
permissions) isn't correct because its +r for everyone
No one is familiar with this module?
Come on...
Patience is a virtue. I'd suggest looking on Google if you're
not getting help here (because some may be busy / not familiar with
the error)
and it's LATE
i.e. people are asleep/
no, it's way too early!
i know, where i should be. :-)
i'm still at work because i can't get this pam issue solved
0 in the morning...
No luck on Google?
Nada
Hm
Is it causing some error? Or just something weird in the
logs?
Well, the apache error log shows the error I pasted, but
otherwise nothing
about file permissions, does apache user also have atleast
access/execute (x) to the pam.d dir?
Does this file exist? /etc/pam.d/system-auth_
The _ at the end kind of bothers me
i know, and it doesn't but i hard-linked it to system-auth
(without the _) just in case and it didn't do anything
and yeah, world +rx for the /etc/pam.d dir
hm, I see
Try to grep -iR /etc/pam.d/system-auth_ in /etc/apache
that either hangs or is taking forever...
but no output
Taking forever
(if anything)
ohh, wait
hehe
grep -iR /etc/pam.d/system-auth_ *
ahh
Do that in your apache dir
it was readin stdin?
My bad
:p
reading*
yeah, no results
Yup, but stdin was nothing... hehe
hmmm
grep -iR system-auth_ *
Try that, even
nope
system-auth doesn't appear in the apache log
it appears in the auth log
ahhh
The dawn of understanding has arrived!
ahhhh
the apache log is just a generic error about pam modules
missing
hmm
^^
5 2007] [error] [client 127.0.0.1] PAM: user 'root' - not
authenticated: Module is
hmm
that'd be apache
I see
i would have thought it was pam
no, PAM gave the more detailed messages about the pam modules
and such
apache gives one line of output
i can give the full pam error
its like 15 lines, i'll pastebin it
http://pastebin.com/929398
hmm
Did this just start happening all of a sudden?
its a new system install
ahh
Does /lib64/security/pam_nologin.so_ exist?
same as before
without the _, sure
with, no, but if i hardlink it makes no difference
Hm, ok. Why not a softlink?
What distro?
what distro are we dealing with here?
That's what I asked him!
bugger all, i dunno, foo
because hard links look just like the file, and a symlink might
not resolv if it decided to be stupid or something
whereas a hardlink there's no issue, b/c it actually is the
file
anyway, Gentoo
ah.
Hmm
hi,
I need help in deploying plone site using apache server
I am able to do it using Redirect
but I am not knowing how I can make my default apache also
running in it place
and also the plone site
my apache2.conf file is like this, http://pastebin.ca/567916
but, I am not understanding how my domain configuration should
be in my my domain names
could I get any help feom anyone please
vhosts? Hm
I have a folder. The permissions are 777. But I keep getting a
403 when trying to get the directory listing.
vhosts
vhosts is http://httpd.apache.org/docs/2.0/vhosts/
http://httpd.apache.org/docs/1.3/vhosts/
http://httpd.apache.org/docs/2.2/vhosts/
What error?
Oh, err, nevermind
Do you have directory listing turned on?
How do I turn that on?
indexes
See Options
options
options is http://httpd.apache.org/docs/2.0/mod/core.html#options
or http://httpd.apache.org/docs/1.3/mod/core.html#options
or see 'Options Context' Don't mix 'relative' and 'absolute'
values. See: http://www.onlamp.com/pub/a/apache/2005/09/08/apacheckbk.html
Options +Indexes in an .htaccess file in that directory may
suffice if you the correct config for it
Can you please give me an idea of a .htaccess file to use in
this circumstance?
Yeah, just make a .htaccess file, put Options +Indexes in it,
and stick it in the directory that you want to view the directory
of
Thanks
Noparse:
Soo.
0 2007] [warn] NameVirtualHost *:0 has no VirtualHosts"
Nevermind. I fixed it, though I'm not sure how.
hi people. can anyone help me understand how to correct this
error when i try to start httpd?: "httpd: Syntax error on line 76
of /usr/local/apache2/conf/httpd.conf: Can't locate API module
structure `config_log_module' in file
/usr/local/apache2/modules/mod_log_config.so: undefined
symbol"
I need help with my apache server...
I have a NAT-enabled router and an apache server connected to it. I
enabled port-forwarding in the router to forward port 8080 to my
server. Now I can view the web page from my other computers on the
network using the external IP:port, but for some reason people
still can't view it outside of my network
hello?
Hail, bourreau!
hi
what's up, indraveni.
I am using NameVirtualhost, and its showing the following error
when restating the system
http://pastebin.ca/567931
a href="http://pastebin.ca/567931"http://pastebin.ca/567931/a
now my error is something like this
1 2007] [warn] NameVirtualHost *:80 has no
.
hi fajita
there is a file in sites-available/default which is having
VirtualHost *, which I changed to VirtualHost *:80
hi
and thus the error messages are reduced,
fajita, any idea what may be wrong in my configuration?
bugger all, i dunno
you have a line saying NameVirtualHost *:80 but no VirtualHost
*:80
NaeVirtualHost
NameVirtualHost
NameVirtualHost is http://httpd.apache.org/docs-2.0/mod/core.html#namevirtualhost
or http://httpd.apache.org/docs/mod/core.html#namevirtualhost
or You must specify only one NameVirtualHost directive, hopefully
with an IP address or a *. It says on which interfaces should
Apache listen to name based vhosts requests, nothing more.
vhost example
vhost examples
Look at these for examples http://wiki.apache.org/httpd/Recipes/ExampleVhosts
:: http://httpd.apache.org/docs/2.2/vhosts/examples.html
:: http://httpd.apache.org/docs-2.0/vhosts/examples.html
:: http://httpd.apache.org/docs/vhosts/examples.html
yango, but I have the VirtualHost entry as VritualHost
*:80
hi all ..
yango, my configuration is here http://pastebin.ca/567988
yango, in my http://pastebin.ca/567988,
Virtualhost is changed to VirtualHost
a dummy question ..
i need to override diable_functions for php ..
yango, why is my configuration not detecting the VirtualHost
entry?
maybe you have two NameVirtualHost lines?
yango, there is only one, I scanned the whole file
yango, if I am replacing the * with my ip its working
yango, but not working only with *
I don't know what you are doing... the file you pasted looks
fine
morning
what can I do you for today, teite?
just be my fajita
sorry...
what's the actual problem?
hi
hi, has anybody experienced that Opera (the browser) loads
pages with many images _very_ slow over https, if yes were you able
to fix it? this issue is probably unrelated to apache, but i
thought there could be a .conf setting that might help opera coping
better with https
does firefox do better with your server?
yes firefox and msie work as expected. we can actually see
the page build up in opera, and we're talking 100mbit lan for
development here
only thing which comes in my mind straight away is Opera
identifying itself as MSIE (UserAgent) and Apache disabling
KeepAlive for MSIE in https connections (due to old IE
bug)
ahh, that's a good idea, will try that
no, that is the problem..
I'm having a bit of a "forbidden" problem, I think it's because
I'm setting up docroots wrong, if I post my httpd.conf and
httpd-vhosts.conf could I get some help?
http://floppypond.com/httpd.conf
&& http://floppypond.com/httpd-vhosts.conf
default configs have Browsermatch line like 'BrowserMatch
".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ ...' which disables
keepalive for clients identifying as MSIE
therefore every object on page requires new connection building
and ssl handshaking. compared to firefox which could be using
keepalive connection. you could try to change UserAgent string in
Opera but that's only local workaround for you.
yep thanks a lot.
another solution could be finetuning that ".*MSIE.*" to match
only some versions of IE, though I don't know which versions have
the bug
iirc 5.0 and earlier, but we'll check on that
DocumentRoot usr/share/apache2/floppyserver.com
you're missing a leading /
Roobarb-Work, no, that's relative
to ServerRoot ?
server root is set as /usr/local/apache
yes
ok
what doe the error_log entry for a 403 say ?
verbatim
Verbatim means "word for word" "copy and paste". It means we
want the exact error message from the error log. That also means
use a pastebin for 3 lines. Ask me about 'apc' for which pastebin
to use.
0 2007] [error] [client 142.161.111.13] client denied by server
configuration:
block for that directory
aye, alright
thanks
I'ma move everything into /www I think so I'll just redo all
that
you probably also want an "Order Deny,Allow", "Allow from
all"
just to be explicit
right
so, if I set DocumentRoot in httpd.conf to be "/www/default-site" I
can set the DocumentRoot to be "/www/domain.com" in a vhost block,
right?
we disabled this on different servers doesn't seem to help,
even though it sounds logical. I'll continue
investigating
it doesn't have to be inside the original docroot, does
it?
you don't need a DocumentRoot in you main_server config
unless you're actually planning to use it
aah
in httpd.conf would apply to any documentroot set in a
vhost?
no
is your filesystem root
oh, ok
for each site then?
yes
hmm, didn't have to do that before, I guess this config is
different
I couldn't do one for /www/*?
in your main_server config
and that would be alright?
you'd have to try it tbh - I alway explicitly list
directories in VHosts
duh, of course, lol. they were in the vhost blocks before
that's why I'm confused
alright, thanks a lot
ok
wonderful, it's working, thanks
wondering about one more thing, I know the conf file says that
if a vhost can't be found for a domain it'll use the first, I wanna
know if I can have apache give an forbidden error or refuse a
connection or something instead
so if someone types in the ip address or a different domain they
won't just get served the documents from another domain
which just redirects to a 403
that's verbatim, I put _default_ in the vhost block?
yes
okee dokes, thanks
imho _default_ is almost as terrible as using only '*'. why
on earth can't we get rid of those
well, you could remove support in apache 2.3?
that should take care of it :P
Or in 3.0!
Or for that matter, not add it in 3.0
i've done some more checks, when logging in apache with %X i
can see if keepalive is used or not - firefox and opera use it,
msie does not (default directive active) - FF and msie are fast,
opera is not, seems like opera has a bad implementation of https.
disabling keepalive for opera doesn't help either
yes, we should remove VirtualHost support in 3.0! \o/
strange. I haven't used opera much so hard to say.
sounds like a plan! You tell this chipig ! And he'll implemented
it, I'm quite sure.
hi, I want to surf on a local php page ,but the site is just
offered for download not shown within the browser, what could be
the problem?
php
php is enabled by loading mod_php and using the AddHandler
directive to activate it. See also CGI The proper application type
is: application/x-httpd-php or see http://www.devside.net/articles/php
read that.
hello
I'm trying to get Apache working on a Fedora Core 6 install
but when I go to http://localhost I
always get the text "Not Found"
what could cause this?
I've checked /var/log/httpd/error_log, but it only has notices
of all the apache restarts I have done
default layout
Pop along to http://wiki.apache.org/httpd/Info/DistrosDefaultLayout
for an idea on where the main distros place Apache files.
I try to redirect http://localhost/smokeping to
http://localhost/cgi-bin/smokeping.cgi
with a .htaccess in the first directory which looks like
Hum.
Redirect 301 / http://192.168.1.12/cgi-bin/smokeping.cgi
But that doesn't work.
in how far does it not work?
does Fedora shipt with vhost configs by default..?.. hmm.. even
if it did... hm. Confused.
not redirected at all atm.
ah.. I see.. why do you put it in a .htaccess anyways...
instead of putting it in httpd.conf
how do I do the redirection there?
O_o
htaccess purpose?
Don't confuse htaccess with password-protection. The purpose
of htaccess is to enable users to configure apache locally for
their own directories, when they have no privilege to do so in
httpd.conf. Using htaccess slows the server. Also rewriterules and
redirects are more complex in htaccess
I've only ever used .htaccess. Rewrites and redirects are
less complex in httpd.conf?
i hate my problems.... why does this ext_filter doesnt run in my
proxy?....
e.g. [L] flag works as expected etc
How do I do a simple redirect from http://localhost/smokeping to
http://localhost/cgi-bin/smokeping.cgi?
shouldn't be hard.
Someone here has constructs taht do proxying together with some
output filterin
g
i tried some docs out of pages, and made some try by myself, the
proxy part is never the problem but that the outputfilter is never
used...
holy crap.... now it works....
080 I get to see "Not Found". What can be
yesterday i played 1-2 hours with that shit and nothing
happend, and now, 10 min. and it works..... arghl....
The L flag doesn't work as expected?
verbatim
Verbatim means "word for word" "copy and paste". It means we
want the exact error message from the error log. That also means
use a pastebin for 3 lines. Ask me about 'apc' for which pastebin
to use.
^^
not when used in .htaccess
I didn't know that. What does/doesn't it do?
no time for example now but it doesn't stop processing
further rules like it does when used in e.g. vhost context. this
leads in rewriteloops sometimes (unless RewriteCond is
used)
mostly in the cases where target matches the expression in next
rewrite round
anyone an idea for my "Not Found" problem?
Um, okay.
I found the problem
Apache is running on port 8080
then it can be usefull to go to the URL http://localhost:8080 instead of
http://localhost
:p
hi
i have a little problem with my router and apache 2.2
Ahh, to spend an hour diagnosing something only to find out you
were just doing it slightly wrong. Heh.
someone able to help me?
ask
If you have an apache related question, please go ahead and
ask it. We will not beat it out of you. We won't bite you either,
at least until we get to know you better
how do i restrict the size of the apache log file,
access.log? it just keeps growing...
rotatelogs
rotatelogs is http://httpd.apache.org/docs-2.0/programs/rotatelogs.html
or http://httpd.apache.org/docs/programs/rotatelogs.html
or http://httpd.apache.org/docs/2.2/programs/rotatelogs.html
rotatelogs is a href="http://httpd.apache.org/docs-2.0/programs/rotatelogs.html"http://httpd.apache.org/docs-2.0/programs/rotatelogs.html/a
or a href="http://httpd.apache.org/docs/programs/rotatelogs.html"http://httpd.apache.org/docs/programs/rotatelogs.html/a
or a href="http://httpd.apache.org/docs/2.2/programs/rotatelogs.html"http://httpd.apache.org/docs/2.2/programs/rotatelogs.html/a
Related Topic:
Hey all im having a little trouble getting mysql to work on my local machine the mysqld service is running but