Domain Search | www.


Related Pages:

Hey all im having a little trouble getting mysql to work on my local machine the mysqld service is running but
Im having a bit of a forbidden problem I think its because Im setting up docroots wrong if I post my httpdconf







7 2007] [notice] Digest: generating secret for digest authentication
7 2007] [notice] Digest:
but when i comment out the extension line in php.ini
7 2007] [notice] suEXEC mechanism enabled (wrapper:
7 2007] [notice] Digest: generating secret for digest authentication
7 2007] [notice] Digest:
7 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max
7 2007] [notice] Apache/2.2.3 (Fedora) configured -- resuming normal

I think you'll be ok if you just redo your configure with it enabled and then dive into modules/proxy and do a make, I'm not 100% sure on this.

i find that the last two lines were not during the previous start of apache..

please use a pastebin rather than flooding the channel, thanks

but you might try it, untill you get a better answer

should be a way to compile host it with apxs that should work right?
but im not as well versed in how to do that as I should

whats an apostrophe that works in IE and firefox?
i tried just typing it in but it didn't work in IE

hi. i am trying to display phtml page. when i go to that page i get the option of saving phtml page. i have installed the libapache-mod-php5 along with php5-common etc. ideas why apache won't allow me to read it but only save that page?

and %92 only works in IE and not in firefox

?

what do you use to keep the test & production server's website syncronized ?

saberu- you need to url encode it

i did

so what's your question?

well when i url encode it, it sends it as %92
but firefox doesn't recognise that

not really an apache question
fajita encoding/

excuse me?

fajita encoding?

encoding is for stuff like deflate

fajita url encoding?

url encoding is defined at http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1 - note that the encoding is ONLY applied to non-alphanumeric characters which are RESERVED, not all non-alphanumerics - also look at http://www.rfc-editor.org/rfc/rfc1738.txt#http://tools.ietf.org/html/rfc3986

which allowoveride category does mod_rewrite fall into?

fileinfo

Ask about Options instead

DrBacchus, so to allow mod_rewrite dirs i should allowoverride Options?

hi, i have an almost non apache question
is fajita code publicly available?
not the db, just the bot itself

yure, infobot
http://www.infobot.org/

thanks gidz

No. Fileinfo
rewiterule override
rewriterule override

RewriteRule may be used in .htaccess files if AllowOverride is set to FileInfo

DrBacchus, and it it's set to All too, right?

All includes fileinfo.

DrBacchus, thank you.

Guys, what do you use to keep your test & production server's (for php websites) syncronized ? or to facilitate the deployment of the site on the test server to production

rsync?

perforce

or you package it up in an RPM

can rsync push the content from the test site, or must it be installed on the production server hosting ?

rsync binary needs to be present on both servers
but it doesn't need to be running as a daemon

I see

hi all...

hi all... is 4there any way to find out the url of a apache thread

I need some mod_rewrite hints; I've a problem where I want to upgrade from AP 2.0.59 to AP 2.2.4, and the old rewrite rule doesnt work with 2.2.4....
seems there was a change that I can no longer use '*' for the directory block because I need to skip 2 directories...
I have something like:
/vhosts/user1/domain1/htdocs
/vhosts/user1/domain2/htdocs
with AP 2.0.59 it worked when I used:
Directory /vhosts/*/htdocs
with AP 2.2.4 this doesnt work any longer; manual states that '*' can only skip one directory....
tried then:
Directory /vhosts/*/*/htdocs
but that didnt work either.....
anybody who has a hint for me?

uhh
use locationmatch
fajita locationmatch

locationmatch is http://httpd.apache.org/docs/2.2/mod/core.html#locationmatch

fajita directorymatch

directorymatch is http://httpd.apache.org/docs/2.2/mod/core.html#directorymatch or http://httpd.apache.org/docs/mod/core.html#directorymatch

or directorymatch

directorymatch is http://httpd.apache.org/docs/2.2/mod/core.html#directorymatch or http://httpd.apache.org/docs/mod/core.html#directorymatch

hmmmmm, so lemme try (I'm not the regex king though...):
DirectoryMatch "^/vhosts/(.+/)(.+/)htdocs"
something like that?

help! I can send emails from my webserver but I can't receive them

Whoops! That's not the name of a module.

POP3 is running
I can log in fine
but it doesn't store any new messages

this is #apache, not #emailissues

could someone point me to the right channel?
I figured someone in here might have knowledge that transcendes apache only into the realm of email

which MTA are you using?

having some trouble here with ProxyPass
ProxyPass /other_home_page/ http://www.otherdomain.com/

hi all

All is not in today, HombreMagique

i would like all requests to other_domain.com to be routed to the subdirectory other_home_page

fajita, ?

i haven't a clue

fajita is a bot

is ProxyPass even the best hosting move for thia?

good

I _think_ you want ProxyPassReverse

hmm
thing is I want my URL to not show that sub/directory
gonna try reverse now

wouldnt you want to proxypassreverse / http://sourcedomain.com/other_home_page in the other_domain.com virtualhost?

i havent set up other_domain virtual host

at least that is how I read your second comment

i set up a vhost as www.mysite.org to have a DocumentRoot /home/myuser/www/htdocs...now, how can i access to my site? i mean, how can i get the same pages that i get in http://localhost ?

is that a trick question?

Roobarb, no
maybe i wrote wrong

or does http://www.mysite.com/ result in an error?

it results in page not found
but when i write http://localhot i get "It works!"

that implies that the DocumentRoot for the www.mysite.com VirtualHost is not the same as the DocumentRoot you are using when you go to localhost

*http://localhost

i'm back

so, how may DocumentRoot lines do you have?

ok so about this apostrophe problem..

Roobarb, i want a different one

need an apostrophe which works in both IE and Firefox

when u guys have a sec, check out thiss nip from my conf file, http://pastie.caboo.se/70510

%27, right?

doesn't a plain ' work?

Roobarb, i removed -D DEFAULT_VHOST from httpd.conf

nop

and i have just one DocumentRoot

your earlier question suggested that you want to see the same content on both http://localhost and http://www.mysite.com
are you using the correct content-type ?

i haven't set a content-type..that might be the problem

Roobarb, sorry, i meant that i wanted to see "It Works" like in http://localhost

charset=iso-8859-1 in your html

'cause i wanted to set up joomla for http://www.mysite.org

so you _do_ want the same content?

no

right!
ok, I should have asked this earlier I guess - paset your config
apc

Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'.

i'll just add AddType 'text/html; charset=ISO-8859-1' html to my htaccess file

Roobarb, which file?
httpd.conf doesn't contain vhosts

does it have a DocumentRoot ?

i have it in separate files
yes, it has

well, paste that and your vhost file(s)

http://rafb.net/p/rRZRRES21.html

Hi

http://rafb.net/p/rRZRRES21.html

ops

http://rafb.net/p/rss94A49.html

you may wish to explore the AddDefaultCharset directive

thanks Roobarb i'll check it out

the first link doesn't work

I've been trying to get php to work with apache2 on a gentoo system, but I don't seem to have any luck with this

sorry

I should think so too

http://rafb.net/p/rRZRES21.html

now works

I've installed php and I've added a line in /etc/conf.d/apache2 about it. Is there more configurations that has to be done in order for php to work?

Is there a way to bypass mod_proxy_balancer for certain rewrite rules?

ok, first off your main httpd.conf doesn't have a DocumentRoot

block, and change the ServerName to "localhost"

Roobarb, in order to see pages in www.fromparadisetohell.org?

Roobarb thanks for that function, it's fixed big problem i was having with encoding

no
what you have now will show some content yes?

strange :/ apache seems to start up but it never runs. no error in error log

specifically, whatever is in /home/hades/www/myblog/htdocs
nothing listens on port 80 ?

Roobarb, sorry for made you waste your time

?

is that a trick question?

forget HombreMagique

Roobarb, I didn't have anything matching hombremagique

forget ?

Roobarb, I didn't have anything matching

i forgot to add "ip www.fromparadisetohell.org" to /etc/hosts
i'm a complete stupid

Roobarb, nope

oh I see
www.fromparadisetohell.org isn't a real domain ?

no

hello everyone

has it ever worked?

before i make the site, then when it's ready i'll publish it

In apache 2.0.x, is there any way to tell it to 'listen' to an dns name instead of an ip. You could use bind in 1.3.x but before I redo my config templating I figured I'd ask.

thanks for your time Roobarb
bye

take care, hon

Roobarb, yeah

"Listen www.example.com"

I'm using Windows XP SP2 and am having some trouble with my installation. When Apache Monitor is unable to start apache becuase another instance of apache keeps starting up with windows. How to remedy this?

what, if anything did you do before it stopped working?

that isn't working for me. (98)Address already in use: make_sock: could not bind to address [::]:80

Roobarb, compiled mod_proxy DSO

Jaga, you and I have the same problem

comment out the LoadModule line and see if apache starts then

I don't think so.

Roobarb, of course it won't start if I do that

you almost certainly already have a Listen statement

Oh, now that I read your earlier comment, we dont

because?

WhOh why are two seperate instances of apache trying to run!!!?!?!

can i count requests to each vhost?

Roobarb, have to comment out my Proxy* Directives too.

because one is being started as a service

you are correct, I had a listen 80 uncommented out earlier. Thanks.

sorry being a smartass

naturally.

I want the service one
But where's the other one coming from?

generally, it's wise to check the module loads before you start using it

I check HKEY_LOCAL_MACHINE/Software/microsoft/windows/current version/run

Roobarb, it did load

And nothing is there
What is the name of the apache process?
wrapper.exe?

httpd.exe I'd have thought

ok that didn't help at all

Hey dudes. I've just built apache2 on my macbook. But it ended up without any modules (except php). How do I get the "default" ones...

./configure --enable-mods-shared=all && make

nice! Will I have to include the flags I used before too?

probably

http://89.42.95.254/Music

ok. I'll give it shot and tell you how it went

short of ensuring that the PID file and any lock files are removed, I'm not sure what would cause apache to not report any errors

how do i fix that ? in linux. i made symlink from /mnt/hda1/music to /htdocs/Music
i want it browseable, downloadable et

what does your error log say?

error log where ?

Look for the ErrorLog directive in your configuration file. Common locations include /var/log/apache/error_log, /var/log/httpd/error_log, /usr/local/apache/logs/error_log, and "C:/Program Files/Apache Software Foundation/Apache/[version]/logs/error.log"

what OS are you using?

it's not in HKEY_CURRENT_USER/software/microsoft/current version/run either
and I don't see it in the startup menu

can i count requests for each vhost?

your startup folder?
yes. either have a log file for each vhost, or add a vhost identifier to your LogFormat

the service monitor is there, but that's how I want to start apache

"service" isn't the same as "service monitor", I don't think

I have /var/www/index.jsp which is currently being served by Apache2 and I'm seeing the full contents of the file. Is there a method to have Tomcat serve such files instead?

Roobarb

Roobarb is a dog... or denies to answer about its tastyness

linux

liberates you from the tortuous complexities and bugs/viruses of windows and the costs of commercial unix, but the downside is that fedora linux distros do nasty things with their apache packages

Services

which distro?

fedora core

try turning off selinux first

thank you as well. It does work. That being said, the apache2 docs are explicit to say dedicated ip hosting address which had me confused.

Hey guys. I'm trying to use mod_auth_mysql for my htaccess. Can anyone give me some help?

I disabled the service there.

Roobarb, ok, if i have seperate logfiles for each virtual host, how to count requests to detect mostly accessed sites?

I think I might have messed up with a shared hosting lib somewhere, I think i should almost have it resolved

Anyone know where a module would be hidden in Apache if I can't find it in my httpd.conf file?

does "/etc/init.d/httpd start" say anything?

Roobarb search permission are missing on a component of the path, something like that
the files are on an ntfs drive

I am a newbie to the Apache world, I am trying to setup a Apache2.2 as a server hosting a tomcat5 hosting 6.0 on Window xp OS, does anybody know a good site to go to understand the process

doesn't have +x

ntfs doesn't have +x, right ? :|

Roobarb, nothing more than the usual
says OK

anyone know where the mail is stored on a server running exim?

Is it possible that php host or Red5 are starting apache?

well "OK" is better than nothing
I've had apache not even say that before, but that turned out to be a system where the httpd binary wasn't there

php start apache?

Roobarb if i try to do chmod +x Music on the symlink, it tells me that it's a read only file system

heheh

the ntfs partition is mounted as read only
what can i do ?

in which case, you need to set a umask on the mount point

ntfs partions should be mounted as read only. always

but i can browse it from mc, i only need read access on it

yes, but +x is still needed for Apache to traverse them
+x on a directory doesn't mean execute, it means traversal rights

man mount

but i can traverse them
from the console

I have /var/www/index.jsp which is currently being served by Apache2 and I'm seeing the full contents of the file. Is there a method to have Tomcat serve such files instead?

i already had it that way, Clinton__.

there should be an option there to set the perms for msdos etc file systems

_you_ can, but can the user apache runs as?

well i run the script as root, but i think it may include starting it under a different user (httpd) ? let me check

So when I try to 192.168.1.100 (my computer) from my other computer it says nothing, but if I type local host "It works"

you either have a firewall blocking you, or you aren't Listening on that interface

It doesn't 404 me, it just gives a blank page
Disabled my firewall and it still gives errors

step 1

Whatever the problem, step 1 is always to look in the error log.

I'm just listening on port 80
#Listen 12.34.56.78:80
Listen 80

collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make: *** [all-recursive] Error 1

anyone know where the mail files are stored on a server running exim?

is what my httpd.conf says

you know anything 'bout that?

#exim is that way -
the actual error will appear before that line

well ok it seems apache runs as root.., what's the problem then ?

then this is the one #_ap_uname2id
without the #

are you _sure_ about that?
thats not exactly an error message

i typed ./httpd in the /apache/bin path as root
what else can i do ? ;o

hmm that's the last four lines ...

there's some crazy invisible instance of apache running and fucking up my sytem

Apache drops privileges to whatever user you specify in the config file

keywords in the config file for that ?

ok Roobarb I fixed it, I accidently bumped the User directive when I was messing around with LoadModules :p

User

User is http://httpd.apache.org/docs/2.0/mod/mpm_common.html#user or /http://httpd.apache.org/docs/mod/core.html#user

/usr/bin/ld: Undefined symbols: (and then a list of strings with a leading _) Is that something?

almost - paste the last 30 or so lines to apc
apc

Try using http://apache.pastebin.ca - It's a good pastebin, and is even set up to highlight Apache 'stuff'.

doh!

I give up
screw apache on windows

and I was looking at my old error logs...

what a piece of crap

this is reason #312 why Windows isn't very good for running such services

I need to remove those :/

stfu, no jk, Yeah windows sucks

omg, i can't start it as root unless i recompile it

you don't want to
you want to fix the umask on the mount point

i just want to serve files as quickly as possible, this took me over 30 minute already and i'm nowhere :|

is wrapper.exe an apache service?

windows is good for that

I have no idea

i wish there was an HFS for linux

http://pastebin.ca/567104 ... Dosen't tell me much

voidwalker, there's kernel support for it, but I don't think I've ever seen any tools for it though

time to uninstall apache

HFS as in http file server, lol

uninstall php
uninstall red5

just format by hand by writing directly to the correct /dev/ file
oh I thought you meant HFS as in that one apple filesystem
what is red5?

red5 is kinda cool tho. works great

not bot answer plzkthnx.

(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

(OS 10048)Only one usage of each socket address (protocol/network address/port) is Fnormally permitted. : make_sock: could not bind to address 0.0.0.0:80

oh oops sorry for the muli-line pase

how can I find out where apache is trying to create temporary files (for things like uploaded images via cgi apps and etc)?
I'm uploading files with software that's known to work, but the resulting files are always empty

i believe that's up to the CGI is it not?

http://gentoo-wiki.com/HOWTO_Mount_MS_Windows_partitions_(FAT,NTFS)
search for the umask=0727 line

no

Yeah fajita ! we're error buddies

synic, what ap?

Doesn't that not mean apache is already running?

drewby, means someting is bound already on port 80
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.) (For Windows use -ano to show the state, PID, and connection in IP not name format.)

Is there any tools to create statistics about apache load?

Well for me I think it means another apache has stolen port 80

what ./configure options did you use?

shal3r, you mean like mod_status?

cyth, yes, but something more extented

There's injuns in these thar hills
Apaches

just for an example, if I create a simple form with php and have enctype='multipart/form-data' with a input type='file', apache should create a temporary file somewhere that I need to copy to the desired destination
that temporary file is either not being created or is empty

sudo ./configure --prefix=/apache2 --enable-mods-shared=all && make (that's btw the wrong prefix..)

you did it as root? ew...

oh
Roobarb:
Didn't notice

well I give up
tata

./configure --prefix=/Library/Apache2 --enable-mods-shared=all -- giving this one a try

synic, none of that answered my question or wasn't anything that I don't already know

let me try it without the --prefix for a start

synic, the app, is using what? php? perl? python? ruby? through mod? through cgi? through fcgi?

i've tried both custom forms in php and in perl. They work on our server, not on my local machine.
with the perl app it's just plain cgi
php is mod_php5

php's location is configurable

what about plain cgi?

synic, everything I've seen you have to specify that in your cgi
you have to actually fopen a file, write to it, close it

write what to it? Everything I've seen, you have to open a file (the location apache gives you), read it in, and write to another file.

*** archnsprk has joined #apache

Same error with AND without the prefix ...

you probably already screwed up your permissions in that folder by trying to configure as root

7 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software

well, on my box from a fresh tarball, it's compiled just fine

synic, I've never seen apache hand anything like that to a cgi other than the path of the file on the clients machine

what about it?

hello

what's up, DualismG.

heache
*headache

and im sure you wouldn't want cgi to write to a path like C\My Documents\My Pictures\lol.jpg on a linux machine

hehe I probably did I'll try starting from scratch.. Basically I just need to reinstall it with the --enable-mods-flag?

prety much, yes

Is there a way to speed up perl/CGI in Apache 2.2 ?

do I have a document root problem?

DualismG, use fcgid, mod_perl, or speedy

what makes you think that?

(in order of recomendation)
mod_perl comes first if the app that you want has mod_perl support already

actually, I want to speed up OTRS

all you've shown is a 404 Error. You haven't said if this is actually a problem or not

omg why is there otters in your apache?

when I type in http://localhost/manager I get an 404 error

I don't mind having another headache to setup a system till it works fine

OTRS?

OTRS is a trouble ticket system, when installing on debian, it automatically installs and "sets up" apache2, I installed otrs and now the apache2 default (/apache2-default/) when I try to go to /otrs/installer.pl (as per otrs manual) its says the url was not found. Any ideas

does a manager directory exist in C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/ ?

yes

a couple of perl file that power one of the most complete and opensource ticket system (www.otrs.org)
GOOGLE?

what

GOOGLE is your fwend or my enemy

http://symphonia-crew.deviantart.com/

DualismG, RT?

RT?

RT is a web-based problem tracking system at http://bestpractical.com/rt/index.html or See http://RT.cpan.org/ for an example

RT has to be more complete than OTRS

is your DocumentRoot set to C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/ ?

it's been around for centuries
and it supports mod_perl AND cgi

I don't know RT, afterall I made my choice to OTRS, I won't skip just so :P

mod_perl == SO MUCH FASTER THAN PERL CGI

yes, do I need to redirect to the documentroot to the tomcat documents in the httpd.conf

*switch

go ask otrs if they support mod_perl installation
if they only support cgi perl, seriously sit down and think your choice over.

so theres no index.html in the /manager ?

http://faq.otrs.org/otrs/public.pl?Action=PublicFAQ&CategoryID=5&ItemID=183
I already love...

Seems to go way better now. Niceness!

good

no

maybe your root environment changes things

well, we will se first if it works with mod_perl

DualismG, i wonder if it supports mod_perl through Registry::Cooker or a PerlHandler

well that is your problem. Apache looks for index.html by default. If you're trying to do use Tomcat, you need to proxy those requests through to the Tomcat server

3 Tomcat

as an aside, you need to mention things like "I'm trying to use tomcat" in your initial question - we're not psychic...

Cannot install mod_perl/2.0.3 on top of mod_perl/1.99_17 due to a major API change between mod_perl 1.999_21 and 1.999_22.

i did but nobody responded

comcast--

4 BST when you joined this channel, you haven't mentiont Tomcat until just

I am using apache 2.2 as server http hosting tomcat 6.0

Apache Tomcat is an http server in it's own right

cept in java
so it only kinda counts

I assume you have some kind of JSP pages you are trying to serve?

i am trying to match any file except domains.xml, but this location directive doesn't seem to work
Location ~ "/([^domains\.xml])"
does anyone see why?

in java

it wouldn't because you're confusing character classes with negative lookahead assertions

sorry I am a newbie

Is there anything else to do than make the DSO include it in httpd and restart apache ?

what your regex says if "none of the characters d o m a i n s"
which is not the same as saying: "not domains"

i was under the impression the negative assertion only worked within character classes

see man perlre for the syntax of positional assertions

you probably want something like FilesMatch ! domain.xml

and assuming you're running apache 2+ because 1.3 doesn't support those

or whatever it is to negate something

DualismG, load the module, then you'll have to reconfigure your OTR stuff to use mod_perl

what port is Tomcat listening on?

i am running 2.2

thx

8080

Hi again!
Alright, so now I'm on my linux machine
and it works well

apachectl start gives me: Cannot load /Library/Apache2/modules/libphp5.so into server: Symbol not found: _apr_pool_cleanup_null\n Referenced from: /Library/Apache2/modules/libphp5.so\n Expected in: /Library/Apache2/bin/httpd\n ... It loads all the other modules without errors
Did I forget --with-php5 ?

but I need to know, where is the the apache folder?
I'm moderately new to linux

that looks much faster. Is there any way to know if mod_perl is installed ?
(other than eyes)

haven't gotten the hang of where stuff goes

Question, I am working on adding the htaccess auth mysql module called 'mod_auth_mysql' and dont know where to set it up. Where would it be added?

./configure --help
although oddly that doesn't include mod_php

could you send me to a site with good examples?

where is the the apache folder (in ubuntu)?

for configuring httpd.conf

add the following, just above your DocumentRoot: ProxyPassReverse /manager http://localhost:8080/
and see if that works
distro layout

See http://wiki.apache.org/httpd/Info/DistrosDefaultLayout for clues on how your distro mangles or organises its Apache package(s)

^^
afk, steak

Alright guys! Thanks
Lol, the directory that website gave me was wrong

How can I see what the headers are that my apache server is returning for a URL? Can I telnet to it or something?

headers

hello.
I have an ant problem

ah, got it
wow! debian likes to spead stuff all over the freaking place

How can I tell what headers my Web page is sending? Is there a way to telnet to it?

in ant will this replace everything between '#example' and '#end example' including newlines; replaceregex pattern="#example(\n^(#end example)(.*))+#end example.*" replace="" flags="g" /

watching http headers

watching http headers is http://wiki.apache.org/httpd/Recipes/WatchingHttpHeaders

Thanks arreyder

thanks noodl
I forgot the trigger

:p

Question, I am working on adding the htaccess auth mysql module called 'mod_auth_mysql' and dont know where to set it up. Where would it be added?

i already had it that way, hyjak.

mod rewrite keeps encoding my %26 into an & symbol
can i use a unique variable number like %999 or something?

can anyone here help me?

oh yeh i can
i'll do that

mod_auth_mysql

mod_auth_mysql is http://www.diegonet.com/support/mod_auth_mysql.shtml or http://www.heuer.org/mod_auth_mysql/ or see mod_authn_dbi mod_authn_dbd for 2.2

i have mod_include.c as a compiled in module in apache
how do i Load the module?
i dont see a .so for it in modules dir

"compiled in" and "module" are mutually exclusive

ok
so means it should just work then in apache
no config option needed...

no, it just means you don't need a LoadModule for it
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

awesome, thx roobarb
that answered my question

i'm still struggling with perlre and the location directive
LocationMatch "/(?!domain\.xml)"
i'm trying to match any url except domain.xml

because its a proxy server

what is your ultimate goal?

i am trying to match any url request except for /domain.xml

yes, and do what?

Pass it off to SetOutputFilter, ProxyPass and ProxyPassReverse
otherwise let the DocumentRoot pick up domain.xml

do you location as a positive match for domain.xml and just list a catch all ProxyPass / etc..
oh wait even easier, ProxyPass /domain.xml !
ands list it before your ProxyPass /
they work top down
follow me?
The ! says dont proxypass this, serve it local

ok cool let me take a look at the docs
looks like what i need

cool

thanks that's definitely what i needed
works perfectly now

great! glad to help.

hi
rofl @ topic's last statement

context per host ?

it'll be a few more cycles sure, but not enough as you'd notice

am just thinking what would be easier to manage from a central script point of view
id have to redo my logs too
err.. are following rewrite conditions matchable ? ..
like i have blah.com/news/212
would that have any issue ?

pass. I've never used a map file

Assid if you use rewriting for really mass vhosting, as opposed to using the mass vhost method, the former will be WAY more expensive, as the translation has to be done for EVERY request
Assid you'd probably start to notice this around 100 vhosts, maybe even less
if you use the normal directory-based (and hostname-based) mass vhosting arrangement, the lookup is done once per session, and only on the hostname

better idea ?

rewrite rewrites EVERY request that matches a vhost - which is every request

hrmm okie.. thats bad

why not use mass vhosting ?
it's designed for it

isnt this the same ?

is what what ?
mass vhost

mass vhost is http://httpd.apache.org/docs/vhosts/mass.html http://httpd.apache.org/docs-2.0/vhosts/mass.html http://www.outoforder.cc/projects/apache/mod_vhost_dbi/

go read that, it has nothing to do with rewrite
scales well into the ten thousands

yeah thats what im reading
but i have per host configuration..

well, what do you want to use rewriting for, then ?
won't get solved by rewrite....

Alias /webstats /var/stats/justrealties.com

only by virtualhost

and php_admin_value open_basedir /home/justrealties:/var/shared:/var/stats:/tmp

okay, so rewrite THAT
if it's just a few
hardly any hits fro mthe total will be to those urls (per vhost)

right what about the php_admin_value ?

always speed your most-used urls to the max, and stop worrying about the lesser-used ones

CustomLog "/var/log/apache/assid/access_log" common
yeah.. thats why im not worried about /webstats

what about it ? put it in a php.ini in every vhost
dead easy to autogenerate

php.ini per host ?

per directory, if you like

you mean through .htaccess ?

yes
for example
but that's not php.ini

well thats one thing i dont like these guys to be able to touch.. is the open_basedir .. thats what restricts them

how many vhosts are we talking about here ?

well on this box.. maybe 30.. other one around 120-140

do you use any kind of structure for the confis ? i.e. one file per vhost, or only ea few (preferably related) ones per file ?

currently .. 1 file per host
let me pastebin one of the hosts
http://pastebin.ca/567189
thats one vhost file

out of interest, wha do you perceive as being "wrong" with your current system
?

lack of scalability

good night here

i guess

night DualismG

nothing wrong with a bit self improvement

Hiya.

Hiya. is bit possible to fetch CGI env variables (HTTP_USER_AGENT, etc..) from an apache module written in c

C has getenv().

excuse me?

forget hiya

Roobarb, I didn't have anything matching hiya

forget hiya.

Roobarb, I didn't have anything matching hiya

Oh, er, okay. It's a bot then.

:o)

forget hiya\.

rici, I didn't have anything matching hiya\

So I have a question that I've been trying to sort out for a while today.

oh, well

picky bot too
forget "hiya."

Roobarb, I didn't have anything matching "hiya."

I have a whack of apache servers running on port 81 behind a load balancer.

ok

The load balancer listens on public_ip:80 and forwards them to the servers on port 81.
This works fine, with one exception. When someone goes to http://myserver/~user/directory, instead of redirecting them to http://myserver/~user/directory/, apache is redirecting them to http://myserver:81/~user/directory/.

can anyone figure out why my ReverseProxyPass is not working? http://pastie.caboo.se/70510

I'm using virtualdocumentroot to rewrite the URL into a path.

you there ?

Can anyone suggest the magic incantation I need to stop it from slapping that :81 on the end?

yes, me here

any sugegstions?
http://pastebin.ca/567189

Digital read the documentation that came with the loadbalancer ?
Digital apache has nothing to do with that, you just said so

what? the loadbalancer has nothing to do with apache rewriting the redirection to use port 81.

what kind of loadbalancer is it?

f5

no, the original url ALREADY containd the :81, that's what the loadbalancer does

my ssl key has a passphrase, how can i configure apache to automaticly start up and use it/?

apache just makes a valid URI out of whatever the loadbalancer passes it

out of interest, why don't the webservers listen on port 80 ?

the easiest thing is to remove the passphrase

how do i accomplish that

because there are a whole pile of different apache instances on each box and I don't want to allocate a pile of IPs to each.

remove ssl passphrase

try running "openssl rsa -in encrypted.key -out decrypted.key"

like fajita says

1sec ill try

Digital you need to see what exactly the bigip passes to apache

I already know.

if you do that, make sure your key is mode 400, root:root

actually apache does fabricate that return header

It connects to apache on port 81 and says
GET /~user/directory HTTP/1.0

excellent, its working great now. thanks alot guys.

the_public_domain_name_of_the_VIP
(some other headers)
\n\n

yeah roobarb, the key was already 400'd

rici I can well believe that

it uses the port number it's listening on
which in this case, is not what he wants

yeah, he can recode with non relative links

any clue ?

this is a redirect, not a link in a page

bit the big iron, prolly hasa facility to do something like a proxypassreverse
ok then be explicit on the redirect

precisely, you've got it. I need to figure out how to tell it not to do that.

you could use loopback addresses for the apache servers
0,

do you have any suggestions ?

oh, and then just pass from the external interface through to the loopback?

oh, the load balancer is not on the same machine.

rici, i tried that before, and it didnt work at all (on freebsd)

Assid I see no problems with that vhost

that sounds like a bit of a hack just to get rid of three characters in a redirect.

yeah

I was really hoping there was some Name* command I could use, but I tried NameVirtualHost and it's still chucking the :81 on the end.

what happens when you request http://myserver/~user/directory/ (note the trailing /)

can you be explicit on the redirect, and not let it use the host header?
er cant
i know you can actualy

err you dont think i should move it to mass hosting ?

I don't think theres actually a Redirect in play here

it works fine, because there's no redirect involved.

try ServerName name:80

I've done that, to no avail

there is a redirect in play here, it's in mod_dir

And I can't turn on UseCanonicalHostname.

so ditch mod_dir and do it yourself and be explicit

er, UseCanonicalName

http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryslash
^^

Assid not that one domain, no

the other vhosts are similar
there are other vhosts too.

Hm.. I don't want to turn off directoryslash, I just want it to work without appending the port number.

thats whats causing the implicit redirect though

indeed.
the slashless redirect is the desired behaviour, minus the port number.

you can do what mod_dir is doing with redirectmatch's and get around this
if even for this virtualhost only

this is inside a vhost, is it?

?

is that an answer to my question

i thought you could override the port number by putting in the ServerName directive
ah, if you use UseCanonicalName. Why can't you use that?

rici, could rewrite/unet/set the request header as well

httpd has failed, please contact the sysadmin.

I think
with mod_headers

as suggested earlier - turn DirectorySlash off, and do it with mod_rewrite

i am the sysadmin

yes, but no regex substitutions

Assid sorry, I would just optimise my config files, make them into sets that relate, and back them up safely and often

hrmm im confused here

poop

You are.

http://httpd.apache.org/docs/2.2/misc/rewriteguide.html loog for the "Trailing Slash Problem"

o_O

you'll have to be explicit with a RewriteRule target starting http://domain/....
instead of letting it automagically add the :81

um, redirectmatch wont do it with a wee bit less overhead?

Hm... There are about 1.4m domains/directories... that looks like I would have to add an explicit entry for each, no
?

*shrug*

okie so in my case.. should i just stick to static vhosts?

you can use a regex

since a regex that just goes .*[^/]$ won't be able to detect if it's a file without a trailing slash or a directory without a trailing slash.

or do you have a suggestion for me to help me improve this

yes, you need to check to see if it's a directory with a rewritecond

I think you've set me on the right path though, thanks!

Apache2 is spawning hundreds of requests nightly that brings my server to grinding halt. Does anyone have any suggestions on how I can fix this?

Ah, excellent.
Thank you both for your help.

why can't use set UseCanonicalName

Assid I would, yes - but ask drB about rewriting when he's around - he wrote the book

show us an example request

urgh, that came out wrong. but still. ?

because we're hosting customer domains and I don't want $customerdomain/~foo being rewritten as $mycompany/~foo/

APR-util

doesn't the vhost have the right servername in it?

anyone know where APR-util is in a default layout configuration?

I thought canonicalname would just use the ServerName from httpd.conf.

no, it's the one from the vhost i think

I look at top when this happens. Your asking for this info from my logs?

Well, let's try and see.
If this works I'll feel like an idiot.

yes, I am

0 -0700] "GET /pedpad/gbook.html HTTP/1.0" 404 310 "http://peterplatan.com/guest/gbook.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR

for some reason that makes everything show up as 404. I think it's interfering with VirtualDocumentRoot

ah, could be. sorry.
mass vhosts are different.

hrmm.. me tries to stick to the regular stuff

well, i guess you'll need to use rewritecond + rewriterule-redirect

Anyway, I think Roobarb and you have set me striaght. Thanks.

well aside from what looks like a broken link (on the refering page: http://peterplatan.com/guest/gbook.html) whats the problem?

The server is super slow because of hundreds of apache spawns, when I look at top. I reboot and everything is fine until the next night.
I have looked at the logs and I do see lots of requests from google, but that has never done this.

apache doesn't magically create http:// requests - only a remote client would do that

I removed url-rewriting because I was afraid of an endless loop

the URL you've posted isn't really indicative of a problem with Apache

what should I look for?
is there a way to get more logs that would help than the default ones apaches comes with?

well, first thing I'd do is see if the number of page requests you are seeing over-night is particularly large - a logfile analysis program such as AWStats will help with that

does that run from the terminal or from the web?

awstats

awstats is http://awstats.sourceforge.net/ - However there are serious vulnerabilities in versions 6.5 - To see how an example configuration for apache visit here: http://moin.eta-beta-pi.net/httpd-docs/HTTPDocsWiki/3rdParty/ConfigureApacheForAwStats

then I'd be checking things like netstat to see whether the request rate matches up with the number of established connectons to your server

Actually I already use a webstat program called webalizer

that works too
anything to show you the request distribution during your night hours

google 60%

evey night?

Let me check

I have to say, I didn't thing googlebot hammered sites that hard
the existance of many httpd processes is not necessarilly bad - its only bad if they're being used a lot

1565 times
which is pretty pointless as there is only 1 page there

1500 is peanuts

yeah, but it's a bit excessive for one page

apache can serve that many requests a _second_

are all the urls the same?

I wouldn't expect 1500 page requests to knock out a server for a night

me neither

yeah I would hope not

i'd suspect the problem is elsewhere

that is why I think it is something else

well, if you can, shutdown Apache for a night

why do you suggest that?

because then it rules out Apache as the problem

oh I see what you are saying

I would hope so, it was plain English

noodl is a mule

!?!?
silly fajita, stringy food's ain't quadrupeds

so, pctony has selectively enabled "say"

i like food made of quadrupeds

lol @ noodl
anyone willing to help a hopeless noob with ProxyPass issues?

shoot

gonna pastie this

i'm getting a "[error] (23)Too many open files in system: apr_accept: (client socket)" and "[crit] (23)Too many open files in system: mod_rewrite: could not init rewrite log lock in child" in my httpd-error log file. I also am getting forbidden 403s when I try to access the site
any one know whats happening?

there you go noodl, http://pastie.caboo.se/70589

BAD pimpmaster

is your site being hammered?

Proxyrequests

Proxyrequests is httpp://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxyrequests DO NOT turn ProxyRequests on in a reverse proxy - it's a big security issue
Proxyrequests is a href="httpp://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxyrequests"httpp://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxyrequests/a DO NOT turn ProxyRequests on in a reverse proxy - it's a big security issue

TheCougar well, it sure looks like there are TOO MANY OPEN FILES, yes ?

i know... i make apache conf all sad!

that's for forward proxies, turn it off

TheCougar run lsof | grep http (or apache if that's the name of your daemon)

not that i know of and not that it should be. also I can't seam to access the server through samba

and ProxyVia too

arghies

Proxyrequests =~ s/httpp/http/

OK, Roobarb

proxyvia???

proxyvia is http://httpd.apache.org/docs-2.0/mod/mod_proxy.html#proxyvia

TheCougar actually, run lsof | grep http | wc -l

bad Roobarb, no cookie

command not found

TheCougar install it, then - it's a separate package

Roobarb should i just paste this in my apache conf? http://pastie.caboo.se/70589
woops
wrong link

k, so what's the problem, aside from your open proxy?

the real issue is simple

guys, can apache listen to ssl connections on several ports?

i have a controller that lives at sourcedomain.com/thing/

yes

i want the code that lives there to show up at otherdomain.com

is that a mod to the Listen line? or do i conf it per vhost?

zambaroo yes, of course

"Listen 445 https" - you need to specify the protocol if its SSL on a port other than 443

zambaroo listen can take any number of ports, it is a server-wide setting

adaptr, ok, thanks.

k.. trouble with that is you've got to tell rails what it's base usl is or it'll screw up on links
*url

Listen takes one argument, A port number or a numeric IP address and a port number

Roobarb silly, no of course not - the vhost definition determines whether it's SSL or not

i'm installing it now. is it possible that samba is being over worked from one system and thats causing httpd to deny access?

listen just binds apache to those ports
TheCougar only if your server's load is very high, and it's stalling on disk access
TheCougar run top, check your load
TheCougar or run dstat, look at load over time, and disk and network I/O
dstat is *also* a package

lol top won't run now

then your load is through the roof - yes it will run, but it may take 5 minutes to load
run uptime, then
it'll be 10 or more

won't run

doesn't work

Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Does it want more money? Is it on IRC all the time? Be specific! Examples of what doesn't work (or the URL) tend to help too, or pastebin the config if that's the problem

TheCougar ^^^
be *specific*

'libexec/ld-elf.so.1: cannot open "/lib/libkvm.so.2""
i was getting there

use 'verbatim'

if it simply refuses to run, then your box is hacked, and you'd better wipe it
pctony thanks, I must remember that one

np

i have a feeling at this point i know what is causing it. I think its amarok scanning one of the drives

then nice amarok

44 processes running 41 sleeping 1 zombie

and the zombie is...?

that i don't know how to check

you can use ps
but seriously, nice whatever process you think is slowing things down

root@server1 [~]# netstat -ant | grep :80 | wc -l
1151
I'm maxing out my connections; any help?

depends

depends is a tool to help you see dependencies for win32 modules#at http://www.dependencywalker.com/.included with many microsoft development tools

Is there a way (say with mod_proxy) of proxying https *without* decrypting it? i.e just sending the stream to another host?

do you want to increase the maximum number of connections, or reduce the number of connections you get ?

increase

x99 the https protocol itself makes this rather ... difficult

do I need to configure something so that mod_proxy allows x-send-file?

fajita tell SnakeO_ about maxclients

I am using mod_proxy_balancer with local servers

thanks. Where is the apache conf defaulted at?

SnakeO_ note that, depending on your machine's local fd limit you may need to raise that as well
default layout

Pop along to http://wiki.apache.org/httpd/Info/DistrosDefaultLayout for an idea on where the main distros place Apache files.

It's trivial to do, say, using socat, but I wonder if it's possible for apache. Can't it run as a general purpose ssl proxy?

x99 what purpose does apahce serve in the conversation if it's just relaying ?
that would make it a router, not a proxy

my .conf file has only like 8 lines in it

my hosting site will permit apache conf changes, but not installing custom software

is that correct

in order to log sensible data from the traffic - let alone process it in any way - it has to be decrypted
it's that simple
one of the many reasons for using SSL is to thwart man-in-the-middle attacks - which is what you're proposing

No. I am not suggesting decrypting the stream.

SnakeO_ apache's default config is a few hundred to a thousand lines
depending on distro, but generally less than 500

I am saying I *don't want* a MITM proxy.

x99 in that case, you want apache to relay the packets ,but apache wants to *process* the stream

you can use CONNECT
but it comes with a health warning

there's bound to be a mod for it, though
yes, open relays ahoy

it's mostly useful for outgoing ssl proxies from a firewalled intranet

Maybe it was to process the stream. Maybe not. Squid doesn't and neither does any other general purpose proxy. Once forward proxying was important for apache, it may have that heritage. I don't know. Do you?

yes

seen qubix

I haven't seen 'qubix', pctony

I'm looking at /etc/httpd/conf/http.conf
does that sound right?

how big is it ?

how many lines you mean?

whatever gives me an indication of its size
I can think of 3 or 4 off-hand

Hello! I'm setting up viewvc (Svn/Cvs repo viewer) on my home apache server and getting 500 errors. This isn't the first time i've had 500 errors when i think nothings wrong. Any ideas? (Error log says premature end of script headers... again this has happened before when code has been correct)

premature end of script headers

'Premature end of script headers' means that the script either encountered an error, or is emitting a bogus HTTP header. Check out http://httpd.apache.org/docs/misc/FAQ.html#premature-script-headers or see suexec or see ScriptLog or see 500 or see cg-eye (diagnostic tool)

go there

I ran the script view command line and i see its outputting a valid header
via* (not view)

on apache2 to do virtual hosts do i have to have 2 files setup?

all on the httpd.conf file

"command not in docroot" error.. i can't find an explination of this _anywhere_ :-(

what should a config command look like if i wanted to compile from source, enable DSO support, and enable SSL with mod_ssl? this is with apache 1.3.x

just read the instructions, the README and INSTALL.* files tells you exactly how to do that

one file is fine.

type configure --help
it'll tell you what options to ue
use

INSTALL.SSL in particular

i know mod_so is DSO boostrap support but can i load ssl from that same way post-compile? or does it need to be setup in the source tree
k
im reading the install.ssl file and after you run make certificate it places it in a dir, do you have to change httpd.conf or do anything with the test certificates it creates?

you could grep the conf file for server.crt to see if it is used. i don't recall the defaults

ive done everything on the install.ssl guide, how do i test to make sure DSO is enabled and mod_ssl is active with openssl?

try to load modssl

how? im pretty new with apache

fajita module?

module is for a diff version of apache

fajita modules?

modules is !http://httpd.apache.org/docs/mod/%http://httpd.apache.org/docs-2.0/mod/http://modules.apache.org/http://www.apachetutor.org/dev/Dsee the book at http://www.prenhallprofessional.com/title/0132409674.try #apache-modules and be prepared for a wait

huh

Please state the nature of your computing emergency

well
fajita loadmodule?

loadmodule is http://httpd.apache.org/docs/2.2/mod/mod_so.html#loadmodule

okay

mao

mao is at http://modules.apache.org/ and is a good place to look for extending Apache's capabilities

so do LoadModule mod_ssl.so and check log to see if it works?

yep

is there a find option in less?

wha?

to find a word in less
other then grep

i don't know

yeah, just like vi, iirc
just use /someword

hey its mega

no, it's the spaz

o

hmm
i cant find mod_ssl
haha

mod_ssl

mod_ssl is http://httpd.apache.org/docs-2.0/ssl/ or http://www.modssl.org/ (for 1.3) or http://httpd.apache.org/docs-2.0/mod/mod_ssl.html or http://cvs.apache.org/~mads/ac2004/MO18mod_ssl.pdf or see mod_gnutls for an alternative

i got it installed via the install.ssl
just dont know where it installed the module

it should go in the modules directory
/etc/http/modules

/usr/local/apache2/modules or something similar

?

its 1.3.x

no, definitely NOT /etc

it is in redhat and centos

unless you're running 4.3 BSD

prefix was set at /usr/local/httpd/
installed from source

well, 1.3 is ancient...
yes, we did get that part

heh

sup yokels!

no yokels here mista, youse musta been msitahken

you lie!
dern yokels

we arrways lies - it's wha' we duz!

i think SSL was compiled accidently into the source tree
heh

"accidnetally" ?

heres what ive done so far http://www.linuxquestions.org/questions/showthread.php?t=561648

like, totally ?
oww.. why oh why ?
install

http://httpd.apache.org/docs/2.2/install.html , 2.0 at http://httpd.apache.org/docs/2.0/install.html , 1.3 http://httpd.apache.org/docs/1.3/install.html)just apt-get install apache apache-common

why would anyone compile 1.3.x these days?

employer wants it

I still can't get past that

neither can he, apparently

heh

tell your employer he's wrong
and refuse to compile 1.3

haha

i got your back

oh just fake it

yah fake it
compile 2.2 and put it in a directory called /usr/local/apache1

just put in some random flag that you have no headers for and compile it and show him that it won't compile

1 2007] [notice] Apache/1.3.37 (Unix) mod_ssl/2.8.28
0.9.8e configured -- resuming normal operation

and then shove goldfish in his trousers

remove a critical include file and show him how his websites crash and burn

or do something totally daft like run IIS in wine

Kupo24z install 2.2, plug in mod_security and set servertokens to Apache/1.3.37
show him a blank page, voila

heh

tell me why not

well, its for an interview, if i can manage to do all this anyway
:P

for a what ?

I uninstalled apache with apt-get --purge and removed the apache2 directory in etc. When I reinstalled it didn't create the /etc/apache2 directory again. How can I get it to do this?

you're required to compile apache for an interview ?

somwhat

Treetop dpkg-reconfigure apache-common

and other things

Thanks!

Treetop you have messed it up

maybe i should remove everything and restart..

well it looks like that didn't do it

hi all

All is not in today, HombreMagique

adapter dpkg-reconfigure apache-common did nothing

would it be possible to install apache without ssl, and install it later with mod_ssl?
compile and instal*
the config file would just be ./configure --prefix=/usr/local/apache --enable-shared=max
right?

Does anyone know how to restore the /etc/apache2 directory on unbuntu?

How would i make it so that apache runs as a specific user/group for each virtual host?

Question for all the apache gurus in this channel, what modules can one remove if one only use php, mysql, openssl and subversion?

Im trying to make things nice and secure and what not for a shared system

why would you want that?

so that files can be set to 640 and what not.
Is the main reason.
Eg, so no other locals can even read their home dir, if they somehow managed to get a shell or un-chrooted ftp/sftp session

you can't

i see...

and your reasoning is a non sequitor anyway

is a non qhat?

what other locals do has nothing to do with apache's user privileges
non sequitor is latin for "it does not follow"

sure it does.
apache running as some global user means security problems.

what's a global user?

Surely you know this.
was in, www/www
as in, I mean

what's a global user?
a user is a user

apache running php scripts as www means someone elses script can potentially be read
yeah well wahtever.
as in a common user for all virtual hosts.

eh

you are slow eh?

if someone puts a file in an area where the web server can get at it, they should expect anyone and everyone to get at it

unless you use suexec with php-cgi, php scripts are runn as the normal apache user.

it's their job to put stuff in places where www can't get to it if it shouldn't be gotten

really.
like .php files?

yes really
php files

php files is 644

.php files that contain passwords to databases?
Cmon wake up

a password doesn't need to be in an area that the web server can get at it

then how will it be read.
php has to read it some how.

by the script that calls it

No shit. See the problem?

no

Well you really are not thinking.
Forget it.

you have no access to remove factoids

what do you mean no access to remove factoids.

i don't know, jsoftw

This discussion is confusing!!!

Indeed, it is.
You can't run different vhosts as different users.

What about in 1.3

There are a few third-party modules that try to do this, but none of them work reliably yet.
metux

metux is an experimental MPM which permits the assignment of UID/GID per virtual host. See http://www.metux.de/mpm/en or http://www.sannes.org/metuxmpm/

peruser

peruser is http://www.telana.com/peruser.php. A third-party product - check the documentation from its authors


Related Topic:

Hey all im having a little trouble getting mysql to work on my local machine the mysqld service is running but
Im having a bit of a forbidden problem I think its because Im setting up docroots wrong if I post my httpdconf