|
aliver: I have a server (RHEL4 + Apache 2.2 + PHP5). The server is under heavy load and each client will need to make a lot of requests to render every page. The box has 4G of memory. Any advice on what to set MaxRequestsPerChild to? I read the docs, but I'm still a little confused about it.
Covener: aliver: 0 unless you have memory leaks
Knorrie: hi, i'm running a 2.2.8 apache with dav-svn that authenticates to a ms-win-2003 ad using mod_authnz_ldap. since the upgrade yesterday from 2.2.6 to 2.2.8 (debian) we get lots of auth_ldap authenticate: user $foo authentication failed; URI /bar [ldap_search_ext_s() for user failed][Can't contact LDAP server]
Knorrie: no config changes etc... it's like a jojo, it fails and then suddenly... auth_ldap authorise: require group: authorisation successful (attribute member) [Comparison true (adding to cache)][Compare True]
Knorrie: i tried to trace this down, apache2 is using /usr/lib/libldap_r-2.4.so.2.0.3
Knorrie: during failures i can ldapsearch to the win2k3 ad ldap port without problems
Knorrie: so probably this is some bug somewhere i can help to solve
Covener: Knorrie: there is a related fix in that upgrade
Covener: Knorrie: you see like 5 of those Can't contact messages in a row?
Covener: Knorrie: or maybe 50? :/
wolfderby: after adding this code http://pastebin.com/d50bb9781apache\conf\extra\httpd-xampp.conf
wolfderby: oops*
wolfderby: after adding this code http://pastebin.com/d50bb9781 ...to... apache\conf\extra\httpd-xampp.conf apache won't restart
wolfderby: any chance anyone could take a look at this for me?
thumbs: wolfderby: what does the error log say, exactly?
wolfderby: this is my first attempt at transfering a drupal site to a localhost
wolfderby: thumbs i'm using xampp ... where is the error log?
thumbs: fajita: default layout
fajita: Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.
wolfderby: ahhh I found it thumbs thanks
gregg--: hi, i need to make every client trying to access a server, directly or using a saved bookmark, get redirected to one static html document. i tried first by setting my DocumentRoot to where the html file is and then used an ErrorDocument to point to that file.
gregg--: so that any other URLs would be redirected to that as well
gregg--: but is there a better way to do that, without using ErrorDocument?
wolfderby: if i were to edit that file (apache\conf\extra\httpd-xampp.conf or apache\conf\httpd.conf) while apache was running would that mess up my apache?
gregg--: wolfderby: not until you restart apache
jpeg: it only reads the config at startup.
dkr: wolfderby: no. you have to tellapache to re-read conf files yourself. it doesn't keep checking for changes
wolfderby: dkr how do I tell it to do that?
gregg--: apachectl restart
fajita: apachectl restart is the command to restart apache
dkr: apachectl graceful
fajita: apachectl graceful is how you restart apache without dropping any client connections. Workers in keepalive will retain old config until they time out. Be patient, or set KeepAliveTimeout lower
wolfderby: this would be different if I were using XAMPP?
dkr: no idea
wolfderby: ok thanks for your help dkr
dkr: I thought xampp was just a script to do adefault install/config of the various apps involved
dkr: xampp
fajita: xampp is XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl found at http://www.apachefriends.org/en/xampp.html. We can't support it very well, as it does things we cannot know for sure
[dot]Al: hi, anyone here use suPHP?
_ergo_: im having trouble with mod_userDirs
_ergo_: when using mod_rewrite it looks not in user dir
hannesd: [dot]Al: anyone here use square brackets in their nick?
_ergo_: and instead it looks in /var/www/home ...
[dot]Al: yes...
hannesd: [dot]Al: consider this the reason why noone will answer you.
[dot]Al: whats the problem with square brackets in nicks?
gregg--: anyone know how to make mod_rewrite direct user requests, regardless of URL, to one html document?
hannesd: [dot]Al: none, except people won't anser you, we
_ergo_: gregg-- : Rewrite Rule * filename
stevernss: hannesd: don't b like that
stevernss: what a gay boy
stevernss: hannesd: are you receiver or giver?
hannesd: both
stevernss: damn
_ergo_: ok did anyone used mod_userDir + mod_rewrite ?
gregg--: _ergo_: just a * ?
stevernss: can I call you bendover?
_ergo_: gregg-- : yes
gregg--: i don't think that works
hannesd: stevernss: call me what you like..
stevernss: ok thnks
gregg--: RewriteRule: cannot compile regular expression '*'
_ergo_: its like 'RewriteRule .* index.php'
_ergo_: works on my apps
gregg--: my mistake
gregg--: it was a problem with the rest of my httpd.conf
_ergo_: how can i force mod rewrite to use other dir than /var/www ?
_ergo_: it searches for userdir files in /var/www/home instead of /home/user/public_html
_ergo_: without mod rewrite everything works
_ergo_: k, i fixed my apache problem
damog: Hello. anybody familiar with apreq2? I'm getting "missing parser" as $req->body_status. Any enlightenment?
perezd: hey need a quick hand...I am trying to get an apache website to just serve a document root to an IP...that sounds rediculously easy, can someone point me to a good tutorial or something perhaps?
dkr: access
fajita: ask me about mod_access
dkr: mod_access
fajita: mod_access is http://httpd.apache.org/docs-2.0/mod/mod_access.html or http://httpd.apache.org/docs/mod/mod_access.html Called mod_authz_host in 2.1 and later
Knorrie: Covener: hi, i'm back
Knorrie: Covener: i'll have a look
UserDream: anyone know an easy to use file manager ?
Knorrie: bash?
fajita: bash is the Bourne Again SHell -> #bash
Knorrie: command line or graphical?
perezd: if I have a virtualhost on port 3001, do I need to do something special to open that port?
perezd: I don't see it when I do netstat -plan | grep 3001
Knorrie: perezd: did you tell apache to listen on that port?
perezd: Knorrie: I may have not...let me try that
perezd: Korrie, thanks!
Knorrie: perezd: if you add a <VirtualHost *:3001> and did not specify Listen 3001 in e.g. ports.conf i guess there must be some error msg in error.log
perezd: that seemed to work, my fault...
Knorrie: :)
perezd: don't mess with apache too often (yet)
Knorrie: Covener: I just checked error.log, indeed, it seems the errors come in batches of ~50
Knorrie: Covener: i see no TCP traffic to remote 389 meanwhile
UserDream: anyone know an easy to use file manager ?
UserDream: for internet
UserDream: for my apache
Knorrie: Covener: *) mod_ldap: Try to establish a new backend LDAP connection when the Microsoft LDAP client library returns LDAP_UNAVAILABLE, e.g. after the LDAP server has closed the connection due to a timeout. <- this is exactly the issue, so it seems this 'patch' just broke it instead of repairing it ;)
Covener: Knorrie: that should only have changed behavior on apache-on-windows
Covener: Knorrie: Can you put your errorlog somewhere?
Covener: pastebin
fajita: pastebin is http://apache.pastebin.ca/ or http://rafb.net/paste/ or http://dpaste.com/
perezd: I am getting this error when I use ProxyPass, is there something else I need to enable? warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
Knorrie: yes
Covener: Knorrie: you're on linux with openldap?
Knorrie: here's a snippet: http://syrinx.knorrie.org/~knorrie/error.txt
Knorrie: Covener: yes
Covener: Knorrie: that's really just one request right?
Covener: Knorrie: maybe not actually are you manually resending that or is it just two requests maybe?
Knorrie: Covener: that's one person trying to do a svn commit
Knorrie: Covener: seems that while this errors get logged there's no connection to the w2k3 server:389 that moment
Knorrie: Covener: and after a while apache reconnects, and then it succeeds
Covener: Knorrie: built this apache yourself?
Knorrie: no
Covener: Knorrie: packaged by distro or something?
Knorrie: Covener: debian unstable
fajita: taking vanilla sources and breaking them for over 10 years
Covener: I haven't seen any reports about 2.2.8 and ldap being problematic, and been running it myself a lot
Knorrie: no it's only the w2k3 connection
Knorrie: other apache->ldap seems to go fine
Knorrie: connecting openlap
Covener: bizarre
Knorrie: +d
Knorrie: where's the changeset for this?
Covener: Knorrie: do you know by any chance how to get openldap to spit out debug info? I think one of the debu settings in /etc/ applies to the library
Knorrie: Covener: I have no problems with the openldap connections, this one b0rking is using a ldap connection to w2k3 ad to verify user credentials
Covener: Knorrie: Well every connection originating from apache on your system is running the openldap client code
Knorrie: ah yes
thumbs: crap
Covener: Knorrie: this should be backend agnostic, but sensitive to the type of ldap sdk locally
Knorrie: so could be a problem in libldap
Knorrie: because the aptitude upgrade pulled in a new libldap in also
Knorrie: ii libldap-2.4-2 2.4.7-4 OpenLDAP libraries
Knorrie: ii libldap2 2.1.30.dfsg-13.5 OpenLDAP libraries
Knorrie: it's using the 2.4 now
Knorrie: but should reconnecting-issues be handled by apache or by libldap?
Knorrie: thinking ... it seems w2k3 drops the ldap connection after some idle time, and apache does not recognize that
Covener: Knorrie: that's the point behind the fix actually
Covener: Knorrie: w/o the fix you'd bail out when running paache on windows because LDAP_UNAVAILABLE is the same as LDAP_SERVER_DOWN there
Knorrie: Covener: yes, but then it's really interesting why it does break now and didn't with 2.2.6
Knorrie: ok
Knorrie: so my apache is running on linux and it connects to windows
Knorrie: and when the connection is lost, apache gets != LDAP_SUCCESS
Knorrie: hm
Knorrie: that's the mod_authnz_ldap.c(377) one
Knorrie: nasty
fajita: We see the nasty HobbitsesApache::AuthzNIS
Knorrie: hehe fajita
fajita: hehe i am up to date
thumbs: fajita: hehe
fajita: thumbs: i'm not following you...
Covener: Knorrie: can you attach with ltrace while apache is trying to authenticat?
Knorrie: Covener: i'm new to that, how should i do that?
Covener: Knorrie: you don't have LDAPConnectionTimeout in your conf do you?
Knorrie: no
Knorrie: i have ltrace now
Covener: Knorrie: sudo ltrace -o ltrace.out -p somechildprocesspid
Knorrie: ok
Knorrie: but apache has 3 "/usr/sbin/apache2 -k start" pids on this box
Knorrie: running as unprivileged user "svn"
Covener: Knorrie: ps -A -o thcount,pid,cmd | grep apache2
Covener: Knorrie: do -p for the one w/ more then 3 threads
Knorrie: http://paste-it.net/6391
Knorrie: i could edit the apache config and run it with 1 child
Covener: try either of the 27-thread guys, or change MaxClients to 25
Covener: then restart and you'll just have the 1
Knorrie: ok
maznaz: Quick question. How do I skip authentication for an IP?
Covener: maznaz: satisfy any, allow from 1.2.3.4
maznaz: Okay, thanks!
Knorrie: Covener: changed MaxClients from 150 to 25
Covener: maznaz: order deny,allow ; deny from all preceeding that i guess
Knorrie: Covener: http://syrinx.knorrie.org/~knorrie/restart.txt
maznaz: Yeah, guessed as much.
maznaz: Just never saw satisfy before
Covener: Knorrie: that's expected garbage
Knorrie: Covener: yes i know, that's because of the loglevel debug
Knorrie: also never heard of satisfy in allow-thingies
Knorrie: Covener: ok, now i should try to ltrace that pid and reproduce it
Covener: Knorrie: the new child pid, yeah
Knorrie: ok let's try
Knorrie: whee
Covener: make sure you can ldapsearxh -x -h 10.140.10.18 or whatever args it takes
Knorrie: yes i can do that
Knorrie: even at the same time when apache fails
Knorrie: been there done that
Covener: inconceivable!
fajita: I don't think that means what you think it means.
Covener: fajita++
Knorrie: hehe
Knorrie: spambot ;]
Knorrie: ok, let's get into the ltrace stuff now, not been there before
fajita: Knorrie be careful, I bite!
Knorrie: fajita: stfu
fajita: Knorrie: i'm not following you...
Knorrie: hehe
Knorrie: svn.1 /home/beheer# ltrace -o ltrace.out -p 8019
Knorrie: now some F5 hitting on svn
Knorrie: ok apache is not responding
Knorrie: beheer@svn.0 ~$ tail -f ltrace.out
Knorrie: 8019 --- SIGSTOP (Stopped (signal)) ---
Knorrie: ahem
Covener: kill -CONT 8019
Knorrie: hehe
Knorrie: ok get an authentication dialog now
Knorrie: auth_ldap authorise: require group: authorisation successful (attribute member) [Comparison true (adding to cache)][Compare True]
Knorrie: so that's because I just restarted apache
Knorrie: ltrace does not show much output
Knorrie: guess we'll have to wait for that friggig windoze box to timeout
Covener: did ltrace show ldap calls at all?
Knorrie: no
Knorrie: nothing but those 8019 --- SIGSTOP (Stopped (signal)) ---
Knorrie: and svn.1 /home/beheer# ltrace -o ltrace.out -p 8019
Knorrie: still running
Knorrie: auth_ldap authorise: require attribute: authorisation successful, referer: foo <- shouldn't that be: authorisZation ?
Knorrie: or is that because of some uk<->us spelling war? :)
meeero: i just updated to apache 2.2.8 on debian, a known bug causes mod cband not to load, any ideas for workarounds? i'm having downtime right now, i need to fix this as fast as possible
Covener: meeero: downgrade?
fajita: downgrade is only for the response
meeero: i'm not sure if i can...sometimes APT is really weird
meeero: it shows 2.2.8 in the version history only
thumbs: we don't really know how 'apt' works
Knorrie: get the 2.2.6 debs and dpkg -i them
meeero: yes, of course
Covener: meeero: /var/cache/apt/archives/ ?
Knorrie: snapshot.debian.net
Knorrie: Covener: guess i'll have to wait till the 10.140.10.18:389 ESTABLISHED vanish in netstat -an to reproduce this?
UserDream: d
coldflame: hi all. i'm having an issue where my .htaccess files are not being read at all when ssl requests are made to a server.
coldflame: but on normal http requests, it works fine
coldflame: any pointers?
thumbs: fajita: allowoverride none
fajita: AllowOverride None means "Please ignore my htaccess files." and is the default setting. or See http://www.onlamp.com/pub/a/apache/2003/12/04/apacheckbk.html
thumbs: define not being read, too.
coldflame: mmm i set AllowOverride to All
coldflame: i don't htink it's being read because if i put garbage in it, i don't get the standard error message
thumbs: fajita: garbage
fajita: try putting junk in your htaccess file. If it's being read, you will get an Internal Server Error when accessing that resource.
coldflame: haha
thumbs: so set the AllowOverride in the proper context.
coldflame: which is in the directory block yes?
thumbs: i.e. the proper <Directory> block in your vhost.
coldflame: yup.. that's where it is... in the virtual host for the ssl ip
thumbs: pastebin the output from httpd -S, please
Knorrie: Covener: ok, one of the two :389 is in CLOSE_WAIT now
meeero: wonderful, segmention fault
Knorrie: heh
thumbs: meeero: time for plan B
Knorrie: Covener: ow... i get a 500 now, but ltrace does not show anything
thumbs: meeero: switch to your backup server.
thumbs: meeero: I hope you didn't bring down your only production server without testing anything first?
meeero: plan b requires more funds and a transfer of 500GB of data to another server
meeero: i didn't expectthat cband-problem
thumbs: you acted foolishly
meeero: yes, i did
thumbs: you could always try to compile from source..
Greek-Boy: How do vhosts work in apache? Does apache look at the address being requested and know which directory to go to? for example www.siteb.com will be fed from www.sitea.com/siteb ?
thumbs: no
bridezilla: My httpd-error.conf is full of lines like this: "client used wrong authentication scheme: /" <-- What does this mean?
thumbs: fajita: name based vhosts
fajita: name based vhosts is http://httpd.apache.org/docs/2.2/vhosts/name-based.html#using
thumbs: Greek-Boy: read that ^^
Knorrie: Covener: ok, i retry and apache reconnected, and auth succeeds, i guess we'll have to look further into this tomorrow, i'd be happy if i could help you with my experience here, it's 2:30 local time, tomorrow we can use my colleagues as test-rabbits
Knorrie: Covener: so i'm going to have some sleep :)
thumbs: mmm rabbits
Greek-Boy: thanks thumbs
bridezilla: Hello?
fajita: Hail, bridezilla!
bridezilla: Why you be the ignored me?
thumbs: hay?
fajita: hay is for horses
Greek-Boy: thumbs: I'm also interested in using redirection with cloaking. Is there a web management tool for apache?
thumbs: bridezilla: pardon me?
thumbs: Greek-Boy: the best tool is a text editor.
thumbs: as far as 'cloaking' is concerned, I am assuming you're referring to rewriting URLs
Knorrie: Covener: thanks for listening, i'll stick aroudn
Knorrie: nd
Knorrie: &
coldflame: thumbs: http://rafb.net/p/oCvXP248.html
thumbs: coldflame: you have two vhosts for twoturtles.com.au
thumbs: keep the one in port 443 namevhost twoturtles.com.au (/Applications/MAMP/conf/apache/ssl.conf:85)
UserDream: how to create another web site with only 1 apache installation ?
thumbs: UserDream: by making vhosts
UserDream: htdocs, what should I do with it?
thumbs: fajita: vhost examples
UserDream: how?
fajita: Look at these for examples http://wiki.apache.org/httpd/ExampleVhosts : http://httpd.apache.org/docs/2.2/vhosts/examples.html
Greek-Boy: thumbs: i want to redirect http://webmail.mydomain.com to http://mail.mydomain.com/webmail
UserDream: is this the correct line to add on httpd.conf ? --> DocumentRoot /var/www/www.foo.com/htdocs
UserDream: DocumentRoot /var/www/www.foo.com/htdocs2
bridezilla: My httpd-error.conf is full of lines like this: "client used wrong authentication scheme: /" <-- What does this mean?
UserDream: I read the page
UserDream: and I dont see the line to add
coldflame: thanks for all your help thumbs, i got it fixed :)
Greek-Boy: in debian the main apache2 conf is /etc/apache2/sites-enabled/000-default right?
bridezilla: My httpd-error.conf is full of lines like this: "client used wrong authentication scheme: /" <-- What does this mean?
iateadonut: why do i have four php.ini's? why do i have two apache's? (debian) should i uninstall one of them?
jkitchen: debian
fajita: debian is "we complicate it for you so you don't have to" or see /usr/share/doc/apache*/README.Debian* or http://wiki.apache.org/httpd/DebianLikePlatform
iateadonut: fajita, what distro do you use?
fajita: i haven't a clue, iateadonut
jkitchen: priceless.
jkitchen: pets fajita
fajita: purrs.
beasty: lol
beasty: why are you petting a bot ? :p
beasty: that's like petting a dildo ...
iateadonut: fajita is a bot.
iateadonut: why is the bot named fajita?
iateadonut: fajita, why are you named fajita?
fajita: i haven't a clue
thumbs: iateadonut: are you done?
iateadonut: reading the apache wiki for debian?
thumbs: no, annoying fajita
thumbs: Greek-Boy: so use a simple redirect in the http://webmail.mydomain.com vhost
Greek-Boy: is it possible to hide the address it redirects to in the browswer address bar?
thumbs: yes, with mod_rewrite
fajita: with mod_rewrite is it possible to optionally expect paramters? Eg url could be pages or pages/1 or pages/1/hello or pages/1/hello/me?
thumbs: fajita: forget with mod_rewrite
fajita: thumbs: I forgot with mod_rewrite
thumbs: fajita: rewriteguide
fajita: http://httpd.apache.org/docs/2.2/misc/rewriteguide.html http://httpd.apache.org/docs/misc/rewriteguide.html http://www.engelschall.com/pw/apache/rewriteguide/ http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html http://rewrite.drbacchus.com/ http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
bridezilla: My httpd-error.conf is full of lines like this: "client used wrong authentication scheme: /" <-- What does this mean?
goudkov: hi guys. is there a way to return a 301 or 302 redirect using ssi?
gradin: ... whats it called when you have the default install and the index.html's are generated based on whats in the folder?
thumbs: fajita: DirectoryIndex
fajita: DirectoryIndex is http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex or http://httpd.apache.org/docs/1.3/mod/mod_dir.html#directoryindex
gradin: thanks
bridezilla: My httpd-error.conf is full of lines like this: "client used wrong authentication scheme: /" <-- What does this mean?
jkitchen: google client used wrong authentication scheme
google: Sorry, www.google.com's reply is unrecognizable.
jkitchen: bleh.
jkitchen: from the third hit: A 2002 analysis by eWeek Labs concluded that Internet Explorer Version 5.0, as well as later versions, implements digest authentication in a way that does not comply with RFC 2617. As a result, Internet Explorer cannot be used as a web client for a server that complies with the digest authentication standard.[1]
jkitchen: it's possible that's what the problem is. I like to blame IE whenever possible.
Tinason: anyone know what directory the apache docs get installed to in the ubuntu package?
thumbs: fajita: default layout
fajita: Pop along to http://wiki.apache.org/httpd/DistrosDefaultLayout for an idea on where the main distros place Apache files.
UserDream: I get this error.. how to fix it ?
UserDream: [Thu Feb 14 21:40:34 2008] [error] [client 127.0.0.1] client denied by server configuration: C:/Program Files/Apache Software Foundation/Apache2.2/trois/
bridezilla: jkitchen: Hmm...
UserDream: is this correct? ->
UserDream: <VirtualHost *:80>
UserDream: DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/trois"
UserDream: ServerName www.troisrivieres.org
UserDream: # Other directives here
UserDream: <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/trois">
fajita: <VirtualHost *:80> is in there,
UserDream: </Directory>
UserDream: </VirtualHost>
Ricoshady: how do I disable all access to .svn directories everywhere
iateadonut: hi. i just installed eaccelerator. does anyone know anything about it?
iateadonut: i have a question about benchmarking.
macksss: i see this i my error log over and over and over can someone help? "[Sun Feb 10 06:36:04 2008] [error] [client ::1] File does not exist: /htdocs"
macksss: anyone?
jkitchen: macksss: what part of it do you not understand?
macksss: jkitchen: client ::1
macksss: i do have virtual hosts set up and when i questioned google for an answer people recommended that i set the default root to somethong other than /htdocs however i have checked over my configs and i can't even find any of them containing anything about /htdocs
macksss: i am running apache2 on debian etch. I'd really appreciate some help because this appears to be the cause of apache becoming unresponsive after a few days
macksss: what i find weird about this whole thing is the apache configs haven't been tounched in ~10 months
macksss: jkitchen: you still there?
macksss: crumbs, i'm all alone
UncleChevitz: not entirely alone, just bereft of useful company
dan6470: i cant access my webserver from outside the local network...can anyone here help me with this?
macksss: UncleChevitz: :(
macksss: dan6470: turn off your firewall?
dan6470: lol...i've done that already
dan6470: is there anyway I can check if my isp is blocking port 80?
macksss: set up a server and tell someone to conenct to it
macksss: if they can't then they block it
dan6470: well my isp gives me the option to turn port 80 on or off....and its supposed to be off
macksss: is the server running windows?
dan6470: yea...windows firewall is off too though
macksss: that could also be your problem
macksss: windows sucks :D
macksss: ;-)
fajita: are you winking at me again? ;-) ;-) Hehehe.
macksss: fajita: please wake someone up to help me :(
fajita: macksss: what?
macksss: heh
UncleChevitz: windows does suck, I am offended by their assumption that I am stupid
nilou: hi, I have a problem with running python scripts under Ubuntu Gutsy (apache2), and I'm quite new in this. Where exactly do I need to copy the .py files and what modules do I need to install in order to get apache execute python cgi?
UncleChevitz: what OS u running?
UncleChevitz: nm u said
UncleChevitz: try that room nobodys paying any attention here
UncleChevitz: the Ubuntu room is hoppin tho
macksss: lol
macksss: UncleChevitz: does this look familiar?
macksss: ::1 - - [14/Feb/2008:22:52:04 -0600] "GET / HTTP/1.0" 404 198 "-" "Apache/2.2.3 (Debian) PHP/4.4.4-8+etch4 (internal dummy connection)"
macksss: after turning on combined log i seem to get those in my access log as well
UncleChevitz: ?? no I'm not real good at this computer thing
macksss: UncleChevitz: ah ok
UncleChevitz: seriously I've been using linuxxx for about 3 days and trying to figure everything out for myself, me likey technology but I'm a recovering windows user
UncleChevitz: macksss: assuage my curiosity, what is that besides the default 404 for an apache server?
Sefyroth: Hey guys, I have a little problem here. I'm trying to have a RewriteRule that redirects to my index.php page with parameters except when it's the "administrer" folder and this doesn't work at all: http://apache.pastebin.ca/904723
macksss: UncleChevitz: no idea
UncleChevitz: macksss: u r killing me, its killing me, I understand the memes, but not the grammer
macksss: hehehe
macksss: it's from my access log
macksss: i suspect it has something to do with the weird error.log msg i posted ^^^
UncleChevitz: =-O
UncleChevitz: macksss: Obviously, I don't know, but what have u changed reently?
UncleChevitz: U said u havent changed your Apch2 config in ~10 mnths, what is dffrnt then ?
Sefyroth_: ??
Ricoshady: I enabled user directories, and used AllowOverride All, and it won't read my .htaccess file
Ricoshady: any ideas?
fajita: thinking is *hard*!
mtsmith: hey everyone -- can anyone help me diagnose a (probably quite simple) .htaccess problem
iateadonut: i just installed eaccelerator. anyone know anything about it?
fifo_: I have a weird problem. I have a certain virtual host that doesn't work from a certain location. Other virtual hosts work on the same machine, and from certain locations this virtual host works fine
Onyx: I've added AddHandler server-parsed .shtml to httpd.conf, but SSI is still not working. Am I missing another step?
Oleander: does anyone know how i can tell what application is using what port on my pc? as when i try to start apache http server i get the error: could not bind the address 0.0.0.0:80 no listening sockets available
jpeg: lsof
fajita: lsof is your friend! lsof -i:80 to see what's using port 80. You may need to run lsof as root on some platforms
jpeg: netstat
fajita: netstat prints network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Use netstat -an grep -w 80 to check if port 80 is in use. (On linux, you can use netstat -pan to see which program uses the port, or -ltpn.) (For Windows use -ano to show the state, PID, and connection in IP not name format, or -abn).
Oleander: i'm on windows xp
Oleander: fajita: so i use netstat -ano ?
fajita: i haven't a clue, oleander
Oleander: ok i tried netstat -ano and got this TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 596
Oleander: would it be easier to change the port that Apache uses?
growltiger_: you probably have iis running which is why it cant bind to 80
Oleander: growltiger_: how to i change the port that Apache listens to?
growltiger_: listen
fajita: Listen tells apache what IP address and port to listen to. See http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen or see binding.
growltiger_: read what the fajita showed you
Oleander: ok will do thanks
crazney: hey, anyone know if it's possible (maybe with mod_alias?) to have apache check two locations for a requested file.. ie, if i go to http://foo.com/somefile.html it'll check /var/www/somefile.html and if that fails, /var/www2/somefile.html ?
growltiger_: speling
fajita: Get a dictionary, growltiger_
growltiger_: mod_speling
fajita: mod_speling is http://httpd.apache.org/docs-2.0/mod/mod_speling.html or http://httpd.apache.org/docs/mod/mod_speling.html
beano: hey Covener -- you around ? :)
Ellementa: .
xtuser: HI
growltiger_: hi!
fajita: hello! How are you today??
growltiger_: wb
xtuser: I'm trying to debug why in apache 2.2 I'm not offered a client certificate
jameso84: Hi all.
fajita: Oook!
gryzor: good morning
fajita: Good morning, sunshine! Welcome to another fabulous day in #apache.
jameso84: I'm trying to set up some 301 redirect rules, but can't seem to get it to work for my dynamic urls. I'm trying to redirect http://domain.com/page.php?id=55 to http://domain.com/page-1/ and http://domian.com/page.php?id=60 to http://domain.com/page-2/. I've tried a .htaccess rule such as "Redirect 301 /page.php?id=55 http://domain.com/page-1/" but it doesn't seem to work.
jameso84: I can get it to work for http://domain.com/downloads/file.pdf -> http://domain.com/files/file.pdf, but not for those dynamic page.php?id=x ones.
jameso84: Does anyone have any suggestions?
jameso84: Thanks.
gryzor: hmmm
gryzor: i dont think you can match query string arguments in Redirect rules
gryzor: possibly you're gonna have to use mod_rewrite
gryzor: and
gryzor: a RewriteCond
fajita: a RewriteCond is a check, not an apply
jameso84: yeh, that's what i figured. So I'm trying to use mod_rewrite.
gryzor: query string
fajita: query string is not matched in the Rule, you need to match %{QUERY_STRING} in a Cond
jameso84: ah ok.
jameso84: i was trying it in a rule.
jameso84: fajita: I'm getting closer. I have this:
fajita: jameso84: excuse me?
jameso84: RewriteCond %{REQUEST_URI} /page.php$
jameso84: RewriteCond %{QUERY_STRING} id=103
jameso84: RewriteRule ^.*$ http://domain.com/small-boat-cruise/ [R=301,L]
jameso84: but that is redirecting to http://domain.com/small-boat-cruise/?id=103. is there a way to remove the query string from the resulting url?
tenaglia: hi everyone
Eckos: im having trouble starting apache2. http://rafb.net/p/rnmYr075.html
mrbeano: Eckos, something else is alread running on port 80
Eckos: i did a bunch of netstat and lsof -i checks didn't find nothing
mrbeano: Eckos, nothing on netstat -nl ?
mrbeano: Eckos, hmm...
mrbeano: Eckos, you can try stracing the httpd process to make sure that the error reflects reality ..
Eckos: how i do that
mrbeano: Eckos, also what happens if you change the poer number
mrbeano: let's say to some weird unpirvileged port like 5555
mrbeano: strace httpd
Eckos: not found for strace
mrbeano: you need to install it thne
Eckos: okay doing it now
Eckos: okay i get * Starting apache2 ... [ !! ]
Ikarus: Does anyone know how I could configure Apache to only add cache control headers on local files, I use -f to see if the file is local and else hand it off to another server
Eckos: blah ill never figure this out
john_pipi: OS: Freebsd 6.2
john_pipi: Apache: 1.3.41+modssl
john_pipi: PHP: 5.2.5 - mod_php
john_pipi: We are having weird problems with Apache not being able to resolve hostnames when php scripts are using functions such as: file_get_contents, curl, fsockopen. It give the following error in php:
john_pipi: *Warning*: file_get_contents() [function.file-get-contents <http://mytechsupport.com/%7Ejohnp/function.file-get-contents>]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in
john_pipi: and this error in Apache's httpd-error.log:
john_pipi: * getaddrinfo(3) failed for domain.com:80
john_pipi: * Couldn't resolve host 'domain.com'
john_pipi: * Closing connection #0
john_pipi: If I run the php script at the commandline it works 100% of the time. If I ping or nslookup the domain from the server it works 100% of the time. I have alot of vhosts and thought it was a filedescriptor problem so I upped my FD_SETSIZE in /usr/include/sys/select.h:
john_pipi: #ifndef FD_SETSIZE
john_pipi: #define FD_SETSIZE 32768U
Eckos: quit flooding
john_pipi: #endif
john_pipi: and recompiled apache1.3.41 + modssl with -DAPACHE_FD_SETSIZE=32768
|
|

