500
500 is Internal server hosting Error
scriptlog
scriptlog is vhttp://httpd.apache.org/docs-2.0/mod/mod_cgi.html#scriptlog or http://httpd.apache.org/docs/mod/mod_cgi.html#scriptlog
headers
headers is see head
head
works too if you have LWP installed or wget -S or http://wiki.apache.org/httpd/Recipes/WatchingHttpHeaders
hmm why do i get the premature end of script headers error?? i didnt get them on the old webserver..
then keep using it
there are many reasons why you could get those.
Maybe your CGIs are not executable
maybe they incldue some library dependencies not installed on the new server
whatever
Some people eat hot dogs
excuse
High nuclear activity in your area.
fajita
Danielss89?
Bah.
humbug
I have this php webhosting as FastCGI setup.
Simple phpinfo.php script works fine.
But in different user's public_html I get this:
could not open log file
Permission denied
I completely fail to understand why.
suexec
suexec is http://httpd.apache.org/docs/2.0/suexec.html Enables you to run scripts under different user IDs. In case of Internal Server Error, check both Error Log and Suexec Log or It can't run CGI scripts through links, check http://archive.apache.org/gnats/9153
anyone got a crash course for building mysql hosting auth support into apache 2.2 on debian?
dunno about debian but you'll need the mysql driver for apr-util installed and mod_authn_dbd
hmms
if they don't package it, look at http://apache.webthing.com/database/
http://bahumbug.wordpress.com/tag/debian/
i missed the later of those. looking at debian's bug tracker it doesn't seem like they've packaged it yet..
heh. woz six months ago, *and* at their specific request
oh good good.. i did read that he agreed to relicence it but didnt know that it had actually been done
hi, can I easily run apache2 on two ports? both ports will bring users to the same site
Listen
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.
hello
i have two copies of apache
two installations
i want to disable one
and run the other one
freebsd
freebsd is hot
debian
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/Platform/DebianLike
ubuntu
ubuntu is an ancient African word meaning 'I can't configure Debian'
LOL
:P
Cento
centos
centos is http://www.centos.org/ - CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy
and aims to be 100% binary compatible.
100% binary compatible.? with?
mandriva
mandriva is see also mandrake
mandrake
mandrake is For Mandrake 9.1 or 9.2, please upgrade, change distros, or at least update apache. Ask me about open proxy or now called Mandriva
suse
suse is the retarded fat kid of distributions.
lol
fedora
fedora is http://fedoraproject.org/ - Fedora is a Linux operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together
as a community: the Fedora Project.
openbsd
openbsd is hhappy and funloving! or runs chrooted apache, which is a specialist subject or full of 'freedom' Zealots
netbsd
http://bash.org/?50938
:P
tomcat
Meow! The reference implementation of Sun's servlet api & jsp specs. See: http://tomcat.apache.org/ or see http://people.apache.org/~mturk/docs/article/ftwai.html to put apache in
front of it
sun
The day star! It Burns
java
java is great for engineering next generation solutions to enable maximization of developer income by means of enhanced buzzword useZthe future. assuming they can make the connector between tomcat/apache a little more solidQvery good at dumping meaningless exceptions giving no clue about the
real problemba funny little story at http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html
php
php is a scripting 'language' that is enabled by loading mod_php and AddHandler application/x-httpd-php php or http://www.devside.net/articles/php
perl
Check out #perl or http://www.perlmonks.org. To test a perl script, use \\ at a shell prompt. DO NOT use "perl scriptname.pl" as, that will mask shebang errors. .
shebang :P
damn we're sad
GNU
hi everyone
hi
anyone
vista
http://badvista.fsf.org/
windows
windows broken, please use door
LOL
microsoft
microsoft is at http://www.microsoft.com
xp
beos
beos is strange. DrBacchus is not sure if it is really considered unix
hi all, I'm getting [warn] NameVirtualHost old-dns:443 has no VirtualHosts when I restart apache, which .conf do I need to change to fix this? can't find it anywhere in the apache docs
that depends what you mean bu "fix"
its warning you (not an error) that you've defined NameVirtualHost but not used it
well, I wnat to set the conf up so I don't get this warning ofcourse
ah ok
so, what exactly is the NameVirtualHost looking for? I understand it has to do with setting up multiple websites under a single server?
blocks
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.
NameVirtualHost is a href="http://httpd.apache.org/docs-2.0/mod/core.html#namevirtualhost"http://httpd.apache.org/docs-2.0/mod/core.html#namevirtualhost/a or a href="http://httpd.apache.org/docs/mod/core.html#namevirtualhost"http://httpd.apache.org/docs/mod/core.html#namevirtualhost/a 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.
haha
in what way?
but, in which file do I set this NameVirtualHost? (I understand best is to give it the dedicated ip hosting of my server?)
that depends on whether you actually want to use it or not
what are you actually trying to do?
well, it depends on how the rather mysterious request matching system works. Allegedly he 'NameVirtualHost' has to be given in the name based 'VirtualHost' stanza too.
well, I think some time ago I set it to some vallue, now I just wont to get rid of the error durring restart, so I want to set it up "default" I guess
NameVirtualHost should only occur once for each IP address you wish to use Name-Based Virtual Hosting on
It may not be as simple as that...
just comment it out then. I'll be in httpd.conf somewhere
trust me, it is
I can't find it there ( /etc/apache2/httpd.conf that is)
q
Suppose that we have two IP addresses, 192.168.1.1 and 182.168.1.2 and Apache is listening on both.
then its in one of the files Included into that config
you'd have 2 Listen statements and 2 NameVirtualHost statemens
or, one of each if you're using wildcards
this is my /etc/apache2/httpd.conf http://pastebin.ca/597226
that isn't right. Which platform are you using ?
debian
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/Platform/DebianLike
haha
0' stanza, with 'ServerName WWW.Example.com' and 'ServerName
and someone connect to 192.168.1.1 and has 'Host: WWW.Example.com'. What happens?
that would be syntactically incorrect - you can only have one ServerName per VirtualHost
you'd have to use ServerAlias for any additional hostnames.
the second one is a 'ServerAlias' of ourse, don't be dense. Also 182.168.1.1 should be 192.168.1.1
in addition, if that was the _only_ virtualhost, then all requests that match 192.168.1.1 will be served by that vhost, regardless of hostname used.
assuming you don't have a main_server config
so the 'Host:' header would be ignored?
for working out which vhost block to use, yes. But it will still be used to create self-rererential links
*self-referential
hmm, there is no /usr/share/doc/apache2/README.Debian* :/
/etc/apache2/apache2.conf
how do i turn off loglevel warn
ahhh very interesting. So the role of 'NameVirtualHost' is to prevent the 'Host:' header be used to perform a role in matching the 'VirtualHost' stanza?
hmm wait
to allow, not to prevent
yes
you can change it, but I don't think you can disable it
thats what i meant
but i inadvertently asked that question here
i think its a php setting
LogLevel
LogLevel is http://httpd.apache.org/docs/2.2/mod/core.html#loglevel or http://httpd.apache.org/docs/mod/core.html#loglevel
thats screwing me over
that's moderately remarkable.
php has its own logging settings
what is?
only thing in apache2.conf I can find about virtual hosts is: # Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*
should I comment that line out then?
that 'Host:' plays no role in matching stanzas unless 'NameVirtualHost' is used for the target dedicated ip hosting address.
then its in one of those files
why should it?
make me wonder that 'NameVirtualHost *:*' should be the default in 1997.
well it should because this is not 1992, but 2007, and 'Host:' has been a standard part of HTTP 1.1 and some 1.0 backports for a decade...
ok, found it
also because of historical accident 'NameVirtualHost' seems aamzingly misnamed...
NameVirtualHost is used when you have a single IP address with several, different, DNS entries pointing to it, and you want Apache to be able to work out which content (ie: VirtualHost) a client is actually after
now to get costumized error responses enabled
If you have 1-to-1 mappings between hostname and ip address host address, you have no need for using NameVirtualHost
but which DNS entries matters not a bit to HTTP, or to an HTTP server. All that matters is target IP address and the 'Host:' header if present.
RewriteRule ^artist/([^/]+)$ /index.php?artistlist=$1 [R=301]
isn't matching numbers
i mean artists which start with a number
sure it does. you can't talk to a server without a hostname in the URL
given those two actually three (port, receiving IP and 'Host:') the HTTP server must select a stanza. it is sort of interesting that Apache will ignore 'Host' except on target IP/port combinations tagged by 'NamedVirtualHost'
having said that, if your client isn't setting the Host: header, its usually a bad sign
«you can't talk to a server host without a hostname in the URL» that's completely wrong...
ah nm it's not an apache proble
problem*
in effect all that matters there is static ip hosting address and port number. Th DNS name one uses in thr URL/URI is totally absent from the HTTP protocol.
you may get undefined results out of a server if you connect to it by IP address only
no, the results are entirely well defined.
for precicely the reasons why the Host header is used
I suspect that you are confusing the common fact that browsers set the 'Host:' header to be the DNS name used in the URL. But that is just a convenience. I can give you an example if you want.
I suggest you read the virtual hosting documentation if you don't understand the differences between them.
perhaps you should try a little experiment to learn about the roles of the hostname in the URL and in 'Host:'
try this: 'telnet www.sabi.co.uk' and then type 'GET / HTTP/1.1' and then 'Host: www.tidraso.co.uk' and then a blank line.
and then the same with 'Host: www.caledyn.com'
I know what would happen, but thats not how Web Browsers work
you will get two completely different pages, and neither of them has any relationship to the content of the 'www.sabi.co.uk' page.
guys, i have a clean installation of ubuntu-server with apache2. i've placed files into /var/www/ and for some reason my .htaccess file is being ignored. i've made some changes to /sites-enabled/000-default and now i get 500 error when trying to access anything.
sure, web browsers set the 'Host:' to the name in the URL; but the HTTP server hosting only knows IP/port/Host: whatever DNS name was used for the URL.
how can i make my htaccess file get recognized?
htaccess
htaccess files apply to the directory in which they are placed, and to all subdirectories thereof. or Only needed if you don't have access to the main server config. or http://httpd.apache.org/docs/howto/htaccess.html or http://httpd.apache.org/docs/configuring.html#htaccess or http://httpd.apache.org/docs-2.0/howto/htaccess.html or if it doesn't work, checkyour AllowOverride directives in
http. Ask me about AllowOv
AllowOverride
AllowOverride tells Apache what things you wish to permit in .htaccess files. See http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
Now my perplexity as to NameVirtualHost is as to whether its role is textual or not.
Blissex2, i've put All to allowoverride
depends on where, and whether also '.htaccess' has the right permissions to be read by the web server.
Hi, anyone have made some experience with mod-fcgid ? I just switched from mod_fastcgi , and i want to know if the PHP_FCGI_CHILDREN variable in my startscript is still necessary, as i read the mod_fcgid has better process management ( thats why i swithced ) .
0777, for testing. so yes, it has the permissions
does 'NameVirtualHost' tag an IP/port combination, so that it enables 'Host:' for that IP/port combo no matter how referred to, or does it have to be _textually_ matched in 'VirtualHost'?
then it should work and if it does not perhaps you have put 'AllowOverride' in the wrong place, or the '.htaccess' has the wrong syntax. Check the Apache error log for any signs of malfunction.
Blissex2, ohh, just noticed. it's throwing an error on RewriteEngine on.
that there was a syntax error was sort of hinted by the 500 code.
Blissex2, well, you're right any idea why it would not reconize rewriteengine on?
not loaded the relevant module?
Blissex2, where should i check to see if the module is in fact loaded?
best way is to enable the /server-info or whatever handler so you can see exactly how the server is configured, post-startup.
ubest way is to enable the /server-info or whatever handler so you can see exactly how the server is configured, post-startup./u
i'll dig into that.
thanks
else, put the 'RewriteOn' etc. withing 'IfModule modrewrite.c' or whatever
ok
if the error disappears it is because the module was not loaded.
anyone know how I can choose the root directory? I cant seem to find any reference to /var/www in the conf files
so wrap all rewrite related stuff inside an ifmodule directive. ok.
so is /var/www hardcoded into apache as the root html directory?
It's the default, you can change it in the config files.
Blissex2, solved, thank you very much. mod rewrite wasn't being loaded, apparently.
FauxFaux, thanks Ill keep looking
DocumentRoot
DocumentRoot specifies where apache should look for content. See: http://httpd.apache.org/docs/2.2/mod/core.html#documentroot or http://httpd.apache.org/docs/2.0/mod/core.html#documentroot or default layout.
hehe. Now you will have the pleasure to debug the Rewrite rules :-)
Blissex2, actually, that i know how to do quite well
fajita many thanks!
the person in the galaxy to claim they know mod_rewrite config quite well ;-)
Blissex2, ohh, well, didn't mean it like that, but i do know my way around rewrite rules. had to deal with them quite a lot lately. unfortunately.
uBlissex2, ohh, well, didn't mean it like that, but i do know my way around rewrite rules. had to deal with them quite a lot lately. unfortunately./u
ah well, at last (so far) you survived. The problem with mod_rewrite config is the increasing cost of the medication it requires over time :-)
thanks guys, I just found out where to look in the manual, and very extensive it is too
bthanks guys, I just found out where to look in the manual, and very extensive it is too/b
hullo ?
y'all gave up on freenode ?
you have never been in a quiet room?
I've never seen apache this quiet on a saturday afternoon, no
no newbies ? no problems ? no thumbs ?
haha
I can understand the confusion about thumbs not being here
we should make him a bot called fingers
Blissex2, sorry about quitting suddenly. the lights went off in the house :P
well, at least I have a good reason - freenode banned me !
uwell, at least I have a good reason - freenode banned me !/u
was Alias removed from .htaccess files in 2.0?
alias context
server config, virtual host
it seems so
hi all
All is not in today, jak2000
shush
http://mydomain.com/jak2000 and want see a directory list, how?
options indexes
Options +Indexes allows a directory listing to be displayed if there is no index document in the directory the user requested.
i got a error when i want too install ant
ant
ant is some java thingtry ##ant5##java (don't forget your HashHashJavaChannelFactory)9you may have better luck on the mailing lists than on ircan apache product, heh
i c
hi, what directive do i need to deny the listing of .php files and README files ?
in .htaccess
megaspaz, fajita thanks i try
rocketmagnet:
IndexOptions
IndexOptions is http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html#indexoptions for apache 2.0 http://httpd.apache.org/docs/mod/mod_autoindex.html#indexoptions in 1.3 http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions for
apache 2.2
indexignore
indexignore is http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexignore
indexignore, why?
Is it possible to use a "Redirect permanent" with some wildcards? Like: "Redirect permanent /ppi(.*) http://downloads.example.com/snapshots/ppi($1)"?
because it does what you need to do
whatta meanie
:/
So.... is it possible?
RedirectMatch looks like the right one
hehe
redirectmatch?
redirectmatch is http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirectmatch
ok
SOmething like this?
RedirectMatch /ppi_(.*).prc http://www.plkr.org/snapshots/ppi_$1.prc
should work
Hrmph
Hit this:
http://www.plkr.org/ppi_zh_CN.prc
And see what happens
one sec
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).
I've been there... no errors, it just repeatedly redirects
Then fails
yeah
that's called an infinite redirect
you need to anchor your regex
redirecmatch ^/pp_blah http://blah.com/snapshots/pp_blah
redirecmatch ^/pp_blah a href="http://blah.com/snapshots/pp_blah"http://blah.com/snapshots/pp_blah/a
:/
That works, you're right
hi all
All is not in today, |messiah|
heh
saturday maybe are resting
no. she is right
the person with the nickname 'all' is not in today.
hi [a-zA-Z0-9]
hw about hi everyone?
I have a problem with my apache 2.2, I speak in spanish so we write with accent, I had a site in apache 1.3, I move it to other server hosting with apache 2.2 and now all the accent appear like ?, for ex. sólo appear like s?lo,
what I need to change?
adddefaultcharset
adddefaultcharset is http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset
I was reading about the codification of apache, but I try others I think there is not the problem
I read that
try that
change the charset with firefox until you find the right one
then use that in your config, and restart apache
I have UTF-8 as default
I think is fine..
nickometer |messiah|
'|messiah|' is 26% lame, megaspaz
utf-8 is not likely to work
change the charset with firefox until you find the right one
then use that in your config, and restart apache
let me see
meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /
I have to change to UTF-8 right?
no
I told you what to do
find the charset that WORKS with the firefox menus
ok
then USE THAT IN YOUR HTTPD.CONF
also, make sure all your pages output the proper charset
/usr/bin/file might know if your files with accented characters are utf-8 or some other local codepage
although probably a bit of a crap shoot at that small distinction
utf-8 is almost never the right charset for such languages, in my experience.
hence my recommendation.
where should i be for ant again?
why the guessing? Get the proper charset from FF (it's reliable) and use that.
ant
ant is some java thing. Try ##ant5 or ##java (don't forget my HashHashJavaChannelFactory) or you may have better luck on the mailing lists than on irc or an apache project, haha
thanks very much
##ant5
ok
##ant5?
that a typo?
must be
?
heh... ##ant has on user... FauxFaux ... and ##ant5 has one user... xdemondogx
s/on/one/
lol
heh... ant on irc seems to be quite useless...
mhmhmh
karma java
java has karma of -20
java--
hello
niihau, trend.
RewriteRule /phpBB2/ /
if it's in htaccess the /phpBB2 is wrong... drop the leading /
oh
is this right:
2
the perms look fine
allowoverride none
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
allowoverride
AllowOverride tells Apache what things you wish to permit in .htaccess files. See http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
you also need to set the right override in order to use htaccess
in your main apache config
do I need to seperate the things by tabs or spaces?
why are you using htaccess when you have access to the config file?
apache config should be setup right. i talked with the hosting company, and they said just add the htaccess file and iwill be set
garbage
try putting junk in your htaccess file. If it's being read, you will get an Internal Server Error when accessing that resource.
^^
heh.. the long debate between the 2
htaccess can be changed on the fly
and that is the only file i have access to
garbage
try putting junk in your htaccess file. If it's being read, you will get an Internal Server Error when accessing that resource.
^^
to use rewrite, you also need RewriteEngine on
yup, did that
RewriteEngine On
RewriteEngine On is required if you plan to actually *use* your RewriteRules rather than collect them
RewriteRule /phpBB2 /
is my whole file
leading /
leading / is removed.
we said drop the leading /
shush
forget leading /
I forgot leading /
dangit
i need a 301 rewrite I am guesing then
http://security-archive.com/phpBB2/
if he does.. i want him to be redirected to http://security-archive.com/
RedirectMatch ^phpBB2/$ http//security-archive.com/
can i encode strings with mod_rewrite? i pass ?path=path to folder and it has & in its name, but i want to pass ?path=path%20to%20 and so on, and replace '&' with its hex equivalent too
[r]
[r] is a redirect
^^
granny
Granny Weatherwax tells us the most important thing about magic is when _not_ to use it. The same is true of mod_rewrite.
actually if you use redirectmatch, you can keep the leading /
ok
http://security-archive.com/phpBB2/
add the leading / then
do I take out the carrot after the redirectmatch ?
RedirectMatch ^/phpBB2/$ http//security-archive.com/
tab completion is your friend
http://security-archive.com/phpBB2/
thumbs, lay off
you have been wrong everytime a new idea has come across
ut oh
.htaccess it the only way for me to do this since i am not on my own post
i cannot tab complete because i am not using bitchx
um, I suggest you be respectful.
nor another one that can do tab complete
bitchx has completion
servertokens security-archive.com
Apache/1.3.37 (Unix) PHP/4.4.6 mod_throttle/3.1.2 mod_psoft_traffic/0.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
servertokens www.gnu-designs.com
Apache
bonk
did it throw an error or not when you added garbage to your file?
i only get 500 error when I add the newest revision of th redirectmatch
step one
RedirectMatch ^/phpBB2/$ http//security-archive.com/
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).
about being wrong, I was simply trying to make sure the htaccess file was being read. You never told me if it was.
step three
step three is to blame anyone who tries to help
servertokens www.gnu-designs.com
Apache/2.2.3 (Debian)
aw
oh, they way you said.. don't use .htaccess confuse me
hmm
that was the initial comment, and has been dealt with 10 minutes ago
servertokens www.gnu-designs.com
Apache/2.2.3 (Debian) mod_auth_kerb/5.3 DAV/2 SVN/1.4.2 mod_ldap_userdir/1.1.11 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch4 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) mod_ssl/2.2.3 OpenSSL/0.9.8c mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8
shazam
man.. i wish phpbb used al relative links
the next step is to verify that apache actually reads your htaccess file.
I wish phpbb used php instead of abusing it
adaptr++ on that one
fajita, karma adaptr
adaptr has karma of 9
none of those points are from you, girl... I'll be watching you !
fajita, karma setuid
setuid has karma of -5
hahahahahah
Wait, I never have to use ant ever again! 3
setuid--
aw, can't karma myself
well, duh
A child of five could understand this! Fetch me a child of five
A child of five could understand this! Fetch me a child of five
karma setuid
setuid has karma of -6
Sweet
wait, only -- I hope
setuid--
fajita, karma setuid
setuid has karma of -6
or I could bot myself to superstatus
weird
Yeah, someone /msg'd it of course, ah well
karma setuid
setuid has karma of -15
thumbs+$US_Deficit
They had to add an extra placeholder on the debt calculator thing in Times Square
ITYM underflow - last time I checked, the US was in debt somewhere around $500 trillion
500 trillion?
O.O
lots of zero;s
14, yes
I guess one could percieve that as "lots"
Its $20k/second.
http://www.metimes.com/storyview.php?StoryID=20060327-062904-1451r
thanks guys for trying to help.. phpbb you can just change an option in the config for rootdir
I have a little trouble with Alias and a RewriteRule
I have 'Alias /vexim/ "/var/spool/vmail/vexim/"' and 'RewriteRule ^/vexim(.*) https://%{SERVER_NAME}/vexim$1 [R,L]'
But Apache2 keeps searching vor vexim in /var/www/
hola, I setup a certificate (ssl) when apache stars ask me for passphrase... I know about SSLPassPhraseDialog that allow to pass the output of a file with the passphrase, so I write a file with echo passphrase and in httpd.conf do SSLPassPhraseDialog exec:/myfilename, but apache fails when
start
its probably easier to remove the passphrase. "openssl rsa -in key.pem -out keyout.pem"
urgs. nvm, i got it
•Roobarb• this don't interest the certificate file ?
the passphrase is on the key, not the cert
password?
I'm not tellin'
spoilsport
fajita++ # nice 'n secure
I am trying to get mod_jk working under apache2, I seem to be right on the edge because when I attempt to call test.jsp it shows as an Apache Tomcat/5.0 request but it I get a 404
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).
I don't necessarily folllow how to define a webroot for the worker
would it be under the apache or tomcat error log though?
if you have nohing in the apache log, that will be tomcat
motd
The last time anybody made a list of the top hundred character attributes of New Yorkers, common sense snuck in at number 79...
•Roobarb• But now I haven't a pem file
?
just change the filenames in the openssl command to be whatever you currently have. "keyout.pem" is what gets created
0 2007] [error] an unknown filter was not added:
what this can be?
mod_include
mod_include is http://httpd.apache.org/docs/mod/mod_include.html or http://httpd.apache.org/docs-2.0/mod/mod_include.html
anybody know a good user-agent tool? I want to be able to break user-agent strings down: IE OS=Win XP Browser=IE Version=6.1...i don't want to reinvent the wheel
niq, this can`t be mod_include
what for? stats analysis?
I want to store in database and see which browsers may be having trouble with our ajax...it would be great if the strings could be broken down into: browser, OS, Version, aol/not aol, etc...so we can analyze conversions across multiple parameters to find ajax problems.
I don't want something that just analyzes our log files...I want something that i can put in our 'session' table from the getgo
I see. I'm sorry, I don't have a useful answer.
no problem...thanks anyway
indura.com have a fancy (commercial) tool for detailed analysis of who is having trouble with your apps
you might want to look
how can I redirect 1 or many IPs to another file?
rewriteguide
http://httpd.apache.org/docs-2.0/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
thanks
I am running debian - want to make virtual hosts (I have three names for one IP address) - none of the tutorials out there got me there - is anyone willing to help me out ?
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
are u sure about indura.com? seems odd site
put all the vhosts in 000-default in sites-enabled.... under the first vhost there.. just to make sure that you fuck up as little as is debian-possible.
I know how to use mod rewrite, what I don't know how to do is make a specific IP go to a specific file.. can you help?
yeah. Not sure how they present it though.
also - I was wondering what is the best practice with regard to location usually /var/www/ is the location for the websites - do you recomend /var/www/ to be in a separate hard disk (or partition)?
they collect much more data than just a log, and analyse it. At least, that's the theory.
I do not know why every distro have to have their changes and does not let things as designed - however it seem there is no choice but to make it work somehow
heh heh
default layout
Pop along to http://wiki.apache.org/httpd/Info/DistrosDefaultLayout for an idea on where the main distros place Apache files.
use a rewritecond on the IP.
Debian's a tough case
blame debian. Summon thumbs if necessary
I am thankfull for Debian - however there are times where I cannot see logic - obviously this might be due to my lack of knowning details
heh heh
which is the Best Book on Apache (2.2 if possible )?
tfm
The Fine Manual is generally a better reference than anyone's memory. Read it - especially pages we point you to! Ask here if you need help finding the relevant page,need help clarifying some detail
what about Rich's books?
... unless you ask something more specific ...
well.. he said book. hmmm... right.. there's some...
I thought the question too vague for a specific answer.
modules book
modules book is http://www.apachetutor.org/
modules book is a href="http://www.apachetutor.org/"http://www.apachetutor.org//a
but not for everyone
:P
it's very well written, btw.
:-)
I'm having some problems with apache 1.3 + mod_perl. For some reason mod_perl isn't releasing its RAM between requests and the binaries grow to 256Mb. Is there some way in apache I can say, kill of a chiild process once it reaches a certain size in Mb?
1.3?
1.3 is the 1998 release of apache. Do you use Windows 98? Slackware 4? Redhat 5?
Well, it's 1.3.37_3 on FreeBSD 6.2, to be exact.
servertokens httpd.apache.org
Apache/2.3.0-dev (Unix)
(bit more up-to-date)
And for bitching.
1.3 implements HTTP/1.1, does it?
yeah, at the front at least
??!
do elaborate.
1.x mod_proxy is HTTP/1.0 only ...
ugh
I'm hungry, I think.
mmm
mmm, silicon chips with copper ketchup
could it be, btw, that your application sucks...?
also, did you try setting MaxChildRequests or what it's called -- if there is such a thing in 1.3 *cough*
maxrequestsperchild
maxrequestsperchild is http://httpd.apache.org/docs-2.0/mod/mpm_common.html#maxrequestsperchild or http://httpd.apache.org/docs/mod/core.html#maxrequestsperchild
hi
hello, jazzanova.
You know the 1.3 branch has worked very well. I could upgrade to 2.2 or 2.5 today if you guys think it is worth it.
I mean 2.4
using too much paging space is a good reason to upgrade. What was the 256mb?
I'm still pretty convinced it's the application.....
But that's just me...
yep. sounds likely.
can perl app really be guilty if rss grows between requests? (vs perl/mod_perl/apache)
hi, is it possible to disallow some file extension in .htaccess file ?
files context
server config, virtual host, directory, .htaccess
so i need the "file" directive ?
yes, or filesmatch
filesmatch?
filesmatch is http://httpd.apache.org/docs-2.0/mod/core.html#filesmatch or http://httpd.apache.org/docs/mod/core.html#filesmatch
it wastes space.
files, order, and deny
Covener?
Covener is a smart guy. He's said he works on an httpd for win that's derived from apache.
and satisfy?
satisfy is http://httpd.apache.org/docs/2.2/mod/core.html#satisfy or http://httpd.apache.org/docs/mod/core.html#satisfy
Well, I'm sure it is the application, and it does suck... but we have to use it
Covener is that true what fajita just said?
i assumed it was one of those random nonsense things not a specific factoid
i'm smart and i work on a commercial apache (all platforms)
Is it allowed to say of yourself that you're smart?
Only because fajita said it first!
hehe
is your company a name we'd have heard of?
I'm just very wgron :-/
yes, an oft-abreviated one
It's Being Mended?
International Business Machines?
we have a winner!
so much for coy
hehe
Netcraft confirms, Apache is dead.
?
wish i knew, rocketmagnet
isn't there an example in every default conf file?
oops, you're going in a different direction now
Hi, I can't seem to get the HeaderName and ReadmeName directives to work.
I have the mod_autoindex module loaded
And there's nothing in the error logs
Did you set them to README.html and such?
What's a reasonable value for MaxRequestsPerChild with my memory problem?
dahunter3, 0
But the html file doesn't get appended/prepended.
dahunter3, You're confused
track how fast it grows
KillerX, Is it in the right stanza?
i'm working on a shared webspace and only have my .htaccess file
directive.
Why am I confused?
dahunter3, You understand what that value does?
i just want all my files only be viewable by the webserver (so nobody can list the xml files in the directory or by direct giving the name)
Good idea. I'll try setting it to 100 first and then see the average memory usage.
Its the number of times that _single_ apache child process can respond to requests, before it is killed off and replaced with a fresh child
Yep, that sounds like almost exactly what I need for this particular problem until we get to the root cause.
Your application is leaking?
either that or fix your application...
Having the average memory usage will, and looking through pmap should also give me a good value for MaxClients
Yes, that's next, I just have to make it until we can.
250Mb and just stays there.
rss? vsz?
hm?
was just looking at that, let me see here, for one pid I get:
i'm installing httpd on home office computer for development ... not sure about dns/server address values in install dialogue ... are there any recommendations and/or info sources other then dns issues page in manual?
Okay, so of 250Mb, 45Mb was shared and the rest was private.
system has dynamic ip from cable modem router ... router has dynamic ip from dhcp server
is there a newbie mailing list?
you can lurk on users@httpd and pick up plenty
thanks ...
can i comment with /* this */ and //this ?
in .htaccess
sup everyone
acehigh
can i comment with //this in .htaccess?
needing to know how to install the 2.2 build on freebsd. ive tried apache2, apache20, apache22 and none make install
I use #
but it also depends on the system your using
most *nix systems accept #
use the # character for comments
off now o/~
anyone have a idea why the ports does not make the install for apache?
thanksd roob
i'm having some issues with apache in windows
trying to get some vhosting going on my localhost
subdomain.localhost mainly
http://pastebin.ca/597723
hi, i have a small problem with apache on a server, i need apache to read syslog, anyway if i change the persission with chmod, the next time the file will be recreate it have the previous permision, how can i change forever the permission to /var/log/syslog ( i'm running ubuntu-server )
Fix the permissions in your newsyslog setup?
Or in whatever syslogd you use.
or logrotate
logrotate is supercool or see rotatelogs
i don't know where to change that
you can add a chmod to the postrotate section of your logrotate config
anyone know why the ports tree in freebsd 6.2 does not make install apache22?
hi
hey, SirSherlock.
that'd be a question for #freebsd
actually if you man logrotate there is a directive for this: create mode owner group
what is the default mpm module when u compile apache from source?
prefork
prefork is http://httpd.apache.org/docs-2.0/mod/prefork.html and is what you need for various dodgy software including PHP
what about worker, is that threaded?
Roobarb im trying to ask there alwso and noone is answering hince why im asking here
i didn't setup logrotate, some other person done that, i'm looking for it...
i got a low-end system with no alot of ram - mY QUESTION - which MPM should i use??????
logrotate is installed by default on all linux distriutions i know
nut i haven't never look at it ...
but*
i add a chmod in the cron.daily script i hope it works... i'll see tomorrow. thank you for your help
Is there a guide to configuring the index pages of directories without an index file?
Sorry abotu the color.
you did not send any colour codes
indexstylesheet
indexstylesheet is http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexstylesheet or not in 1.x and 2.0
^^
This message right now is not showing colored background or text?
wow
is vhost also known as /etc/hosts?
Thanks for the link, that's what I'm looking for.
sure
/etc/hosts relates more to your OS i believe
what?
stop talking to the bot
wow
i am intrested in a directive that i must pu in a vhost.conf so the php.ini path is different
wow is there a bot in here?
why
wow
is vhost also known as /etc/hosts?
wow
[ AndroidData] the webserver will be running as root
wow
-!- newadmin [n=root@59.95.40.165] has joined #apache
wow
i wanna escalate my previlages from a user:apache to user:root on a remote system.
ah
wow
[ foo] thumbs: Could a segfault cause apache to prompt the user to download a php file instead of view it?
bot ?
I am a bot. I am not a sentient being. I cannot hold intelligent conversations.
hahahaha
so she keeps telling us
I don't believe it for a minute
I'm having trouble setting up CGI with apache2. The source file gets sent over. I have double checked every step in the tutorial and still no luck, any idea what might be the problem?
cgi
cgi is http://httpd.apache.org/docs/2.0/howto/cgi.html
that's the tutorial I mentioned. I checked every step, no luck
I suggest you did miss something, though
setting up cgi requires ~3 commands
yes, there isn't much too it, it's unlikely that I missed anything after rechecking 5 times now
sample url
Could you please give us a URL at which the behavior is demonstrated. This would help us troubleshoot the problem.
it's on a local machine behind a router, I don't have access to set up forwarding atm
have you cleared your browser cache?
what does the error log say, exactly?
nothing, there's no error, it jsut sends over the file
pastebin the directives you used to enable cgi support.
How can I set a non-recursive DirectoryIndex in .htaccess? So I want to set the directory index for /foo, but it should NOT be applied to /foo/bar or /foo/boink.
set it in each subdirectory
i.e. DirectoryIndex foobar2.foo
http://pastey.net/70109-45gk
or if you'd like to make it so people can list the content of directories, try
Problem is that I will be adding subdirs pretty often and don't want to have to add .htaccess files to each.
Option +Indexes
Options +Indexes
Options +Indexes is If a URL which maps to a directory is requested, and the there is no DirectoryIndex (e.g., index.html) in that directory, then the server will return a formatted listing of the directory.
it's recursive. No way around it.
Hmm, I see I had set it to /foo.cgi. Perhaps if I set it to foo.cgi, it won't apply to the subdirs since that file is only in the root&
w00t, that worked.
put the AddHandler out of the directory block.
Thanks for helping!
sure...
no luck
does "httpd -M" show mod_cgi ?
it has cgi_module
have you cleared your browser cache?
yes, even used a different browser
your script ends in .py yes?
of course
what is the full path to the script?
/var/www/toutoran/index.py
I'm stumped then
what yuo have should work
which is why I'm extremely frustrated
there seems to be no reason at all for it to not work
try using ScriptAlias instead
a conflicting directive?
a conflicting directive is overriding the format
how so? there are no other directives relating to that directory, and those directives are the last in the file so shouldn't they override anyway?
you don't have a .htaccess in the same directory do you?
good call
no
ok, try scriptalias.
I did, got Forbidden.
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).
what does the error log tell you, exactly?
nothing, there's no error!
random question
you're lying
I'm insulted
a 403 will ALWAYS generate an entry in the error log
always.
always is "Server not found"
i'm using netfirms for hosting and they have their htaccess setup in such a way that, when i directory lacks an index file it WON'T display the contents of that directory
you're looking at the wrong log, then.
instead it just says 'oh you don't have access to this'
is there any way to override this in my own global htaccess?
so that a directory without an index file WILL display it's contents?
Oh my bad, I tried ScriptAlias earlier, going to retry and recheck
try adding "Options +Indexes" to your .htaccess
thanks
sweet
thank you kind sir - but, are there any other configuration options i can tinker with to change the way contents are displayed?
(better yet, any kind of master manual for htaccess - everything i see on google is pretty basic)
now I'm getting the same thing with ScriptAlias, it gets sent over as text
mod_autoindex
mod_autoindex is http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html or http://httpd.apache.org/docs/mod/mod_autoindex.html
IndexOptions
IndexOptions is http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html#indexoptions for apache 2.0 http://httpd.apache.org/docs/mod/mod_autoindex.html#indexoptions in 1.3 http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions for
apache 2.2
read those links ^^^
did you chmod +x the file?
thanks
yep
do you have a shebang line in your script?
yes, but wouldn't that generate an error instead?
no, it's required.
as per the cgi docs
I know it's required, I have it, but I assumed it would throw an error. any other possible culprits?
well with scriptalias, +x and shebang, you should be good to go.
Roobarb, any idea why Options +Indexes works like a charm
unless your shebang line is wrong.
eh?
yet IndexOptions +FancyIndexing does nothing?
which it isn't, script works fine from commandline
better yet, how do i check which modules are enabled under apache by my webhost? will perl do it?
try phpinfo
sweet
I'm not sure what else could cause an issue. WHat apache version is this?
if your webhost doesn't have "AllowOverride Indexes" then I think the best you can do it turn them on but not fiddle with them
Server version: Apache/2.2.3
you cleared your browser cache?
yes
do you run suexec?
no
you're getting the file sent rather than executed, right?
im just gonna start over from scratch
RewriteCond %{REQUEST_FILENAME} !-d \n RewriteRule ^(.+\.git)/?$ repos/$1/ http://git.nyh.se/test.git/ works as expected (that directory is actually in the repos subdir). http://git.nyh.se/test.git will visibly
redirect to http://git.nyh.se/repos/test.git/ though.
sure, make a simple empty config
And http://git.nyh.se/testy.git/ will visibly rewrite the URL as well, though /test.git/ worked. Very, very weird.
isn't test.git a directory?
Yup, they all are.
Doesn't rewriting work for dirs?
sure
but your rewrite cond says "if it's not a directory"
apc
Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'.
That's just to keep it from recursing. There is no directory at /foo.git, so the rule should still apply to redirect silently to /repos/foo.git. While someone trying to access /repos/foo.git would not be rewritten due to the rule.
what directory context is that rewrite rule in?
oh, ok i see what you've done.
The .htaccess file is in the web root, and there's no RewriteBase declaration, if that's what you mean.
so http://git.nyh.se/test.git rewrites to http://git.hy.se/repos/test.git
which is a directory
i already had it that way, rici.
so mod_dir sends a redirect to http://git.hy.se/repos/test.git/
and the second time your rewritecond causes the rewrite to do nothing.
Weird, after changing the rule to rewrite to /r/& instead of /repos/&, http://git.nyh.se/testy.git/ still rewrites to /repos/&.
browser cache?
Browser caches can be very persistent. Restarting the browser, or even rebooting, will not necessarily clear the cache. You must expressly clear the cache via the menus.
I'll try another browser.
Ah, yes, worked in another browser. Thanks.
FYI, I've just used these 3 methods to enable CGI on my server: http://apache.pastebin.ca/597865
and "test.cgi" (a perl script) returns a bunch of stuff
So with the cache quirks out of the way, it seems like it becomes a visible rewrite if I access somedir as opposed to somedir/. So presumably this has to do with Apache rewriting the URLs again to tack on the / for dirs.
yes, that's what i mentioned above
yes
DirectorySlash
DirectorySlash is http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryslash
if you don't want that to happen, do your own visible redirect first
Hm, like visibly rewriting somedir to somedir/ you mean?
eg rewriterule (.*\.git)$ $1/ [R]
Cool, will try, thanks.
sorry [r,l]
KeepAlive
KeepAlive is http://httpd.apache.org/docs-2.0/mod/core.html#keepalive
Hi all.. is there a way to verify that mod_deflate is actually deflating stuff?
i have a strange effect. i want to use ldap for basic authentication, but it doesn't work. When i supply a wrong pw, the error log says that auth failed. if i supply the right one, the error log doesn't show anything, but apache sends a 401 again! what could cause this?
sniff the packets, log the actual bytes transmitted, ...
hmm
care to pastebin the relevant config lines?
for the second option
mod_log_io
or ...
Hey, so, I've got a problem. localhost doesn't respond, and httpd is started. anyone has a clue?
umm, something like that
ok... will google it
what does the error log say, exactly?
nothin'
mod_logio
mod_logio is http://httpd.apache.org/docs-2.0/mod/mod_logio.html
what is httpd listening on?
netstat -ltn
80
what:80 ?
0.0.0.0:80
is there anything in the error log? does it tell you that apache has started successfully?
os?
with an extra 0.
pacman
try the netstat line if you're using linux
wait a sec
pacman?
pacman is 476 KiB
uhm
sorry :p
arch
arch is Ma version control system by Tom Lord or http://www.gnu.org/software/gnu-arch/a slackware(?)based distro
- stoned
http://rafb.net/p/WiXFCx43.html
I'm trying to get apache2.2.3 to run this perl cgi script (its twiki), but for some reason it keeps just giving me the configure script as a plain text file. far as I can tell I have the cgi stuff setup correctly and there are no errors in the errors log.
what does netstat tell you?
cgi
cgi is http://httpd.apache.org/docs/2.0/howto/cgi.html
^^
http://rafb.net/p/wB5r9h61.html
check with ps. Make sure apache is running
?
netstat
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).
make sure your cgi is properly configured. Read the link fajita gave you.
ah, thank you
http://nopaste.org/p/aScP1StJY
http://rafb.net/p/Eirkpx76.html
looking
try telnet localhost
see if it responds.
doesn't respond to ping'ing, so, nope, doesn't respond
apache version?
oh, I think I just figured it out. Is there a way to have it treat _any_ executable file as a cgi? this files don't have a .pl on the end
2.2.x
right, i should have figured that
scriptalias
scriptalias is http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias or Don't forget to load mod_cgi
^^
you need AuthLDAPAuthoritative Off
thanks
otherwise, require valid-user won't work
AuthLDAPAuthoritative
AuthLDAPAuthoritative is http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html#authldapauthoritative
ping? huh, it's running on the same box. Just telnet to the localhost 80
s:2.0:2.2:
docs said i need that if i need a fallback to files
you do need that if you fallback to files
or to valid-user
http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html
search for the header "require valid-user"
doesn't react.
at all
try listening to port 8080 in apache, and restart it
have we tried the netstat command yet?
can't confirm, he never said
apache httpd is only listening on ipv4, but localhost is also ipv6
I did..
http://rafb.net/p/wB5r9h61.html
ok, switchin to :8080 doesn't change a thing
try using 127.0.0.1 instead of localhost
nope, nothing
anyone ? =/
no change :/
apc
Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'.
let me look again
is that actually a trac installation?
i haven't tried a trac install for a while, but i vaguely remember that trac will generate 401's all on its own
it doesn't when i use file-based auth
what distro are you using, again?
arch
does trac know about the userid?
getting a 401 without any log message often means it's coming from the cgi/origin server
it uses it for some stuff
are you sure you're editing the right config file?
yeah, so is that particular one in its collection of known userids?
hi
have you tried http://localhost:8080 ?
that 401 without log message went away though, i changed the password on the ldap server and now i get an error every time :/
I'm quite sure yeah
well, that's different at least
and I did try localhost:8080
it handles unknown userids as new users
I have an apache2 instance that's a reverse proxy and also serves some static files directly
all .php files are fetched from a backend server
I have mod_dir and mod_autoindex loaded
then you're doing something wrong. If apache is started and running, it will respond on the port
try telnet localhost 8080
the problem is that instead of getting a directory listing, apache tries to fetch index.php, and if the backend server returns 404, the autoindex doesn't appear
Options +Indexes
Options +Indexes is If a URL which maps to a directory is requested, and the there is no DirectoryIndex (e.g., index.html) in that directory, then the server will return a formatted listing of the directory.
instead, the user sees 404 not found, the requested URL something/index.php was not found on this server
indexes is enabled
if I remove index.php from DirectoryIndex, then the autoindex does appear
telnet doesn't do anything =/
I have something like RewriteRule /(.*).php(.*) http://backendserver/$1.php$2 [P,L]
it's kind of odd since i can log in from the command line
this returns 404 for the nonexistent index.php
and mod_autoindex never gets a chance to run, once this happens
any way to work around this?
40
403
403 is Forbidden or don't forget to look in the error log
Guy-: so you want that to work whether or not there's an index.php on the origin server?
yes; if there is no index.php, I'd like mod_autoindex to kick in, provided Indexes are enabled
hmm...
Guy-: i can't think of any simple solution to that