http://wiki.apache.org/httpd/Recipes/Different_UserIDs_Using_Reverse_Proxy
bottom section, "alternative proxy configuration"
the proxy server
host process uses a simple 25-line config, and can dynamically
respond to changes in the back-end configuration,
since the changes are entered in a rewritemap
what a fantasticly elegant, yet powerful solution
you can start the backend servers as the specific users
and then you get to start and stop them without affecting anyone
else
indeed
i think it's better than the config at the top of the
page
rici++
back
but i didn't want to override slive
was anyone able to have a look?
If anyone gets Tangaroo please reset their Paradyne dsl
modem
im sorry
that was an accident
...
8|
rici:
was there anyway to confirm the disk is dying?
you need to setup pid files for each process ?
yes
pidfiles and scoreboardfiles
in the chroot environment, it's easy; you can just use the
default paths
using -d /path
that works too, if you make the pidfile and scoreboardfile paths
relative
since relative is relative to the serverroot
either way you can use a standard include to get that stuff in
there.
k
you can also leave out the listen directive from the backend
hosts,
if you put it on the startup command line
i was thinking it should be possible to construct the startup
lines from the host_to_ip file itself, but i haven't done that
yet
i'm sure there's a nice elegant canned solution.
it should be as easy as some grep + awk
yeah, basically
i was thinking of putting # alias at the end of alias
lines
that would make it easier to grep
pfffft
come on, jMCg, can't you spell
:-/
or alternatively # startup at the end of non-alias lines
or something
anyway, it's just a rough sketch of an idea
the other way of doing it would be "make host_to_ip"
that would be the bsd way
lol
everythings always a make file
Is it possible to make separate php webhosting
configurations for separate virtual hosts in apache?
sure
you can add specific ini file overides and/or change what the
main ini file is
there's plenty of howto's explaining exactly how to do this for
fast_cgi [+suxec/suphp]
You cannot do this with hhmmmmmmmmm
php_admin_value
i guess php_admin_value is a way to force php configurations to
change for specific locations. See also http://www.php.net/configuration.changes
thanks alot!
Nope :-/
directive by itself with out the auth. The auth works with
out the redirect. I just can't get them to work together. It
requests the user authe
affect.
Could someone give me some good "how to" articles on how to
configure multiple tomcats to Apache server http
i'm trying to restrict the size of my apache access.log file to
50megs and then rotate it out. how do I go about this? i'm using
ubuntu fiesty
content_negotiation should be transparent to content type by
default right?
ubuntu-rocks: Apache has no inbuilt facilities to limit the
size of a logfile, or to rotate it. Use logrotate to deal with
this
ubuntu-rocks, check out logrotate conf in /etc
so by default (if mod_negotiation is loaded) I can do
main.en.css, main.ja.css and it'll work as expected?
there is no mod_redirect
err i meant mod_rewrite
why not use Redirect or ReirectMatch?
you can either use....
SSLRequireSSL
SSLRequireSSL is http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslrequiressl
Or you use
RewriteCond
i think RewriteCond is
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond
Or you just set up two vhosts, and use
location[Match]+Redirect
I tried both. The issue with SSLRequireSSL is that it doesn't
auto redirect to the ssl
certificates hosting port.
I answered your question earlier?
If I understand, what you need is a RedirectMatch /secure https://host/secure in the port 80(non
ssl) virtualhost
arreyder, my apologies, the buffer was not set deep enough to
hold all the data.
there it is again
i'll try that. brb
hey
my server seems to forget cookies when i have forms with quite
alot of input.. how come?
cookies are stored on the client side, you know....
arreyder, that works. the apache install on my box did not
have a vhost for port 80 had to create one and use the redirect you
suggested. Works flawlessly.
thanks a million.
you back from lunch
yeah, haven't you figured it out yet?
lol yes
you ever try this with mod_security jail ?
nope
ok well we will find out if it works
cool
hi to all
is apache2 broken in Edgy repositories?
I have installed it manually many times and it kinds of bores
me, you know?
me not, I do that almost every day.
if you save your config.nice file, it goes really fast
wow just to think about looking for the modules, configuring
php, etc.
hmmm config.nice
config.nice is ~a file with all the arguments that you passed to
./configure when building Apache. or installed to
${prefix}/build/config.nice
oh I am just showing off all my ignorance
M3G4crux that would be "configuration", not
"installation"
yeah well actually I mean the whole installation and
configuration and so on
then again.... ughm.. argh... php is TEH SuCk for compiling
yourself.. it REALLY pains my heads to compile it...
manual configuration is... sorta mandatory
not using php is a possible alternative, i suppose
no thats the thing
rici++
good build systems are worth their weight in gold
apache++
apache without php
web hosting is like a house without walls
libtool--
say that again in this channel and you'll cause WAR.
karma php?
php has karma of -38
blame php
that much?
PHP should be presumed to be at fault until conclusively
proven otherwise. And even thereafter, if it's
convenient.
karma debian
debian has karma of -225
well apache is the whole structure dude, good quality like in
skyscrapers, dont misunderstand me
I love apache, I even keep a copy of the source code behind my
pillow
bI love apache, I even keep a copy of the source code behind my
pillow/b
what version ?
To check Apache's version, run 'httpd -v'
first I will check which modules it has, my current version,
the one from ubuntu repositories
hi
only 6, this is sad. Version 2.2.3
how can i make my site SSL only?
i know there a way with mod rewrite
how could I force apt-get to stop complaining about versions,
etc.?
kinda the wrong channel for that
:/
ok, well efkjlhw you can always block port 80
Or not listen on it......
ssl vhosts
When using SSL, each virtual host must have either its own IP
address or its own port. Or both. or for details see http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#vhosts2
or http://www.onlamp.com/pub/a/apache/2005/02/17/apacheckbk.html
or see SNI or consider wildcard certificates or http://wiki.cacert.org/wiki/VhostTaskForce
or see ip based vhosts
jMCg, good idea
I only have good ideas.
yeah I see
you know how you add each of the apache process to start in
the init file... do you have to do the same for stop and
reload?
when wisdom its bliss, t'is folly to be ignorant
fajita, thats kind of pointless
sorry...
yeah I agree with efkjlhw
kickass
its more or less like saying in order to connect to the
internet you need a computer or an internet line
wanna be my minion?
whatever you want pal
you get free hosting
lol
roger that
someone do me a favor and lookup 74.185.85.47 in a web
browser and tell me what happens
with php?
yep
user and pass?
standard cpanel config
with mysql
hosting unlimited?
hmmm sounds kinda good
thanks KWhat thats exactly what I needed
whats xampp
is xampp is, like, Dxampp such a better tool than using the
standard apache php an mysql
and, do you have like red5 install coz that would be the
shhit
its apache with pop, php, and everything in one package
cool
quota?
what do you need?
:P
well, how much do you offer?
what will you be using it for?
a web for friend, music and so on
probably install drupal
host and do a theme for them
and also video content
its a band of music, Brama!
nah
too heavy for your box??
not too heavy
dont tell me its a windosed box
im just not giving that much away for free
dude I would be your minion, that was the deal hahahaha
just kidding
:P
why is linux so
cool!!!
well
lets seeee
cause its free and it was programmed using a brain
its free
cause it was inveted in the arctic by penguins.
http://apache.pastebin.ca/594159
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
hitler endorsed it in the war
ok, this is not the place for silly chat
hey pctony
and chicks dig penguins 8-)
hey smelly foot
-D SUEXEC ?
no, its loaded, its a plesk box
please be sensible
yes sir
thanks
so ehrm
my problem ;
ls -la `which suexec2`
efkjlhw, I am still wondering what would I have been able to
get in that free hosting
i need to disable http access for one site - ie. make it
https only
its rhel, its just called suexec
ok well substitute
in google there were some examples on that efkjlhw
I usually answer questions in here, not ask them. I have done
the basic troubleshooting
thank you though
I remember cos I did it. Oh now that I recall, I did it
through php
bI remember cos I did it. Oh now that I recall, I did it through
php/b
I had trouble with rewrite
right now, my website points to my root...where to i tell the
domain
to go to /folder ....i have updated the websitename.conf in the
usr/loca/apache/conf/sites dir
where do i*
documentroot
httpd.conf ?
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.
httpd.conf is the main Apache configuration file. By default
it's located at /usr/local/apache2/conf/httpd.conf
/etc/apache2/httpd.conf /home/httpd/conf/httpd.con C:/Program
Files/Apache Group/Apache/conf/httpd.conf check 'httpd
-V'
ah, ok, thanks!
I thought tomcat was a web server, what is it exactly and why
is there a module for apache
tomcat handles java the same way that mod_php handles php
well not the same way but similar
its a pain in the ass to work with but its nice to program
in
thanks you are a crack
well, yeah, that will change the apache root....but i dont
want to change the root....i have to set up several domains that
point to different folders.....ex: site.com points to
/site1....site2.com points to /site2 .....etc
and now one of your virtualhosts goes to the servers
documentroot?
yes
you need to add a default virtualhost
make it first in line, and just add the same servername and
documentroot as your main apache config
KWhat, so in order to get the jk-module for apache 2 I need
to install tomcat first or how do I fix this
ah, ok, i wasnt sure what it was called....i will go
google
use gentoo
for me, distributions and apache always end up bad
tomcat has alot of depends.... what distro are you using
?
ubuntu
hmmm... ubuntu is an ancient African word meaning 'I can't
configure Debian'
apt should install everything you need
my server seems to forget cookies when i have forms with
quite alot of input.. how come?
I have been using debian for a long time, but I changed to
ubuntu when I bought my new laptop
Cookies are client-side.
found what i was lookin for
http://httpd.apache.org/docs/1.3/vhosts/name-based.html
thanks!
thats the problem KWhat apt-get complains about versions
etc.
I might uninstall my apache and install it again
whats the error
yes, but apache seems to drop them when my form is big
my client is sending them, but apache is dropping them
when i do var_dump( $_COOKIES ); it is a blank array for a big
form, and the real cookie for the small forms
please, I really need help with this
It's stopping me from developping my project any further
:-/
endra do you use php?
yes
and what is the amount of memory set up in the config
file
do smaller cookies work ?
for post? 8M
well, cookie only has the phpsessionid in it
so it isn't the size of the cookie, it's the size of the
form
is memory use?
when my form has 25 fieldsets (~100-150 inputs) in a single
form, it no longer remembers the session
ok, guys, have you read the topic? This is not ##php
isnt there a parameter to set the memory use within the php
config file.
neither is my problem
wow
/dev/ttyS0 a light blinks for a second. Is that good?
$_COOKIE["TEST"] = "Hello World"
$_COOKIES["TEST"] = "Hello World"
sorry
yes, 8M of memory.. but I'm not using 8M of memory for my
cookie OR my post
You will be!!
sorry?
make sure you browsers supports cookies and its enabled
you may want to use session instead of cookies
hello every body
you may also want to try #php
ok
hahahahhaha
I use sessions..
Cookies remember the session
this is not an Apache issue. It is a PHP issue. Please go to
##php
See.. cookies have a session id, which is all I want, but apache
seems to 'forget' about my cookie, even though I send it (I sniffed
it)
says who?
wow I had like 40 apache packages
its not apache's job to remember you cookies... its the browsers
job.
I don't even know if it is php or apache, all I know is that if
I put var dump $_COOKIE in my first first index.php line, and I
submit that form with that action pointing to that php page, then
it won't find it if my form has over 25 fieldsets
pastie your form page with the processor
then that aint an Apache issue
i really dont wnat to see your form just the processor
yes, my cookies ARE remembered client-side, and they ARE sent
over the network (i packet sniffed), but once it hits index.php,
they are forgotten IF I have a big form
well, you see, it's the FORM thats causing the problem
once it hits index.php, its a php problem
becuse at 24 fieldsets, its fine, but at 25, it stops
well, you see, the first line is to show me cookies, and they no
longer are there for the large form
if i remember correctly cookies have a max size
for the last time, my cookie is the same size.. all it has is
phpsessionid
guys, play nicely. or play elsewhere, ok?
then your fucking something up in the way your setting it or
reading it
im not setting nor reading it.. thats whats making me
mad
well then if your not setting it how on earth you thing its
going to get saved ?
I can show you guys.. its really weird issue, I had 10+
people helping me on php last night, we spent 4 hours.. no
joke
Then we came to realize that apache isn't passing php the cookie
if the form is large
endra did you do any actual, useful investigation ?
yes, completely
yeah he is carrying it out right now
endra this would start by using a packet sniffer to look at
the *data* being exchanged
i already have!
how big are your cookie headers ?
I said it above, 2 times, and the same cookie is in fact being
sent
brb
do i have to restart web services for it to see the changes i
made in the httpd.conf ?
reload goad
endra I care little how often you said what, I haven't read
it before
didn't mean it that way, just saying that i did in fact
sniff
yes you do
k
eh?
hi!
hello! How are you today??
why does pctony have his bitch-beater hat on?
pretty good, girlie girl
hola spazzie
heh
hoi
http://uk2.php.net/manual/en/function.http-parse-cookie.php
/kick megaspaz #pain in the ass
heh
;-)
endra how big did the packet trace say your cookies were
?
one moment
i dont know how to get the size, all it shows is Cookie:
PHPSESSID=d3a3f...
(when my browser requests the page via post)
i still dont see a paste
what paste would you like to see?
endra you're talking about sending huge form data to
apache
for part that is dealing with the COOKIES
yes, very large
endra with a cookie
I don't manually deal with them, php does
what are you trying to read from them ?
the PHPSESSID ?
the phpsessid is at an html page and with modrewrite i
redirect it to another page.. and in this php page der is no
PHPSESSID
fajita forget the phpsessid
I forgot phpsessid
no, not with a cookie. Okay. I log in, that is why the cookie is
used, it remembers who I am, then I have my form, once I submit, IF
the form is not large, everything is fine, IF it is large, it
FORGETS the cookie
that would seem to be a pure PHP issue
that didn't look right
that is what we thought
endra no, that is what I am *sure* of
be george
she is hevening a problem printing from power point,to
[PROGRAM],she would like to have power point reinstall
but then we realized that if we put the first line of php 'show
us the cookie', with a normal form, its fine, with a large form, it
forgets
so shorten up the form and show me whats in the cookie
endra and ? like I said - a php issue
okay, then i'll go back to php and tell them that
the cookie is PHPSESSID=hash, where hash is my session id
endra where does apache influence this chain of events ? 1.
you log in, and get a cookie for it - your *browser* stores this
cookie
yes, 2. my browser sends it back, but the cookie is gone
before it gets to php
endra 2. you display a form with huge knobs on, you fill this
in, and send the form with the cookie back to the server
endra 3. apache passes the headers (of which the cookie is one)
and the form data to PHP
i was under the impression the PHPSESSID changes everytime you
make a request
endra no, it is gone *when* it reaches php
no, it remains the same
idiot question of the day...is there a command to restart
apache service? im sick of using cpanel
how can we be sure of that?
can I somehow tell apache to list cookies when it gets
them?
/etc/init.d/httpd reload|restart|start|stop
what platforem are you on?
or /etc/init.d/apache or /etc/init.d/apache2
centos i believe
/etc/init.d/httpd reload|restart|start|stop
Whenever I edit my httpd.conf apache barfs. Is it because I'm
editing it while I'm root?
log the cookies usig the LogFormat mechanism
no
distro layout
See http://wiki.apache.org/httpd/Info/DistrosDefaultLayout
for clues on how your distro mangles or organises its Apache
package(s)
Apache only reads it on startup
goad read that ^^
its a vm host i just got....never had this much control on a
host before, so im learnin
it will help you
thanks pctony
you need ssh aceces
goad no worries
anyone know how to disable a global Alias or ScriptAlias for
a single vhost?
i am using ssh
anyone know when SecChrootDir takes effect? Before or after pid
is written ?
if the pid file is outside the chroot....
... ?
we get interesting results
will do
if the pid file is outside the chroot, the chroot call must
happen after it is written
the pid file is mia
I get this error when trying to view a page served via fcgid
script:
mod_fcgid: read data from fastcgi server error.
How can I force my apache to use python2.5 for mod_python
is it possible without recompiling
hey l need help l have install apache and have my index.html
on var/www/apache-default it works fine on my computer but the page
dosent load in other people computers
firewall
*?
no!
also l have all the defaults config files
what IP?
http://todomusica.ath.cx/
thats the link
my english is no perfect
no kidding
those it works in your pc?
it seems to be coming
I have just a gray background, but its still loading
Can I get apache build configuration parameters from a built
apache?
lets wait------------------------
still waiting.
no change
my friend just tell me that it says connection time up con
firefox
that happened to me at length
also l am running debian etch
hmm
any idea?
its seems to be connectivity
where are you connectin from?
firewalls, routers, wrong subnet. can you ssh to your box
from somewhere else with that domain?
redhat hq, raleigh, nc
sorry but l am new a the world of servers and l dont know how to
ssh
l am going to try to connect with the ip no the
domain
servertokens todomusica.ath.cx
doesn't look good
julio14 that is not an IP address
netstat -plnt | grep :80 what is the result?
0 0.0.0.0:* LISTEN
and what about netstat -pwnt ?
good.
julio14 pings return superfast - you've misconfigured
something, or there is a firewall in between
i cant get my subdomain to work.... anyone see any f-ups?
http://rafb.net/p/K5q9j853.html
now what does iptables -L show? do not paste it, is it over 6
lines or so?
l am going to make a pastebin
the domain is fine, but the sub wont work....just get a
404
ok
http://pastebin.com/pastebin.php?diff=938613
is this apache1?
yes
ok. just checking.
Well, stop it. It makes me paranoid.
wait....is that a typo? apache1?
apache 1, as in 1.3.37
ah
not sure
if not, the User and Group directives are ignored in
apache2.x
lemme remove them and see what happens then
next, change the VirtualHost tags to match what you're using in
NameVirtualHost (e.g., add a :80)
that's the bigger problem
it looks like the pastebin page is going slow so here is another
one http://rifers.org/paste/show/5014
that looks good, do you have a hardware based firewall?
yeah it was really slow
no nothing !
It may be blocked then by ISP, you could try another random high
port.
how ?
still nothin jpeg
i put the ports on the virtuahost tags
and took out name and group
retstarted the service
Listen statements and posibbly your virtualhost blocks might
need adjusted
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.
just pick a high port, 8080 or something and substitute it for
the :80 the browse to by http://your.ip.addy:8080/
ok thanks let me look in the apache config files
np good luck
where can l find the config files?
l am such a noob
what distro?
distro
what distro are we dealing with here?
distro layout
See http://wiki.apache.org/httpd/Info/DistrosDefaultLayout
for clues on how your distro mangles or organises its Apache
package(s)
l find the config giles witch one shuld l edit l hace
accest.conf ,httpd.conf and srm.config
l have debian etch
httpd.cong
*conf
anyone got any ideas on my subdomain issue?
l find something wierd on my config file let me do a
pastebin
http://pastebin.ca/594271
anything in the logs? what happens when you try it?
odd, but nothing to be concerned with since they are commented
out.
Just add your own for whatever port you wish to try.
getting the following in the error log using ApacheSSL instead
of modssl and wondering if someone can point me into the right
direction to correct it
http://pastebin.com/938634
hi anyone able to help me, I have apache 2.2.4 and want to
get back the old look when there's no index file, ie, where it says
apache 2.2.4/php 4.2 etc, cheers
Indexes
See Options
Options
i heard Options was 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
sample index
You can see a sample/demo index page here http://index.eta-beta-pi.net/
(The config used is in the index too..)
0 should l change that for my real
Hi, I have just installed Apache+PHP+MySQL in my .htaccess
file I have 'DirectoryIndex inde.php' but that doesn't work. I
don't know what to search on the web so I have not consulted there
yet. I am running 2.0.x - thanks in advanced
thanks
cheers will check it out. tried looking offline but didn't
know where to look
what do you think you should look for?
something in http.conf
BTW *index.php
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
^^
Thanks.
Can I just put 'DirectoryIndex index.php' in http.conf and let
it be inherited by everything?
I see I can.
dw
Thanks anyway.
you can set it to the ip of your machine if you like, yes. or
just * to listen on all addresses, localhost, etc...
arreyder:finish l put the port 8080
now whats nexts?
restart apache
let me find the command to do that
brb
umm anyone able to help me at which point this is in as I
can't find it. I know I had that option in 2.0 as default but can't
see where to change it on 2.2 and the help files didn't
help
ok l restart pc
apache start automatitly when l power on my pc ?
ok here is the domain http://todomusica.ath.cx/
does it work on your pc?
wheres my logs? lol
imma build a cabin
no julio14 can't get on it here
port 8080?
somebody should nmap julio14
(don't wanna do it from work)
servertokens http://todomusica.ath.cx:8080
he server at todomusica.ath.cx is taking too long to
respond.
* The site could be temporarily unavailable or too busy. Try
again in a few
moments.
that's wot I got on port 8080
yes arreyder l put 8080 port
guys l give up! thanks for your help l will be here every day
because this really insterest me
do the netstat -plant | grep :8080
lets make sure it's listening correctly before you go
ok l am no going away
3 +0000] "GET / HTTP/1.0" 200 1018" every second in my
access_log... I don't understand why my localhost would be polling
the root url every
just lurking here you will learn a lot but never fear to ask if
you need a hand.
ok i just type netstat -plant | grep :8080 but i dosent reply
nothing
then it hasn't started
check your error log
I cant find any logs that would show any errors with my
subdomain errors....i tried /usr/local/apache/logs and
apache/domlogs
probably performance or heartbeat monitoring
then we missed something in the config, paste it up?
nothing in access_log error_log or domain.com under
domlogs
or consult the error_log for hints as rici suggests
let me sheck
error_log
i guess error_log is Usually located at
/usr/local/apache/logs/error_log or /var/log/apache/error_log or
/var/log/httpd/error_log or "C:/Program Files/Apache
Group/something" or Look in your configuration file for the
ErrorLog directive.
ah, you might be right... is there any way to not have apache
log these as this could make my log really large
ok i broke me site ( i think it happened when i tried to change
the chown from root, i have changed back to root but still
nowt)
any ideas?
thinking is *hard*!
use an environment variable in a customlog
customlog
i heard customlog was
http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#customlog
or http://httpd.apache.org/docs/mod/mod_log_config.html#customlog
i cant get my subdomain to work.... anyone see any f-ups?
http://rafb.net/p/K5q9j853.html
arreyder l think l edit the wrong confi files let me look up
where they are in my distribution
faq1
exactly. For example, NameVirtualHost *:80 must be used with
VirtualHost *:80
^^
that's your f-up
0 doesn't match VirtualHost
well, ive changed that
well... yeah
it was previously suggested, still doesnt work
of course i could tell you changed it from that link you
posted
removed the name and group too
do i really need to create a new paste? lol
so how about posting your config currently as is
ok hang on
of course not. but i won't answer you anymore
lol
oh ok then...
i heard ok then... was Bthere a way to tell apache to just
run certain pages through https
user context
server config
group context
server config
the files that l edit are in
usr/share/apache/default-config/apache/httod.config
http://rafb.net/p/4kK8BB96.html
they are also to folders that contain the same config files they
are apache-perl and apache-ssl
user and group can't be used in virtualhost
wait... what version of apache are you running?
im not arguing with you on that....but that was created by
cpanel on the original host
cpanel uses apache 1
how do i find out what version i have? i am curious to know
actually
ah ok
if you're using apache2, then you need to put on User and Group
directive in the server config scope
i see
you need to dump those lines out of your vhosts
even the customlog stuff?
no those can stay in the vhost
just get rid of user and group
and set them once in httpd.conf or something
cpanel--
they were replaced with suexec{user,group}
or something
eh?
erm...
suexecuser?
rumour has it suexecuser is a module isnt' it
maybe it's something else
well then i should just bow out
suexecusergroup
i guess 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
http://rafb.net/p/PLpeHy28.html
and i fear i have sent Goad on the wrong path
lolz
as far as vhosts go, that looks fine to me
read fajita's link
if you're still using suexec
also:
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
hey
can someone help me implement ssl .cer file to apache?
it's already had ssl configure but not the certificate
guys l need help finding my config files! l used debian
etch
lol
are you kidding julio14 ?
no!
/usr/local/etc/apache2
How long do temporary files stay in the tmp folder after a
file is uploaded through a server side language (PHP)?
distro layout
See http://wiki.apache.org/httpd/Info/DistrosDefaultLayout
for clues on how your distro mangles or organises its Apache
package(s)
does that link help maybe julio14 ?
yeah let me sheck
no two distros seem to handle apache the same
annoying, isn't it?
fajita, deprecate packaging
A package is the result of someone adding a random collection
of unnecessary options and scattering the results randomly around
the filesystem.
yeah l have to edit the primary config files?
hi anyone able to help me, I have apache 2.2.4 and want to
get back the old look when there's no index file, ie, where it says
apache 2.2.4/php 4.2 etc, tried looking at the doc's and google but
no help cheers
i'd like it if apache had it's own built in config.. so you
could go http://127.0.0.1/?config
or something.. then enter a pw etc.
but eh
what, you want to see the config? or edit it?
if you want to look at it, check out mod_info
just see if at the bottom of the page
see pradhand
seen pradhand
2
ok i give up
what does it show?
what's up thumbs
nothing bar folder name atm
indexoptions
it has been said that 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
i am an
idiot
Look who's talking.
yup
theres some nice gui stuff in cpanel to setup subdomains
takes the fun out of vi'n via ssh
anyone have a guild for setting up mod_security to use a
chroot
i guess you need to supply a readme file
use server-side include to insert the appropriate variables
I've had it set before without any new scripts or files but lost
the file I had telling me how to do it
anyone knows how to generate .cer files for ssl?
how do i convert them to .crt file?
can anyone sheck if this page is working http://todomusica.ath.cx/
no
it works julio14
it works ??
Damn right it does
omg
yes, it works
Damn right it does
l love all of you
i love you too
set up apache is a piece of cake
0 pm is workin thanks all of you really thank
I will need to test this but, does apache need to be
restarted if a server is added to mod_proxy_balancer? or will a
config reload do it?
wow you waste to much time
anyone know how you are suppose to use SecChrootDir with mod
secuirty
yeah l have another question how can l make a link for example l
want to put a picture in my website shuld l put A
HREF="/var/www/example.jpg?
html?
i think html is the tool for that job. It renders according
to a browser's capabilities
no mod_proxy_balancer users around?
yes html
html is the tool for that job. It renders according to a
browser's capabilities
I'm looking for an Apache 2.0.x SSL build for Win32 but the
only one i see on apachelounge is 2.2.x
i can't seem to find an archive for the previous apache SSL
builds on windows if any
does anyone know where to find an Apache 2.0.x SSL build for
windows?
omg now my friends are telling me that the website is no
working
OK I give up no biggy just looks better I think but I can live
without it
julio14, aren't you developing things locally first?
You changed what?
yeah l have my index.html ready and in place
you can definitely do that with ReadmeName
you have to put that in all the dir's tho don't you?
you can use the same file
ReadMeName can be an absolute path
ummm may look into that then
actually a root path.
oh, well
wierd.
hehe all this is for is my lan I should just be happy it
works at all
brb need to reboot
can some one sheck now plz http://24.184.210.0/
?
dont work
1 2007] [error] [client 127.0.0.4] Attempt to serve directory:
/home/user/public_html/otrs/, referer:
I am accessing to a public_html folder in /home/user
and otrs directory is inside /home/user/public_html
did the sysadmin change stuff for you?
or is this a different install, or am i just confused
rici, sorry, lol lol lol, seeing I had a lot of problems, I
am trying to do in my debian
with all permissions available
ooh, debian
rumour has it 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
block
yes, no redhat now
yes
i have a hack
I have written ad PerlHandler
http://segundo.ricilake.net/examples/google.conf.html
does that help?
but this problem is a url not found
no, it's not
it's a directory being served as a file
no, I say mine
yes yes
right
I have understood yours
block, right?
that's setting the handler for the directory itself
I have just got a PerlHandler
I don't know if this is what you mean
block
I have a mod-rewrite question; I use RewriteRule to send off
visitors to another site. Is it possible to empty the initial
HTTP_REFERER field? It appears it is being kept.
it's a header. see
mod_headers
well, mod_headers is http://httpd.apache.org/docs/2.2/mod/mod_headers.html
http://httpd.apache.org/docs/2.0/mod/mod_headers.html
http://httpd.apache.org/docs/1.3/mod/mod_headers.html
where should l place my website files ? l remove apache 1 and
now l have apache 2
should l place them in var/www?
many thanks! that looks to be the solution. will look to see
how to implement.
hmm, mod_headers 1.3 does not appear to offer a conditional
option. I want to clear the referer field for some requests, those
that have been rewritten only.
you're using 1.3?
my webhost has 1.3, so i am stuck for now with that.
dunno then, sorry
thanks anyway.
i don't remember the order of mod_headers and mod_rewrite.
maybe you can save the old value in an environment variable and
unconditionally clear it
but then maybe not
tias
well, tias is Try it and See - if you want to know if something
will work, give it a go. If not, then you can ask why it didn't
work as expected
i get many http requests from comment spammers, and i want to
redirect them elsewhere. however, those requests have have
referers, so my website is listed in them. that's my case.
s/ so / and /g
can anyone help me out with mod_security SecChrootDir
When using multiView for content negotiation to resolve the
language of the site, how can I make a link on the site to change
the language to something else?
anyone here
No. Nobody.
can't you just use chroot(1)?
I am tired. otrs 1, me 0. Tomorrow another more battle
ok
i did try
rici, thank you very much. Your help has been very useful
take care man!!!
i would rather have it for each host
and i dont want that many dupe files
huh?
Please state the nature of your computing emergency
oh, well. whatever
i see that the standard chroot in linux doesn't let you specify
a user/group, unlike the freebsd version
with mod_security i dont have to create X number of chroot's
with a tone of files.
yeah, but you're starting apache as root
mod_security is suppose to jail the process
you actually need very few files to run apache, and you can
hardlink them
http://olivier.sessink.nl/jailkit/
i've not used it, but it's been recommended to me
http://www.modsecurity.org/documentation/modsecurity-apache/2.1.0/modsecurity2-apache-reference.html#N1033A
jailkit has that issues of 100's of files per chroot
i wouldn't have thought that 100s of files were necessary to
run apache
of course, once you add php...
still, you can always use hardlinks
i doubt you can link out side of a jail
you can't symlink
hardlinks aren't links, strictly speaking
well, they are. they're not aliases
clauses for all the subdirectories individually?
they inherit unless overridden
I've set Options +Indexes on /var/www/sites/images for
example, but /var/www/sites/images/foo gives me a 403
/var/www/sites/images/foo
if a subdirectory set Option foo (no - or +)
or .htaccess
the all Options will be REMOVED.
.htaccess is used for apache config directives - if it is not
readable, apache can't use it - if you don't want to use htaccess
at all, then set AllowOverride None in httpd.conf or http://httpd.apache.org/docs/configuring.html#htaccess
or http://httpd.apache.org/docs/howto/htaccess.html
or or see htaccess purpose
gak, my bad...
Options, too
hey rici, if you try to show a index.pl and a dialog box is
coming out to save the file instead of apache shows the
page
then you don't have the handler set right
what does it could be? extensions as .php3 for example?
well I have copied your handler
I have modified yours
how could I look for that in google
I mean what can i write
are you trying to run with perlhandler or as a cgi
script?
block look like?
apc
Try using http://apache.pastebin.ca - It's a
good pastebin, and is even set up to highlight Apache
'stuff'.
I am trying to use perlhandler
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
Options ExecCGI is, like, )how you enable cgis to run in a
directory
can you pastebin it?
apc
Try using http://apache.pastebin.ca - It's a
good pastebin, and is even set up to highlight Apache
'stuff'.
Is there a module that lets me update my .conf files, and NOT
restart every time? Something that will dynamically read
changes?
There's some mod_perl code that does this for mod_perl apps, but
is there one that works with Apache itself?
apachectl graceful
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
short answer: no
thumbs, Right, apachectl graceful doesn't exist on Debian
(sigh), and its faster to stop/start than do '/etc/init.d/apache2
restart'
looking
how can apachectl graceful not exist on Debian !!!
debian
well, 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
Right
debian must suck, then
oop, I take that back... its apache2ctl
that's the same problem i solved in my example
actually, I am fairly sure it does.
don't use location, use directory
Oh that's funny... their 'graceful' is just a 'stop &&
start'
wtf.
and put the stuff inside files ?*
I hate when kids become package managers
that's graceless
hahahaha
apache2ctl graceless
man, i'm glad i don't use debian.
oh, wait, i have an ubuntu box here.
Ubuntu, from the ancient African phrase that means "Can't
install Debian."
I can't believe people use distro packages in
production.
yeah, i couldn't be bothered
that's alright
i didn't use its apache package
actually, it's not running apache at all
For years, I didn't either
all my personal apaches are on freebsd
I decided that since Apache2 is a bit more complicated, with
all the modules and params, I'd try to stick with the core
package... what a mistake
the ones at work are hand-compiled
You've seen my single-pass script, right?
yeah
Does the URL-path of ScriptAlias have to match the last
directory of the directory-path?
I should update it to current and test the builds inside a
vm
http://code.gnu-designs.com/apachebuild/
no.
So, you guys busy?
No
good
I'm just trying to get started. I figured that it'd be faster to
ask someone in a chatroom.
Good thing this is irc, and not a chatroom then
...
This is a chatroom.
It's a chatroom on IRC.
This is an irc channel
A/S/L???? LOLMG!
hahaha
LOL
It's still a chatroom.
To you
It's like saying that a tower isn't a building.
you're off to a great start. now what are you having problems
with?
No, its nothing of the sort
ah, yes
fajita, just ask?
bugger all, i dunno, setuid
bah
humbug
bite
Well, I'm just trying to start up a website. It's amazing how
much information I can find that's close to what I want, but not
quite.
Go on...
Well, I can't seem to figure out where to stick the
files.
What OS? What version of Apache?
have you tried reading the official docs, and the config file
itself?
windows...
windows broken, please use door
ok, hold on a sec
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.
Someone's knocking on the chatroom door
Reading official documentation? That seems an unlikely spot for
a how-to. I'll try it, though.
you'll find in your program files/apache software
foundation/apache2.2/conf a file called httpd.conf
ooh, wait, going afk
rici, I have to show you some semi-slick code I wrote
read it, and look for DocumentRoot. it's probably set to htdocs
in that same directory
Hi I came hear earlier asking this question, but nobody was
around -I set up the apache 2.2 SSL webserver, I need a colleague
to be able to do "batch downloads" of documents - apart from using
command line sources like wget/curl - it's just a simple directory
page...
I had him to to use flashget, but it doesn't seem to work even
when he has my login information... somebody mentioned that
flashGot howver might work? any ideas?
what's wrong with wget?
it's pretty good at that sort of thing.
rici, http://code.gnu-designs.com/ErrorDocument/error.perl
Other bits are in the same dir
So I do something like this:
ErrorDocument 400 /errors/error.pl?error=400
And for every server error, I get a separate email describing
it, so I can go fix it
missing robots.txt, favicons, broken redirects, files that have
moved, missing, whatever.
Its a temporary solution, until all of the code I've moved over, is
fully migrated
Just some quick perl I hacked up
@rici, was looking for something easier - we're medical
students... and my colleague doesn't know any of this stuff -
neither do i, but I am learning a bit... the webserver + ssl works
,
mrclark01, How about just creating a server-side cron job to
pack the files into a .zip and email him the link?
so i was looking to see if you all had some other "win32"
based interfaces which can do this -
bso i was looking to see if you all had some other "win32" based
interfaces which can do this -/b
Or even email him the files as an attachment, and skip the whole
apache process altogether
rici++
hahaha
it's a really simple application of wget.
You know what they say... "What do they call the medical
student who graduated last in his class?"
sorry, it's getting late
"Doctor."
i have no idea what you mean .... heh... it was just a simple
webserver, non html, it took forever to set up...
i'm pretty sure there's an example command line in the
section on retrieving multiple files
yeah there is - but i'm telling you , there's NO way he will
be able to do it lol...
i had him try flashget, but it didn't go through
mrclark01, How about this... PayPal me $100.00, and I'll write
you two complete solutions; one using Apache, one not.
ok wow...
[ Edward_TLS] I can't get rid of the error_log
join medical school then.... pay me $100000 and i'll teach
you how to pass the exams
mrclark01, Was that some sort of medical student joke?
Because it fell flat.
i've never used any windows gui tools for that, sorry
no it's ok, thanks rici
htdocs
this is all new for me...
i mean, basically you just need to tell wget to grab the index
page
but glad i was able to do this much
mrclark01, There are lots of ways to solve the issue you're
facing
or lynx, or ....
and then you give it the index page and tell it to grab every
url it can find in theat page
Another approach is just to put those files in revision control,
and use WebDAV to access them (your user can literally map a
Windows drive letter to the Apache server)
but there might be some sub directories and documents which he
wouldn't need - so it's a bit more than that...
You can restrict that with rici's suggestion of wget
eeek! setuid says something that makes sense!
bahumbug, plonk!
bahumbug, I might wrestle with Apache2, but the rest of the
stuff, I know inside and out
yeah, right
Hrm, I don't see a LogFormat for ErrorLog. I need to add
REQUEST_URI into the logging
This kind of message isn't very useful:
9 2007] [error] [client 66.249.66.238] Premature end of script
headers:
anyways, i'll see if there's another easier solution - like
something download accelerator that supports https AND digest
AUTH
you have digest auth?
mrclark01, DownThemAll
that's kinda overkill for an ssl connection
well -
it's done
still, wget will handle it
mrclark01,
http://www.downthemall.net/
i know wget will
yeah, but lots of other utilities won't
Check out the above link
curl will do it too from what i was told...
wget, curl, lots of things will do what you want
I expect there might be a firefox plugin for it ...
You need to put together an 'index' file, and feed it to
either of them, including/excluding the files you want/don't
want
LeechGet is one that uses curl in FF
damm that took a long time to die
this looks pretty cool setuid
mrclark01, which?
the downloadthemall
You need to put together an 'index' file, and feed it to
either of them
Yes, I use it a lot for my dwarf horse porn
mrclark01, No, as long as the files are on the webserver and
visible in a browser, you can fetch them with DtA
right, cool - so he can pick and choose
Exactly
It pops up a little dialog, and you can set wildcards,
checkboxes for images, documents, media, etc. and then fetch what
you want
Its got nice eye-candy for Windows users
ok, this is what i'm looking for - i'll have him try this out
-
thank you setuid -
Sure...
Well, I got most of my problems solved.
anyone know how to make apache say Apache/2.2.4 (Win32)
PHP/4.4.2 on the bottom of system made index folders? it's doing my
nut in now LOL
doing your nut in?
ServerTokens Full
it has been said that ServerTokens Full is the default
settnig by the way
ServerTokens prod
got Apache Server at 127.0.0.1 Port 80 now which is better
will play
haha it worked on full thank you spent hours on that just to
dre
dre was not meant to be typed
see that I forgot to un# the default in the main config
Why would you want it to show the full tokens?
That can be a risk
local http only
Fucking Yahoo's Slurp spider, they've hit me 49,706 times today
alone
49,715 now
I run a few apache's testing scripts and sometimes I forget
which one i'm working on ,ie, php verison
49,720
wtf.
4,410 separate uniques from them hitting me
lol
I'm not joking
# rgrep ysearch * | perl -lne 'print /((?d+\.){3}\d+)/' | sort |
uniq | wc -l
4418
8 more uniques
that's a lot of hits
This is insane
49,791 hits now
Anyone offer some help. I'm setting up a webserver on my Company
Lan to be webfacing (so customers can query directly). Its a
standalone Ubuntu box (and running php scripts to access Interbase
on another machine). I;ve protected the ~/public_html directories
(where some internal applications are running) with .htaccess (only
4 internal users so no problem there). However what is best
practise with the /www/ default site ? any
suggestions.??
Fuck it
megaspaz you around?
any way to force a URL to be not found (404) using
mod_rewrite
?
http://php.net/manual/en/security.hiding.php#72630
- his tip didn't work, R= doesn't allow 4xx codes
Hi world
anyone know how to use gdb?
was in get data back?
yes. RedirectMatch 404 ^/url
as*
hello anapivirtua
if the original URL is foo, it rewrites to foo.php (internal
rewrite, not redirect); if the original URL is foo.php, give
404
why don't you just call the script foo?
newbie is getting frustrated. Am trying to set up apache on
Ubuntu. My problem is I;ve created an user called "myWWW" and set
the home directory to being /var/www. How do I add premissions so
the myWWW user can readd/write to /var/www? current permissions are
root:root . Hope it makes sense
foo.php rules are actually more complex... but that's the
general idea
php scripts don't have to be called xxx.php you know
yes i know
file permissions
it seems simpler than mucking about with mod_rewrite
permissions
Files need to be readable by the Apache user (e.g. 644).
Directories and scripts need the X bit too (e.g. 755). That
includes *all* parent directories of a resource. If you have a
symlink, check both the source and target. If you have
AllowOverride for an unreadable directory, the error message will
refer to .htaccess. See also selinux
Is there a way I can specify a location to robots.txt in my
server/vhost/directory config?
Is it possible to cause a certain filename to be parsed by
mod_php instead of a file extension?
but I don't want to manually set which scripts need to be
interpreted as PHP and which as Perl, plus putting something for my
text editor to read them as such when having no
extensions
have a look at what fajita just said
no
robots.txt is always host/robots.txt
yes; and that's what rici was just trying to convince me of
using
imMute, So I can't use a robots.txt file for ScriptAlias
sites?
imMute, Like ViewVC/ViewCVS, etc.
just make sure they show up in the /
Do I just replace ".php" with "filename" ?
imMute, That's the problem, / is not a real location
sure it is
is it possible to set the permission for the "myFoo" user
only?
was the folder sorting stuff set by Ubuntu, or is the default
on linux to not have FoldersFirst/IgnoreCase?
3 lines
i'm not sure about the php-script
php handler?
php handler is 'AddHandler application/x-httpd-php .php
really?
is this placed anywhere in the config?
in which the file lives
hmm... mine has AddType application/x-httpd-php .php
addtype associates a mimetype with an extension
that's the wrong way to do it
would I not add this? | AddType application/x-httpd-php
filename
imMute, Where does robots.txt go in this context? http://rafb.net/p/WGWDTG89.html
the robot looks for the url http://your.site/robots.txt
well that's the way PHP manual mentions
rici, Right, but the url is virtual
hey guys l have a question those apache start automaitly when
l power on my pc?
the robot doesn't know that. or care
depends
rici, I mean, there is no actual "directory" to place the
robots.txt
it just does the request and if it gets back a file, it uses
it. in theory
I'm being slammed by Yahoo's bots on our web-view of
source
so whats the command to open it?
directive or something
And I can't keep blocking over 4,500 uniques
you haven't even said what operating system you're
using...
/usr/local/viewvc-1.1-dev/bin/cgi/viewvc.cgi/robots.txt
Location?
Location is http://httpd.apache.org/docs-2.2/mod/core.html#location
^^
debian etch
RIght, let me look
sorry
You will be!!
i know the php manual says that.
but you can do it with addhandler
Location doesn't seem to support a direct reference to
robots.txt
except you need to know the right handler name
Location /robots.txt
location is the url
which I don't
/usr/local/viewvc-1.1-dev/bin/cgi/viewvc.cgi/robots.txt
it's not broken, I won't try to fix it
That makes no sense
is where it would look
imMute, /usr/local/viewvc-1.1-dev/bin/cgi/viewvc.cgi/ is a
script, not a directory
or Alias /robots.txt
doesnt mean the script cant know that
am using debian etch
Of course it can't know that
It'll fail if I use a ScriptAlias to point to that
seems you guys are doing exactly what I'm trying to do.
it can handle the ending /robots.txt
but anyways, use the Location or Alias
imMute, ViewVC has no idea what that is as a param to the
cgi, it'll fail
SO DO WHAT I TOLD YOU TO DO INSTEAD
Location context?
server config, virtual host
sethandler php-script/Location
Alias /robots.txt /usr/local/viewvc-1.1-dev/robots.txt
^ fails, naturally
fails how?
Alias
hmmm... Alias is http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
apparently its x-httpd-php or x-httpd-php5
depending on php version
An Exception Has Occurred
robots.txt: unknown location
HTTP Response Status
404 Not Found
forgot it l found what l need thanks anyway
I see it's ForceType application/x-httpd-php
does the file exist at the /usr... location?
yues
ls -l /usr/local/viewvc-1.1-dev/robots.txt
3
did you restart apache?
imMute, Yes
then you did something else wrong
No, but I guess its being overwridden
[warn] The Alias directive in /etc/apache2/sites-enabled/pilot-link
at line 164 will probably never match because it overlaps an
earlier ScriptAlias.
put the Alias before it
whee! That worked.
Ok, I understand why now, it was ScriptAliasing / which broke
the ALias for /robots.txt, feeding that to viewvc
that sets the type. really, you want to set the handler
fajita, handler?
handler is probably a program that runs on the server to
generate content
that's not much help
although it's true
no, it means the scriptalias will always match and cause the
more specifc alias never match
in general, with multiple Aliases put the more specific ones
higher
Yep, I didn't realize there was a precedence like that... I
thougth all Aliases were matched before ScriptAlias, regardless of
position in the stanza
see #16 on this page
http://phpbuilder.com/manual/en/faq.installation.php#faq.installation.apache.multiviews
Now to do the same with favicon
it is php-script (or php5-script)
yeah, x-httpd-php5 isn't working.
however, the point is to use SetHandler
sorry, i was looking at a random web page in desperation
php5-script only works on apache2.x
I agree with the SetHandler usage. 8)
...and all works. thanks
i'll try to remember that for next time
fajita, php handler?
php handler is, like, 'AddHandler application/x-httpd-php
.php
yadda yadda
if only i had your brain...
haha
l need help again when l try to open apache look what l get
http://apache.pastebin.ca/594762
julio14, Set a ServerName value in the global config
fqdn
fqdn is fully qualified domain name or http://wiki.apache.org/httpd/Errors/CouldNotDetermineServerName
^^
God forbid anyone tries to access my robots.txt. Mwa ha ha
ha
PiousMinion, Why?
This is why.... echo `dd if=/dev/urandom bs=1k
count=5000`;
Related Topic:
I am trying to embed a avi file into a webpage on an apache22 server run on my internal net I can get the windows