Related Topic:







can anyone direct me to software so that I can set up a geocities free webspace clone?

turn on the rewritelog, for starters

I have, but someone else is working with another site on the same vhost, it's making logs very messy
...just going to make a new vhost for it
Right, that hasn't made anything better...
Hmm...

are your changes even being read at all?

Yes, they are
For a straight http://host/ request is seems that the !-f rule is being matched.
Hang on.

the rules look correct. Of course, perhaps you could tell us what you're trying to achieve.

http://apache.pastebin.ca/630236
That's the current one.
I want any css, image or js to be rewriten to themes/$1 and anything else through index.php?url=$1

I'm looking for an open source web interface that will allow people to sign up and get a few meg of free web space... does anyone know a package for that?

Alright... I'm going to make it easier - I will hardcode all the asset links.
I'll stop trying to be clever, as it was going to be too easy to break anyway.

google might.
give me a sec

hi all

All is not in today, johnnybuoy

thumbs, yeah, i'm still searching... i was hoping for some expert advice...

LOL
fajita, you a bot, eh?

no idea

lol
I'm wondering why my .htaccess files are ignored...I have allowoverride all in my directory config

garbage

try putting junk in your htaccess file. If it's being read, you will get an Internal Server Error when accessing that resource.

htaccess purpose

Don't confuse htaccess with password-protection. The purpose of htaccess is to enable users to configure apache locally for their own directories, when they have no privilege to do so in httpd.conf. Using htaccess slows the server. Also rewriterules and redirects are more complex in htaccess

junk like what?
yes

.htaccess

okay, I tried to add it to the server config too
but it again got ignored
Supaplex, it's fine

so it barfed as expected?

no
it's ignored
Directory /htdocs/
Options FollowSymLinks
AllowOverride All
Order Deny,Allow
Allow from all

Options FollowSymLinks is Allows Apache to follow symbolic links
AllowOverride All is a really bad idea, because it implies AllowOverride Options, which lets people do stuff like Options FollowSymlinks and Options ExecCGI, even though they are explicitly disabled in the main config.
Order Deny,Allow is The Deny directives are evaluated before the Allow directives. Access is allowed by default. Any client which does not match a Deny directive or does match an Allow directive will be allowed access to the server
Allow from all is a whorehouse, innit?

/Directory
this is the directory config

paste

No, please don't paste here, use http://apache.pastebin.ca

oh sry!

now, upload the .htaccess file

all I have in it is "hello apache"

what's the full path to the .htaccess file?

full path by url or by fs?

Hey
I seem to be having a problem with my cgi

in the filesystem, johnnybuoy

It doesn't seem to be outputting anything to the browser

/var/www/localhost/htdocs/mrtg/.htaccess

But running manually through perl works fine

for example

step one?

whatever the problem, step one is to look in the error log (and any other logs that may apply, such as suexec, mod_rewrite, or mod_security).

make sure the headers are printed

do you see the problem yet, johnnybuoy?

They are
perl wafinanceProcessing.cgi
Content-type: text/html

sample url

Could you please give us a URL at which the behavior is demonstrated. This would help us troubleshoot the problem.

jpeg, hmm? not really...

you also need two blank lines after that.

Got them

sample url

Could you please give us a URL at which the behavior is demonstrated. This would help us troubleshoot the problem.

/htdocs != /var/www/localhost/htdocs/mrtg/

I've written plenty of cgi before, the problem seems to be with this specific apache install

your directory container doesn't appear to match where the .htaccess lives /htdocs/ != /var/www/localhost/htdocs/mrtg/.htaccess

sample url

Could you please give us a URL at which the behavior is demonstrated. This would help us troubleshoot the problem.

perl

Check out #perl or http://www.perlmonks.org. To test a perl script, use \\ at a shell prompt. DO NOT use "perl scriptname.pl" as, that will mask shebang errors. .

directory container?

directory

http://httpd.apache.org/docs/2.0/mod/core.html#directory

container/directive/etc

contained /directory

so what if when I edit the httpd.conf file
and config the directory there?

if you can avoid using htaccess, please, do it.

Directory /var/www/localhost/htdocs/mrtg/
...

yes, do it that way.

AuthUserFile /var/www/localhost/htdocs/mrtg/.htpasswd

Ok, have now run it with ./, still same problem
And, as I've said, I've written plenty of cgi, so I know my shebang

sample url

Could you please give us a URL at which the behavior is demonstrated. This would help us troubleshoot the problem.

GIVE US A URL

It's on a local box with a firewall preventing me from doing that

OK. What does the error log tell you?

dejavu

jpeg, Supaplex I was stupid, fscked up, thanks, guys, I needed full path in the directory config at Directory /path/to/dir

of course you do.

Nothing. The only thing in error_log is that apache was started fine

but in my stupid distro's config file it's /

did you chmod +x the script?

strange...

Yep

does your script output valid HTML?

Yep

What do you see in the browser?

Directory applies to that path and subdirectores

Nothing

setenforce 0

setenforce 0 is disabling selinux

And no source comes through

What HTTP response?

the HEAD alias rawkz.
aka lwp-agent

install the FF extension, and inspect the HTTP headers
errr
^^

Ok, thanks

Or HEAD, as Supaplex mentioned

aha.

hey where do I add an e-mail address so apache will send me notifications when the server goes down and when the server geos back up

httpd does not do that

how would I go about acomplishing my goal?

you can google for third-party software

use nagios instead

or nagios.

nagios is Van open source host, service and network monitoring program. or http://www.nagios.org/

or many other monitoring utilities
google knows about them.

http://americanliterature.dukejournals.org/cgi/reprint/78/1/141.pdf

for ubuntu server?

hahaha

Hmm.. when did #apache get a google bot?

if you wish to, sure.

aptitude search nagios

you're the maste of your own machine
visit #ubuntu for more information

they'll help you break it better than we know how

\

nutch vs lucent, which is better?

or rather, ubuntu has control over you.
I forgot what way it went.

DavidHKMrPowers what's natch? and lucent in what context?

thnx

Supaplex apache nutch and apache lucent they are
web crawlers they are

news to me. just try one, and if you like it, keep using it. *shrug*

Someone pick a number between 81 and 65535

42

hotbits

http://www.fourmilab.ch/hotbits/

Yeah right

666

31337

Is fajita a robot?

31337 is popular too

no

huh?

nevermind

fajita has no physical presence. no motors. no gears. no engine.

sorry...

no physical presence?

I am a spirit of pure wisdom
He's naturally the culprit , thumbs

Whoah!

what?

Whoah!

huh?

Whoah!

i'm not following you...

Whoah!

i'm not following you...

stop.

Be nice to the bot!

got it, sorry everyone

whatever he needed....

crack smoking kids

What do I need to do so that I only have to type domain.com instead of host.domain.com
?

Something with DNS, I assume?

Change DNS servers from host.domain.com to domain.com?

you can edit your vhosts.
set a serveralias
you could even have dinner while you do that.

set serveralias to what?

to the other hostname
is servername is set to foo
set serveralias to www.foo

So- servername domain.com serveralias www.domain.com ?

sure.
both have to resolve.

hmm I am confused- Can I just change hostname to www?

sure
then that hostname has to resolve for it to work.

and servername www.domain.com #serveralias

don't put the comment.
it'll break the servername directive.

how do i bypass port 80 so i can check if my server is working diretly i have dlink 604+

what do you mean by bypass port 80?
there's no bypassing involved
you need to log into your router and port foward port 80 to your server's internal lan ip
then you can test with your external ip address

how do i forword the port 809 to my server

you have to log into your router

RTFM for your router?

portforward

portforward is http://portforward.com/

what the

you might find that link useful.
it even has examples.

ok i go check that out the site thanks you

Covener type Jesus

Reidms-Mactel I owe thumbs a dollar, you just said something stupider

haha

heh

I am so desperate to be distracted from this Black Christmas unrated DVD that's on right now

there's always ##php
:P

or #ubuntu

#ubuntu is thataway -

then again, you never said you wanted to become insane.

jesus

built my hotrod

excuse me i am in the page where do i choose the list dosent have server for forward can you speifice the listing i should be picking

UPS interrupted the server's power

you specify the server's lan ip

take care of your baby, please

on your server host just do /ifconfig -a

lol

gah

OpenBSD

OpenBSD is happy and funloving! or runs chrooted apache, which is a specialist subject or full of 'freedom' Zealots

/sbin/ifconfig

there is no server's lan up on the listing

listing?
what listing?

Welcome to our guide list for the Dlink DI-604. Please select the program you are forwarding ports for from the list below. If you encounter any errors in our guides, please let us know by using our Comments page

oh boy.

portforward

portforward is http://portforward.com/

is that link still good?

i am in that page but which topic do i look into for

i just got redirected to computershardware.info
nvm

Hahaha!! https://portforward.com/store/pfconfig.cgi

no win95, guess I'll take my business elsewhere

Only $29.95!

sounds flaky

i ain.t pay for that damn thingy

http://portforward.com/english/routers/port_forwarding/Dlink/DI-604/Apache.htm
you could've just found that page
there's pictures too!

thanks
bye

take care, hon

there's the private ip text box
that's where you put your server's internal lan ip
egads
not quite a couple of hours... :P
niq fact

The source code for Nick Kew's mod_proxy_html module only says, "if (false == HTML.correct(url)) {BEARD_WHIP;}". Needless to say, the URL fixes itself.

come to think of it, where is the .uk contigent?
dern part timers...

yet another tea time

heh... yatt

niq fact is inferior beings like megaspaz gang up on him

(douglas adams)++

heh
but i gots a towelz!
:P

it must be dirty

it's still a towel

because you seemed to have traveled a lot.

:P
towel

towel is about the most massively useful thing an interstellar hitchhiker can have... any man who can hitch the length and breadth of the Galaxy, rough it, slum it, struggle against terrible odds, win through and still know where his towel is, is clearly a man to be reckoned with
where's my towel?

hrm
lemme go see

I stole yours

MEGASPAZ STOLE IT!!!!!

:o
give it back!
grrr
hush!

hanks:-)

hanks?
-_-;

tom hanks. Of course.

heh

run!

i was thinking hank hill, propane and propane accessories

run is essentially a link anyway

pardon my narrow view of the americans, but do you happen to live in the country?

define live
:P

in this case, hanky panky w ... erm

:o

i'm a secular American

you sassy lil' mynx

i'm not following you...

ah.

bloody...thing...doesn't...work

with that kind of stuttering, i wouldn't work for you either
:P

I work for anyone

hehe

even megaspaz

yes she does
beer
.
yeah... um... exactly...
:P

hey, american beer!

saw that one coming

fajita++

I don't drink american beer

neither do i

I wouild prefer horse piss to american beer, too

*\ piss == american\ beer

are you taking the p***?

just making urine art

i'm not following you...

heh heh

I see no snow here

the ... snow?
megaspaz must live in antarctica

you are in a maze of windy passages, all alike

megaspaz is bacteria?

possibly

probably worse.

so thumbs will drink you if you're staruated in horse piss

i just can't take it anymore

heh
poor thumbs if that ever happens

to the north is a towel

no, fajita would never do that

of course not. violence is not the answer

Gar.. I just dropped a watermelon.

mmm, watermelon:-)

+1

... on a cinderblock.

well, it's still edible if it's only been on the ground for less than 5 seconds

Ah well, at least I still get to eat it

heh

whats the diff between "htdocs" and "public_html"

they are both directories
the second is used for mod_userdir
mod_userdir

mod_userdir is http://httpd.apache.org/docs-2.0/mod/mod_userdir.html or http://httpd.apache.org/docs/mod/mod_userdir.html http://httpd.apache.org/docs/2.2/mod/mod_userdir.html

i read some where (some forum) that public_html is common with linux servers
and htdocs is common with asp servers
is that true?

no
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.

i hate those phorums

read both factoids.
suckyness?

bill?

bill is american

IIS?

IIS is Internet Information Services. a microsoft product or not supported in this channel or aka Internet Interruption Service
bIIS is Internet Information Services. a microsoft product or not supported in this channel or aka Internet Interruption Service/b

so htdocs and public_html are both commonly used with apache right?

you can say that

common dirs used

you should really read the documentation

i did

ok.
they are common enough.

so its just a matter of preference

it can be altered.

but those are the 2 main standard names used all over the place

no
they are common values.

yes thats what i mean

not standard, by any means
perhaps you should use the proper words next time
a certain word in a given context can mean something very specific

thanks for the english lesson
although its not why i came
:]
yah i dont mean standard, i ment common

ok then.
moving on.

few question to ask if you dont mind i ask

he probably does.

i have set up done perfect.. i setup the router done,, as they followed.. i set up the no-ip thingy with driver blah blah blah ,, and i test it donst show anyting work what should i do ?

not donst'ing anything?
I'll leave you in megaspaz's care. I have no time for you.

i test myu page nothing work .. it shoudl show working ! page.. but dont
then why type it in the first place
Thumbs:if you know how to help then please do.. please correct what am i doing it wrong...

i don't know anything about no-ip
why are you using no-ip? does your isp block port 80?

your problem would require at least 30 minutes of my time

yes

ok

I lack that time.

then why did you do anything with port 80?
you need to choose a different port for apache to listen on
and forward that port in your router

the noio help to bypass the port 80 since my cable block port 80
i did put 8000 port instead of 80
nothing work
maybe i did do wrong

try yoursite:8000

so when you access your site, try it with http://your_external_ip:8000

i did noting working
it show error page

yeah, basically what gidz said
what's the error?

but megaspaz explained it better

how do i check the apache port for the correct port ?

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.

that's how you tell apache what port to listen on
and you'll need to restart apache after changing the listening port

i type listen in shell it same command not found

wow. Hopeless

you do that in your apache config file

It's not a command. It's a configuration file directive.

Any benefits to using mod_cache over mod_deflate and friends?

oh sorry my mistake ok bye

In terms of response time and performance

what the fuck?

As far as I can tell, mod_cache and mod_deflate do completely different things.

They do, of course

client.

I just wish Squid would get off its ass and release a threaded version, since I can't run a threaded mpm on Debian (using their packages), and Squid on public:80 on SMP is _drastically_ slower than Apache natively on public:80
I may tinker with nginx soon, in front of Apache, to see if that helps

why can't your run worker on debian? last i remember they have an apache-worker package

I guess I could enable it and hit it with ab to find out
megaspaz, I can't, because installing php5 removes it

ah

If I want worker, I have to use php4
Its one or the other
I blame Rasmus

well that's a bummer
well, no
it's a debian packaging decision
most other packages, especially the sauce package, will let you run php using worker if you want
not recommended, but you can...

"My concern with php hosting and Apache 2.0 right now is that if we go Apache 2 with a threaded MPM at this point, there is a lot of stuff that will break. I dont think there is a compelling reason to switch to Apache 2.0 at this point, there is no killer feature. Apache 1.3 does the job." -Rasmus

that's a long time ago

A few years, yeah

and that apache2 things been over for a while
i think people still laugh at that

I should ping him tomorrow, I know he just moved into a new house though

but php itself is thread safe
shouldn't be a problem
except for the functionality you might want to compile into php

So yeah, a packaging issue... and I'd REALLY rather avoid building my own from source
I did that for years, I don't want to be in that game again

there should be a nice, fat list of things you can compile into php that aren't thread safe
you could at least then make a better decision to include them, or run worker...
yada yada yada

Right
Is there a significant difference between worker and threaded?

worker == threaded

er, ok... whatever-debian-runs-by-default-with-php5 and threaded then?

you asking about between worker and prefork? i don't know... i never run worker

Looks like prefork

i take the safe route with php

VirtualHost examples

what?

vhost examples

Look at these for examples http://wiki.apache.org/httpd/ExampleVhosts : http://httpd.apache.org/docs/2.2/vhosts/examples.html

thar ya go

ahhh, there we go

CacheSize context?

server config, virtual host

thanks

hrmmm... doesn't like CacheSize as an option
Invalid command 'CacheSize', perhaps misspelled or defined by a module not included in the server configuration
Weird... the docs reference it, but the module doesn't agree

http://ftphelp.outtaluck.homelinux.com ---that work?
should be....what the name implies,

servertokens http://ftphelp.outtaluck.homelinux.com

Apache/2.2.0 (Fedora)

Help me! When I install Apache from rpm package I see many *.so file in /etc/httpd/modules folder.

i take it that means it works?

And now, I install Apache from source tarball, I don't see they , How do I configure?

well initially, we can connect
but whether it really works or not depends on what you're wanting to see
which i have no idea

servertokens gnu-designs.com

Apache/2.2.3 (Debian) mod_auth_kerb/5.3 DAV/2 SVN/1.4.2 mod_ldap_userdir/1.1.11 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch4 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) mod_ssl/2.2.3 OpenSSL/0.9.8c mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8

should be something about FileZilla and windows

bada-bingf
servertokens gnu-designs.com

Apache

Perfecto

i see something like setting up an ftp server in windows...
*shrugs*

yeah, that's what i need, hehehe
thanks

then i suppose it's working

that damn *:80 in VirtualHost and adding the 'common' to end of the CustomLog was getting me,

uh... mkay...
if you say so

I do.

:P
niq fact

Nick Kew can divide by zero.

niq fact

Nick Kew can divide by zero.

niq fact

Nick Kew brews his own beer with special ingredients grown in his beard.

heh

Well, mod_cache appears to be working, but without a CacheSize directive, I wonder how large it'll cache off

Anyone have experience with mod_fastcgi? I'm on shared hosting, and one of my fastcgi applications isn't loggin properly.
It's logging all HTTP header responses as 200s, even though some are 404s, 301s, 302s, etc.

RewriteRule /(.*)/ /index.php?p=$1 [R,NE]

Was that a reply to me?
Guess not

RewriteRule ^(profile/.*) https://%{HTTP_HOST}$1 [L,R]

my /etc/apache2/httpd.conf is empty
I would like to change my document root from /var/vvv/apache2-default/ to /var/vvv/

because debian/ubuntu uses apache2.conf and sites-enabled/000-default for the vhost configs

/var/www

and that's just a commenting of the redirectmatch line in 000-default

servertokens http://ftphelp.outtaluck.homelinux.com

Apache/2.2.0 (Fedora)

hrmmm

OK cool. I'll look for 000-default
my sites-enabled is empty .. is this the file to which 000-default points?

hrm
um...

i tried find 000-default with no results

/etc/apache2/sites-enabled/000-default
you are using debian/ubuntu, right?

How do I get apache to ask for a username/login prompt, and pass it to a php script or whatever?

correct

What is correct depends entirely on what you're trying to do

/etc/apache2/sites-enabled/000-default

megaspaz, I am looking in that file

that file's just a symlink to /etc/apache2/sites-available/default though
a2ensite default
should enable that vhost
a2ensite

a2ensite is supposed to make it easier to create vhosts

but not having it enabled by default's pretty odd on a deb-based system

I just ded an apt-get to install
*did
ok.. the only line I see [and commented] with apache2-default is ' RedirectMatch ^/$ /apache2-default/ '

yep
comment it
and restart apache

apachectl restart

with a hash # correct? ooh.. I didn't restart apache.

well in deb it's /etc/init.d/apache2 restart
yes. # == comment
# as the line's first character == comment

-su: apachectl: command not found

well in deb it's /etc/init.d/apache2 restart

oh haha.. sorry

and deb uses apache2ctl
debian-- # renaming names

oh yea.. that too
is debian bad?

i'm not fond with debian's apache distribution

Which distro do you use?

distro's irrelevent
except the way the layout apache
and debian's layout stinks, imo

*

but...package management

but that's just my opinion

yea apt rox
Ubuntu made it first possible for me to get into a Debian system

Yeah, I like Ubuntu for desktop systems, personally.

Now I am getting more comfortable to where I can start sshing to a commandline debian server install

Cool

I'm usitg Ubuntu Studio for my desktop, Debian Etch for the server box
I'm off-topic
sorry

I should think so too

thank you fer helping me megaspaz

RewriteRule (.*)/(.*)/$ index.php?p=$1&a=$2
RewriteRule (.*)/(.*)/$ index.php?p=$1&a=$2
is this wrong?

Hi
Can i know the Last Modified date of the document
from the URL
How can I find out

hi all. who knows why when I download via apache 2.2 big file (video) it eats all CPU and speed slowing down from 6MB/s to 300Kb/s, but when I downgrade to 1.3.37, CPU usage very small and speed good all the time///
may be some tuning needed?

compare the two configs

I've tried... nothing that I can see
I asking because I've tried all I know

kaushal no. check the http and html output
_Estagus sorry, i don't know. you should stay here or come back when the channel awakens.

ok....

sedeki Pardon I didnot understand
sedeki I have checked using LiveHTTPHeaders
but i can not see Last Modified Date
in the Live Http Headers

good morning

If it is a good morning, which I doubt

you poor little girl fajita
lighten up a little and smell the flowers
good morning pctony|BB
wonderful day today?

good morning the light

roses are red, voilets are blue

(= arabic good morning)

Hey guys, I'm trying install subversion using apr-utils and apr, and i get this error on configuration of subversion...
checking for APR... yes
checking APR version... 0.9.13
error: apr-config --cppflags failed

hi all. who knows why when I download via apache 2.2 big file (video) it eats all CPU and speed slowing down from 6MB/s to 300Kb/s, but when I downgrade to 1.3.37, CPU usage very small and speed good all the time...

hi all

All is not in today, xushi_

i'm in kind of a trouble here.. I've got a 4Mb ssl_Access_log.2 which has logs from 12 july to 15 july. And i have an ssl_access_log that has logs dating 23rd july (today).. however, i can't seem to find out why/where 16th to 22nd are gone...
i don't want apache to delete any logs at all, just to move them over every day, so i edited logrotate.conf.. i'm not sure if what i did was right. I just added 'daily', and commented out 'rotate 12'

Hello guys.

hello

salut, sedeki.

can anybody help me to make point to my apache2 server??

morning

morning is broken, but we're working on it.

swarog mornin'
unknow990 "make point"?

yeah, also make translate from IP to HOSTname :-)
I have a external for my apache2 server host (running RT). I will translate the IP to my domain page. also RT.domain.com...
*IP
*external IP

i don't understand. does s/he want me to resolve an address or something?

okay :-)
I have a external IP ? ok

hi all. i have mysql 5.0.27 running on a hosted FC5 web server. for some reasons when i try to access a DB using php-5.1.6/apache-2.2.2 i am always coming in as "apache@localhost". i have defined a username and password in my script, but somewhere this is being ignored. does someone have a hint maybe where i have to search?

is it possible to use "Redirect 302 ... ..." to redirect from the base directory (the www. subdomain) to a subdirectory, without that redirect applying to that subdirectory??
or is there a way of over riding the redirect once in the subdirectory?

is there anyway to stream output with apache2. did a simple test with php using sleep() i want the output in real time.. is this possible?

you're not making sense. You sentence is broken. Fix it.
this sounds more like a PHP/MySQL issue.. you're better off asking in ##PHP, or asking your ISP.
stream what?

jMCg, output from my script... send the http headers, then stream the http contents in real-time through my script (php, cgi, whatever)
ie, can i disable output buffering?
or does php do that?

thespore check out www.php.net/ob_start
you can do what you want... like a chat or something right?

sedeki, well, outputting status of my script's processing. but ultimately i want to do it with ruby as a CGI module

sorry. I want to redirect from www.blah to subdom.blah, using .htaccess, but subdom.blah is actually the same as www.blah/subdom, so the redirect becomes an infinite loop
(because .htaccess rules apply to subdirectories)

looping?

looping is http://rewrite.drbacchus.com/rewritewiki/Looping

ah.. that's for rewrite...
forgot...

bugger. thanks

put the redirect in the vhost corresponding to www.blah only
and have a separate vhost for the other subdomain
that way you'll avoid looping
unless you meant rewrite for redirect, in which case the link jMCg posted is appropriate

unfortunately, it's not my host, and I don't have access to the vhosts.
I meant redirect

then you should rewrite

if I rewrite I should rewrite www.blah.com/ to www.blah.com/wiki/?
damn that's some dodgy grammar.

RewriteCond %{HTTP_HOST} www.blah \n RewriteRule ^ http://subdom.blah [R,L]
or somtehing to that effect

I'll give it a go
did nothing

hi all

All is not in today, napnap

heh

all is in #mandriva

all (n=all@81.190.83.213) has joined #mandriva

this morning, I launch my localhost server apache, then I try to access on my development websoftware like usually, but I take a 404 error..;
if I try to access at localhost without directory, a login dialog appear as if I have a htpassd (but not)

can a person perhaps help me?

hi
napnap care to explain whats up?

that wasn't to be put as is
read a bit on mod_rewrite first. also, if you put it just like that, with the \n and all you probably don't have the proper override

yeah, I know, I changed the appropriaet bits, and it's on two lines.

mitzevo, I try, but I don't know what happen, simpy I've launched my webserver (server is running) but I can't access to my localhost dev webpage...error 404.. (the address is good)

hello

the document root is good..

any developers in here? we've a Apache/1.3.33 here on FreeBSD 5.2.1, which does pretty fancy things when we add a vhost without corresponding NameVirtualHost entry
I would expect a 'no NameVirtualHost for this vhost - ignoring' message, but depending on the order related to the other vhosts it is accepted or ignored
bI would expect a 'no NameVirtualHost for this vhost - ignoring' message, but depending on the order related to the other vhosts it is accepted or ignored/b

and exactly what suprises you about it?

hi hi i've foun'd the answer...an other server have been launched at boot time :-S sorry

"If I break the vhost config it does weird stuff." - well.. duh.

Syntax error on line 19 of /etc/apache2/conf.d/egroupware: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

do you have php5_module or whatever it's called loaded?

jMCg, i am new to apache so i have no clue
jMCg, which module so i need

that apache does not print out an error nor a warning and that it accept it and uses it

I want to add a AuthType Basic for that file only, how can I achieve that?

yeah.. unfortuantely, that's quite normal. One of those things that boggle your mind when working with vhosts.. you just have to get them right.
httpd -M tells you what modules you have loaded.
httpd -S tells you how b0rked your vhost config is.
you might want to look at
files

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

Or filesmatch.

filesmatch is http://httpd.apache.org/docs-2.0/mod/core.html#filesmatch or http://httpd.apache.org/docs/mod/core.html#filesmatch

ok thx
hopefully also 1.3

Just replace 2.0 or 2.2 with 1.3 or
upgrade

Old Apaches are harder to support than newer Apaches. Please upgrade. (2.0-2.2 http://httpd.apache.org/docs/2.2/upgrading.html)

httpd: command not found

default layout

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

some distros like to name httpd differently.. like apache or apache2...

jMCg, i use ubuntu

i use windows xp home
ops.. wat are u talking about :/

jMCg, dhq@dhq-laptop:~/Desktop$ apache2 -M Syntax error on line 4 of /etc/apache2/mods-enabled/fastcgi.conf: FastCgiIpcDir /var/lib/apache2/fastcgi: access for server (uid 1000, gid 1000) failed: write not allowed

do it as root.

Syntax error on line 19 of /etc/apache2/conf.d/egroupware:Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration

Back to the beginning....
I suggest you first read /usr/share/doc/apache2*
unix 101?

i haven't a clue

jMCg, wat to read

everything.

jMCg, i dont understand it

Then read it again.

hello.. anyone have any suggestion on how to add custom dynamic variables work in httpd.conf?
i need to apply different rules on a bunch of servers, preferably with the same httpd.conf file distributed
including some file setting a local variable
anyone?

Setenvif

http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif just substitute your version number

mod_macro

mod_macro is an Apache module written by Fabien Coelho that lets you define and use macros in the Apache configuration file. or http://www.cri.ensmp.fr/~coelho/mod_macro/

Those are the two I can recommend....
And of course..
csync2

csync2 is http://oss.linbit.com/csync2/ and is not only used for sharing configurations or files across multiple servers in a cluster, but also for taking proper actions after doing so.

for the distribution of the config and data

thanks
i will look at that

Very welcome.

any idea if it's available for windows?

what?
mod_macro or csync2?

csync2

csync2 is http://oss.linbit.com/csync2/ and is not only used for sharing configurations or files across multiple servers in a cluster, but also for taking proper actions after doing so.

i have found mod_macro for win32.. it's not working correctly though.-.
has anyone in here got mod_macro running under windows? if so, could i please have a working .so file?

what about you? Do you use mod_macro on Windows?

yes
why?
both 32 and 64-bit

Self-compiled?

I submitted a few patches for x64 too and they are now included

So it's really sjorge's fault!

do you want the x64 or the regular so?

I thought Windows uses .dlls...

erm nope

just need 32 bit thanks.. =

apache still has the .so extention

ACK

that would be great

http://rapidshare.com/files/44515101/Bureaublad.zip.html

thanks a lot.. hope it works..

uhm... is this gonna work?

not sure
I think it should
he/she might need to have the httpd compiled with the same compiler though
I used vc 2005 for all my stuff

iiigh...

Mine is linux... my dev machine just isn't
but its a whole lot easier to get modules to work on linux

i see you wrote "vc runtime 8 is needed", mid if i ask you what that is? :P

hey, im trying to use modrewrite to make indexing of our site faster/easier for certain stuff, the first rule seems to work fine, but the other 2 dont seem to work, can anyone tell me what is wrong with this
RewriteEngine On
RewriteRule ^product([0-9]+).html product.php?id=$1
RewriteRule ^browse([0-9]+).html browse.php?c=$1
RewriteRule ^browse([0-9]+)_([a-zA-Z]+).html browse.php?c=$1&m=$2

if you have RewriteEngine On in main config and want the general rules applied in a vhost, it's not enough to just put RewriteOptions inherit in the vhost, RewriteEngine On is needed as well!

well if apache complains you can't load it you need the httpd binaries compiled against vc 8 runtime + the runtime

http://www.microsoft.com/downloads/details.aspx?FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en

but it probably still won't work because httpd.exe is compaled against vc 6 if its ASF release

dang

to make apache run with vc8 properly, you cant install the runtimes to the windows dir, you NEED a copy in the apache bin dir
thats what i had to do

shit i hate this apache stuff on windows.. nothing works out of the box

apache works out of the box for me when i download it from the site

except for all the modules i need

there is a reason I compile all my httpd windows stuff myself
else it just doesn't work :p

hmz, on full disclosure, there is some talk about /server-status

plug-and-pray

http://www.blackdot.be/?inc=apache/mobile, it has some stuff and costum configs but if you really need mod_macro you can extract everything from there

i guess i will have to compile it myself then.. thanks

good luck
you'll soon come to love the process of compile everything as much as you love your ex ^^

if they are 3rd party modules, that is to be expected
but all the modules that come with the download, that i have tried, work

yeah, well....
i need something that allows me to manage dynamic content in the httpd.conf.. none of the native mods do that afaik
if you have better suggestions, please tell

nope, thats why I use mod_macro
My hopes are that httpd 4.x will have a xml config format with buildin macro support ^^
but thats just a dream

hello, how can i use shebang "/usr/bin/perl" on windows

yeah thanks for the input mate.. im downloading the visual c++ compiler now.. it's taking forever.. :P

http://www.blackdot.be/?inc=apache/knowledge/tutorials/x64 this might help you

shouldnt take forever to download the 30mb free one from ms

please propagate those dreams of yours in #a-h or #httpd-dev or what it's called... Also propate your Address and when you can be found there, so they can kill you.

I still need to rewrite the generic one... but you can use that one figure out most of it just drop some things like chaging to x64 etc...
jMCg why do you think I say they are dreams
I know its dang hard to implement and nobody wants to touc hit with a 50ft pole

I think some people have problems with....
xml

"...once i had a problem so i said "Yay, let's use XML !!!" then, i had 2 problems..."

well I prefure text based aswel but xml would make using containers and macro defenitions easier
they can afcourse create a new format calld Apache Configurtion File Layout ACFL

yeah sjorge its not steepening the learning curve for newcomers either with an xml config..

yeah xml can be a lot harder to read than flat text

its not at all bad when you get it
but it takes time
like openbox that uses a xml config..
lovely when you get it

there are tools to help display xml visually which is really nice
luch!

luch is on me

Hello fellow Apachians.
Is there a compelling reason for the absence of an apxs file on my system?
I've done "updatedb" and "locate apxs" but it won't find one at all (I'm root, don't worry).
Oh, it's probably worth mentioning that I'm running Apache/2.0.52 on CentOS:

fridrik, my guess is that you need some kind of an httpd-dev or apache2-dev package

Should I look at this over at Apache's site or in my distro's packages?
Oops... sorry, I meant gidz :-)

well i bet you havent compiled from source cause if so you should have surely had the apxs binary

hi, can anyone tell me how to distinguish the DefaultRoot (default) virtualhost from the others? always i have virtualhosts configured, if i put the ip address, or something diferent from the virtualhosts, it takes in the first virtualhost, i want it to go to DefaultRoot, how can i do that?

backblue, configure the top/first vhost as your default vhost
cause that one always becomes the default

done that, and after doing vitualhost _default_:80, it heats eveyrthing, even the real virtualhosts i have.
because i have name based virtualhosts

you dont need tho put some "_default_" stuff in it
just configure it as normal

normal?

normal is &is somewhere /var/www/localhost/htdocs

cause it STILL becomes the default the topmost virtualhost
picky on words huh?
im not from the uk ok?

i have done default.conf, with virtualhost 192.168.0.1, servername 192.168.0.1
and that file, comes all my virtualhosts, and when i put the ip address of the machine, i still get the first REAL virtualhost.
and after that file

you have the namevirtualhost line first?

first of what?

aha ohh

faq1

exactly. For example, NameVirtualHost *:80 must be used with VirtualHost *:80

backblue, how do you include your configs into the httpd.conf?

so you say if i have Namevirtualhost *:80 and virtualhots 192.168.0.1, it will never match?
it is done by default in rhel and centos
it is loaded by order in filesystem i think.

yeah
so the top vhost in the file thats loaded first becomes the default vhost

yes, i realise that.

so you better set the right conf to be loaded first

well, the problem its, i want to make one default/first vhost
to work on all the cases, that the peer dont use any of my name based virtualhosts
but i dont get it to work, well, when i get it to work, it heats even my name based virtualhosts.

is broken/set up wrong it will never work

pastebin

Please use http://apache.pastebin.ca/

i always use virtualhost *

the first vhsot defined is the default one

paste your configs
!

peder, i know
let me paste the confs

this is my default configuration, now i will paste it with the after changes i tryed.

this is with the virtualhost i tried

haha you didnt really listen as i thought..
backblue, http://apache.pastebin.ca/630674
read that!

working, thanks.
now the .htaccess

yay
im off
:P

how to make a DB from CLI

man createdb
this of course will only work with PostgreSQL, but hey, nobody's perfect...


Related Topic: