Domain Search | www.


Related Pages:

Im trying to get dav working The module is loading and i can attempt to log in but it always says I have the







hi all I setup my ssl certificates certificate in httpd.conf on my virtualserver but when I access to https://virtual ... it return the error
what I have to verify?

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

also, DON'T tell us what error you get

there is no error in log file
when apache start askme for passphrase I give that and it starts
but when I call https:... it return the classic internet explorer error when didn't find a website

use a real browser for testing
not one with meaningless, "friendly" error messages

what browser u suggest me?
take a look to my configuration http://www.pastebin.ca/569698

what command echos apache version?
I built it from source

"Allow from..." OR if someone authenticates successfully: "require ldap-group....". Can somebody point me to a tutorial or man where that is explained ?
I already have both mechanisms working separately, but yet succeeded in combining them. I can't seem to find the information on httpd.apache.org
Of course I do NOT yet succeed ...... Bah, typos ;-)
FauxFaux, yes indeed. That is for getting the ldap authentication/authorization to work. I have that working perfectly already. But I would like that when a request for a page comes in from the LAN, it is NOT required to authenticate with ldap. So an additional condition to get in. I already have the "allow from..." and "require ldap-group..." in one "Directory..." statement, but the "require-ldap group" just takes over. So hosts from the LAN do now als
o need to give their username/password.

Hi. How do I make Apache reparse its apache.conf files? Would I need to restart it?

logixoul, If you are on linux/unix, usually /etc/init.d/apache(2) reload works.

a) note the n, b:

yup, ubuntu. thanks

satisfy

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

FauxFaux, reading that doc now....
FauxFaux, Brilliant, that was exactly what I was looking. Thanks.

rewriteflags

rewriteflags is http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteflags

Hey, I'm trying to set up some url rewriting. Specifically, I want to direct everything that isn't an image to a particular script, but it's not working. My Rewrite rule is this: RewriteRule !\.(gif|jpg|png|css)$ /www/template.html --- It keeps telling me that the url I go to does not exist, but it should be rewriting it?

rewritelog?

rewritelog is http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritelog http://httpd.apache.org/docs/mod/mod_rewrite.html#rewritelog. Use this logging to help design and track rewrite; see also rewriteloglevel; and cannot be used from .htaccess

I'm using .htaccess. I don't have access to the server hosting configuration.

exec of '/var/www/emAlbum/emAlbum_admin.cgi' fai$

dragonlar, does the server apache is running under have execute permissions for the file?

yes it does

ls -l /var/www/emAlbum/emAlbum_admin.cgi

-rw-r-xr-x 1 apache apache
gidz,thse is the ls -l -rw-r-xr-x 1 apache apache for the cgi script

655 are odd permissions...
try setting it 755

-rwxr-xr-x 1 root root

I need some help setting virtual hosts in Apache 2.2 (Debian Etch) can anyone help ?

i stell get the saem thin
i have tryed changing the owner to apache2
i have tryed changing the owner to apache
think i might try reinstalling apache

if apache is the user apache is running as then it needs to read "-rwxr-xr-x 1 apache apache"
if you do not know th euser it is running as run "ps aux | grep httpd"
the left most column is th euser name
this isn't windows.. a reinstall will more likely than not only result in the same error

you about?

about ready to collapse?

nope
need an invite to a-h though... since i'm on a different network...

call me bitch

do you have an apache question ?

no, becasue my apache server is messy under plesk control so i've given up

hey
is AccessFileName valid in Apache 2.2?

yes purplepenguins

thought so
hmm
it's not listening to my .htaccess file

AllowOverride

AllowOverride tells Apache what things you wish to permit in .htaccess files. See http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

Yeah, I set AllowOverride to ALL

make sure the Directory block you used is correct, and isn't being overriden elsewhere, such as in a 'hidden' vhost
which distro are you running? and did you use a package?

arch, and I'm using a package, and there are no vhosts set up
wait, I think it is a perms problem, not .htaccess

it's worth pointing out that anything you can do in a htaccess file can be done better and faster in the main config

I am trying that now, using Directory
I want to deny access to everything except localhost, to one directory

simple enough. see if your config has a section on /server-status. if so it'll likely have the directives you need.

what is that
is that a module

kind of.. but really i just meant that if your config has that section, the directives in it will show you how to do the localhost only restriction

also, I assume that if you have a Directory directive for /, and then one for a subdirectory, that everything not overwritten in the subdirectory that is in the / config still applies?

§ Order allow,deny § Allow from 127.0.0.1 § Deny from all § /Location

yes, that's correct

Hello world!

\0

i was wondering anyone could help me...
how do I disable directory browing in www.domain.com/~user/directory ???

I have that in my config
weirdly, it allows me to access index.css, but not index.html, in that subdirectory

I was able to disable it on the main i.e www.domain.com/directory

Options -Indexes /DirectoryMatch

or maybe .*

let me try it now

post config

Please put your configuration file on your Web site so that we can have a look at it. or ask me about 'nopaste' if you don't have access to a place to upload.

^

I figured out what I was doing wrong
I was forgetting to save changes to my config file before restarting apache

I can't seem to disable the directory browing, so I here is the config file. http://pastebin.com/930313

is there a /etc/apache2/mods-enabled/userdir.conf ?

i think so. wait let me check
yes there is, you want the content?

sure

just a sec
http://pastebin.com/930319

there we go. spotted it yet?

yep
you are a genius

hehe

My webserver is automatically rewriting "page/?id=1" to "page.php?id=1" (as the folder page doesn't exist). However, I'm using rewrites, so does anyone know the directive to turn this off?

Options -MultiViews

Fabulous - thank you.
I remember turning it off when I first installed my server, but that was 2 years ago.

hey all

all is relative

Its working like magic

i am getting 500 internal server error . there is no error logged in the log file

good job

how do i fix it ?

You deserve a nice cold beer!

good plan

i have tried with the default configuration file and its still the same !

you're looking at the wrong log file. 500 errors are always, always logged.

jpeg .... /var/log/apache2/error.log
thats wha is set in apache2.conf as well

be lolcat

im in ur bra rubbin' ur boobies

loglevel is warn
ErrorLog /var/log/apache2/error.log

also how can i ask apache what MIME type given extensions are?
how can i make sure that a .htc-file must be served with the MIME type of text/x-component ...

apache 2.2 collapses multiple slashes to one in path info
is that intentional?

are you sure it's apache doing that and not perhaps php?

who says I'm using PHP?

PATH_INFO's meant to be user supplied and opaque as i understand it..

yes, I am sure
http://localhost/test.php/path//info
then path//info arrives as path/info
same thing happens with rewrites
does not happen with apache 2.0
see http://trac.agavi.org/ticket/502

there was activity on a PR about the nature of PATH_INFO recently.. lemme try and fish it out

for "proof" that it is apache
a little down, you can see a rewrite log

http://issues.apache.org/bugzilla/show_bug.cgi?id=20036

i have apache 2.2 but i can't find the mime.types file ... know where to look?

well, that's about dots, and 2.0.45

depends on how it was installed. try /etc/mime.types or /etc/httpd/mime.types or /usr/local/apache2/conf/mime.types or /usr/local/apache/conf/mime.types
bah.. i don't know, sorry. i'd need to read the sauce to figure this one out
ubah.. i don't know, sorry. i'd need to read the sauce to figure this one out/u

can someone tell me the diffs of apache versions? should I use the 2.2.4 ?

i added: 'text/x-component htc' to my /etc/mime.types file. how can i see whether apache is recongizing or serving that mime type correctly?

it's not generally a good idea to edit mime.types (will get overriden by updates). use AddType instead, and read this:
watching http headers

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

overwritten rather

so what should I do
can I help with... anything?
write to the ML first?
or file a bug report?

write a patch?
:P

I don't even know if it's a bug. maybe it's an intentional, but undocumented change

wrowe thinks it's a bug

dunno, sorry. i expect mod_rewrite has its own way of handling PATH_INFO that's collapsing your slashes. so, fix that, or don't rely on having them available (or create a bug report for it and hope someone on the core teamcares enough to fix it)

oh you're talking about something different...

do you know the syntax to add the text/x-component ?

not sure if it's mod rewrite. it happens in rewrites, but it also happens to the path info

bahumbu

to the htc extension

so maybe, you know, it's something completely different, in the, er, input management, if there is such a thing

apache2ctl AddFile give me back a usage message

wow

is there no way that u guys can help me without that error log?

AddType text/x-component ext (where ext is the file 'extension'). if there's no extension, use ForceType in a container that identifies your paths

sorry i mean AddType

at least the fact that it happens in both rewriting and to the path info leads to the suspicion that the collapsing is done before either is handled

-bash: AddType: command not found

wow

/dev/ttyS0 a light blinks for a second. Is that good?

addtype's an apache directive not somethign you run in bash

oh noes! i dont have addtype installed ;(

lol

ok, AddType is a directive you add to the config file, not a command you're issue to a shell

well i tried apache2ctl addtype first ;p

uh... ok then...

*you'd. bleh, /me goes back to sleep

hmmm so i addded the addType bit to my apache config file, restarted web server
but when i use livehttp headers
i dont see anything about the htc file or the component type... does this mean i did it wrong?

Anyone willing to answer a question about Apache failing to start on Win32, fresh install?
The error log is never created.. I ran "Test Configuration"...
is anyone alive in here? i've never seen a chat room with 271 users and NO conversation but then I haven't visited many tech chats.
maybe something's wrong with Opera's IRC client.

there are only a few people that usually answer apache+M$ questions, guess they are not around currently

ah, i see..
so I guess you wouldn't be able to help me then?

not without an error_log

Can anyone out there answer an Apache2 on Win32 question?
I have an error message
just doesn't come from the errors.log

hi, anyone experienced with rewriterules here?

some linolium, whats the question?

RewriteRule ^grade(\d{2})/?([a-z]+)?/?\??(search=.*) /index.php?grade=$1&subject=$2&$3 it worked before I added the \??(search=.*) but now it is non-functional, any ideas why?

try to start apache from the dos shell

it would match something like /grade10/physics/?search=weightless+string

My first recommendation linolium, is find and download the free RegEx Editor -- it could be a regex problem..

http://wiki.apache.org/httpd/Recipes/QueryString

ohh
actually
your problem i think is you're trying to match a query string
you can't do that in a rewriterule, its separate

ah?

you match queries in rewritecond

query string is everything after the ?

with %[QUERY_STRING}

precisely

RewriteLog / RewriteLogLevel

and if you need to group something in the query string, you access it later with %1

i struggled with that one once too.

hey did you know if you do /disco irssi will start spitting out random disco must die statements?
oh wait... you already know about /disco...

what if I want the rewriterule to execute regardless of the existence of search in the rewritecond

my IRSSI actually goes 70s, with flashy colors

heh

i wonder what non-irssi clients do on "/disco"

what client do you think barefoot is running?
wb barefoot

hehe

just take that into consideration in your regex for the query string, or if that won't work for your situation, do another rewriterule without the query string condition

never saw that before

don't feel bad... noodl fell for it too...

hehe

barefoot++ making me look slightly less silly

lol

Hey megaspaz -- I get the same error when I try to start httpd.exe from CMD

what's the error exactly?
if you posted the error, i completely missed it...

we didnt see your error - yet

ok, it worked, thanks CreoBri et al

nope, no ones asked yet, didn't think anyone was interested.
it says it can't find my php module -- but

wow

hi all! does anybody know some compact thermostat thing to heat the box with UPS?

what version of apache are you running and what version of php?

ah, the most common win32 problem.

I know for a fact its in the right place. It says, "Syntax error on line 117 of C:/web/apache/conf/httpd.conf: Cannot load C:/web/php/php5apache2.dll into server: The specified module could not be found." I'm running Apache 2.2.4 (or whatever is the latest i think), and PHP 5.2.something.

good that you kept the error message secret for a while, it would have been too quickly solved

no not really
there was a win32 php bug with the latest php and apache2.2
it's pretty recent...
oh

heh.. Gryzor -- don't want to burden folks with my problems 'til they care to listen

but actually,

actually, is that even possible

your module is wrong
i think it's php5apache22...blah.dll

really?

yeah

interesting.. i'll check that.. brb

there's a php module in there that has the "version" of apache you're using...
in it's filename

well i'll be. [Insert standard adoring appreciation junk here.]
that got it up -- still got a php_mysql.dll error in the error log, but I've solved that same problem maybe 20 times in my life, i'm sure i can do it again lol

heh

i always remember problems but rarely solutions heheh
oh, and for the curious -- php5apache2_2.dll

yeah, that's it

2.2

yadda yadda bodoggy

yep.

[QSA]

[QSA] is query string append (see 'QSA') http://rewrite.drbacchus.com/rewritewiki/Flags_2fQSA

well i appreciate the help folks, i'll be off.

Hmm... ? can be used instead of (.+)?

no
a? means either nothing or an a
.? means either nothing or a single character
.+ means any number (0) of characters
regex

regex is the regex(3) manpage3src/regex/regex.3 in the Apache source distribution-"Mastering Regular Expressions" from O'Reillyee perldoc perlreee problem

QSA

QSA is query string append or a flag for RewriteRule or see the RewriteRule Documentation http://rewrite.drbacchus.com/rewritewiki/Flags_2fQSA

Me not understand how QSA is supposed to work.
I am trying to make http://www.example.com/search?any_number=of&parameters=go&here=OK rewrite to http://www.example.com/?page=search&any_number=of&parameters=go&here=OK
Any ideas, dear friends?
Ello?

test
QSA means that parameters that come in from Rewrites will be appended to Parameters tha are already there.
But in your case a simple DirectoryIndex search should do.

to be exact, the original parameters are appended but basicly the same result

I'm 100% confused.
DirectoryIndex?!

directoryindex is http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex or http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

What has that got to do with this?

Ooops. No.

I am trying to compose a RewriteRule.
RewriteRule /search /index.php?page=search [QSA]
That's what I have... not working.

Ooops. Yes.

So /search?foo=bar would become /index.php?page=search&foo=bar.
And so forth in all eternity.
Do you know where my error is?
El Diabolo? lampy?

look at http://rewrite.drbacchus.com/rewritewiki/Arguments_2fPathInfo

What is the URL the user enters?

I just told you!
http://www.example.com/search?any_number=of&parameters=go&here=OK to http://www.example.com/?page=search&any_number=of&parameters=go&here=OK

look at the link I pasted
lampy - are you playing to be Daveman

So the user enters /search?

the link explains how to change query path as query string

...

e.g. /foo/bar to /index.php?foo=bar

Wasn't what I meant...

where are your rewrite rules placed, exactly?

I don't know why this isn't 100% clear.
config.

So RewriteRule ^/search / should do.

No.

then you mislead us, towerniece_

NO!
Look at my explanation...

I am trying to make http://www.example.com/search?any_number=of&parameters=go&here=OK rewrite to

/index.php?page=search&WHATEVER

http://www.example.com/?page=search&any_number=of&parameters=go&here=OK

So RewriteRule ^/search /index.php should do.

you cannot alter the query string with mod_rewrite

?!

you can make it carry over, however, as we explained already.

I have done this before.
I know it works.
But I forgot how.

Getting old is such a drag ...

Is this some sort of twilight zone?

this is not a room

I know you understand what I mean.

this is a channel.

What?

well, to be exact. with RewriteCond one could easily alter query string. right?

this, 'here' is not a room. It's an IRC channel.
possibly.

What?
When did I mention "room"?

I lack experience in that regard

What the hell are you talking about?

I must have imagined it
pardon me

with RewriteCond and RewriteRule, that is.. but maybe this just confused conversation

so you're thinking two rewrites in a row?

I want /search?arg1=val1&arg2=val2&arg3=val3 to be rewritten to /index.php?page=search&QUERY_STRING_APPEND_HERE. How can I make this any clearer? :|
And I know [QSA] is used for this.

but now. stop. take a look at http://rewrite.drbacchus.com/rewritewiki/Arguments_2fPathInfo - that should help with your problem. or then I misunderstood

But I can't seem to get it working this time.

RewriteRule ^/search$ /index.php?page=search [QSA] ?

That link speaks about [PT]...

the final query string needs to be altered from the original value, in his case

forget the PT

possibly
I would assume the remainer of the query string would be properly added
but then, an extra & might be requried to be sure.

I think I used it like this, but there's a simple way to find out
Try

that option is worth cheking out.

tias

tias is Try it and See - if you want to know if something will work, give it a go. If not, then you can ask why it didn't work as expected

only thing that needs to be done is moving search from query path to query string.

It didn't work.

Not work - how?

It was ignored.

Not at all? Query string wrong?
Where is the rewriterule placed?
htaccess? server config?

In a vhost's directory block in config.

the arguments need to be specified differently for those cases

Many other rules work flawlessly.

But I never remember which way around
you could always try
rewritelog

rewritelog is http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritelog http://httpd.apache.org/docs/mod/mod_rewrite.html#rewritelog. Use this logging to help design and track rewrite; see also rewriteloglevel; and cannot be used from .htaccess

are you using your rule in vhost config or .htaccess (maybe that was already asked...) ?

yeah, five lines ago
vhost config

vhost config is dthe same for 1.3 an 2.0, but the 2.0 docs are better written and more readable. That's what I meant.

How can this even be an issue?!
It worked perfectly fine a few months ago.

well, then moeffju's example should be pretty fine. though ^/search$ does not match to /search/

No, but the query was '/search?args...'

yeah. I was just playing down possible reasons for failure

The rule should not be ignored. It may not work right, but it should not be ignored.
Try adding [R] to it
so you will see the rewritten url in the browser
if you don't, try rewritelog
mod_rewrite docs specifically say:
You can even create URLs in the substitution string containing a query string part. Just use a question mark inside the substitution string to indicate that the following stuff should be re-injected into the QUERY_STRING.
So, the rule I gave you should just work, and if it doesn't, you should check the Rewrite log to find out why.

great suggestions.

I've tried a bunch of things. Nothing works and behaves very oddly. I don't know what the hell is going on.

Nothing works is not helpful.
Rewritelog is
Go log your rewriting

Thanks for trying to help. Will go cry on bed now, and then return to debug.

...
I guess actually logging is too easy?

it must be

To set up a virtual host named kb, do I have to have the IP address in my DNS server for kb set to be the same IP address as the real server it is running on?

each hostname needs to resolve.
additionally, read this:

to the same IP?

vhost examples

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

thanks

of course, to the same IP. What did you think?

not for setting up to vhost but if you want client's to resolve to right ip, you need dns

i'm guessing because these stupid instructions i just followed on instiki.org...

ok, forget about them.
follow the page fajita gave you. It's part of the official docs, and can be relied upon.

the wiki is official too?

semi-official.
it's accurate, if you must know.

good enough

good enough is !not perfect but it is good enough

OK. RewriteRule ^([A-Za-z_-]+)\?(.+)$ index.php?page=$1&$2 -- What is wrong here?
I decided to not use QSA and do it this way. It should logically work.

rewriterule does NOT see the query string. It cannot be captured that way.

Not sure if this is an Ubuntu Feisty specific question or not, but I've got 000-default and default in sites-enabled. These are both links to sites-available/default. Is it normal to have that file linked to in sites-enabled twice??

What? How can it not?

debian/ubuntu make a MESS out of the config.
default layout

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

that link should shed some light
it cannot capture sections, as you tried with ?(.+)$
if you must, use [QSA] to append the original query string to the new URL
in short, rewriterule sees everything up to ?

Hrm. I see.

What's wierd is that "NameVirtualHost *" is in sites-available/default - If I don't comment that line I get "NameVirtualHost *:0 has no VirtualHosts"

faq1

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

That is the number one FAQ?

go through the million config files that ubuntu has, and figure out what vhost / namevirtualhost does not match
what is the nature of your concern, exactly?

step three

step three is to blame anyone who tries to help

you cannot include default twice

good point
I blame debian

specifically, you can't have two NameVirtualHost directives with the same argument.

debian--

ubuntu--

anyhow.

anyhow. is Gwe out of apache questions for the first time in what feels like a week

or, in a more debian-like-fashion: deb-deprecate --distro=debian-* --insult="too complicated for its skin"

forget anyhow.

thumbs, I didn't have anything matching anyhow

forget anyhow.

thumbs, I didn't have anything matching anyhow

forget anyhow

thumbs, I didn't have anything matching anyhow

odd.
so I converted the new employee here to TB and FF

did he/she find that painful?

no, he enjoys it.
I installed a calendar extension, as well.

why does debian use nvh * instead of *:80 do you suppose?
it's just rife with potential problems

he was using outlook express before, I have to say.
because debian maintainers have no idea how to configure apache

excuse?

Runt packets

properly, too.

The nature of my concern is that I am trying to make semi-pretty URLs by rewriting (internally) any request for http://www.example.com/test?foo=bar to, internally, index.php?page=test&foo=bar. It must take into account any number of query-string variables, thus my attempt to use [QSA].
The most frustrating thing about this problem is that I have done it before without any problems.
And now I just cannot seem to get it right.

then you must use rewritecond directives to intercept them.

I don't remember using a RewriteCond... just a simple RewriteRule... :/

a rewritecond directive WILL see the query string.
then your memory is failing you.

Hrm. Possibly.
But what good does a RewriteCond do anyway?
Even if it sees the query string... so what?

it lets you match things other than the url

it gives you control over the initial value.

the url does not contain the query string

so if the page=foo is not present, add it.
something like that.

Hrm.
I'm totally lost now. :|

rewritecond

rewritecond is http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond

mod_rewrite is complex. You are not alone.
I am, however, giving you the basic logic guidelines you will need to resolve your issue

Knowing basically what RewriteCond is, I cannot picture in my head why it would help me in this situation.

ok
using rewritecond, figure out if the full address had ?page= in it.
if it did, do nothing

Internally, you mean?
Because the request never has that.

QUERY_STRING

QUERY_STRING is a reserved var

if not, rewrite the rule, use [QSA}, and add ?page=foo to the target of your rule.
you can also use that variable.

I don't understand why it is necessary to check this.
What is the purpose of checking this?

to properly rewrite it.

Believe me, I don't like spoonfeeding, but I really would like a proper example of what you mean.

I don't spoonfeeding
*do
I gave you the proper train of thought. Follow it.

you want access to the query string. using a rewritecond is the only way to capture it. put two and two together.

I don't really "want access" to it. I just want to do a simple RewriteRule and QSA.
I don't know where you get these ideas that I never asked for. :/

oh shite. ok. suit yourself.

be happy that I spent that much time explaining to you. I usually give up much earlier on people that refuse to listen, like you.

Refuse to listen?
I'm trying my best to understand.

then re-read the buffer. Again.
I won't retype it all.

What you are saying makes no sense to me. It seems to be completely unrelated to my clearly expressed problem.
I don't see any relation whatsoever.

suit yourself.

you want to use a query string in a rewrite rule, correct?
then you have to capture it with a rewrite condition.

"Use it"? I just want to append the "fake" query string to a rewriterule.

we told you how to do as well. Actually, moeffju did.
perhaps you were not listening to him, either.

Yeah... I ask for help and then don't read the replies.

you have had example and url with examples. just do it!

Of course. That's gotta be it.

we gave you the anwer. In simple english words.
what else do you need?

RewriteRule ^(.*)$ /index.php?page=$1 [QSA]
If that does not work, USE REWRITELOG
and be specific

sounds like loop

Oh, yeah, add RewriteCond before that
Before I used ^/search$ specificially

will not have the value he wants, I think

And what is this RewriteCond supposed to check for?

He wants to rewrite /search to /index.php?page=search, and the same for the 'test' example above

did you read the documentation on rewritecond at least once?

towerniece_, to prevent a loop!

right. I apologise.

^^
I'm not holding my breath

You didn't mention at all what the RewriteCond was supposed to say... but it seems to be redudant.
RewriteLog

RewriteLog is http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritelog http://httpd.apache.org/docs/mod/mod_rewrite.html#rewritelog. Use this logging to help design and track rewrite; see also rewriteloglevel; and cannot be used from .htaccess

if you know better, by all means, do it your way.

towerniece_, it's not hard to figure out. You're rewriting .* to foobar, and you want to prevent a loop

we won't stop you from doing it

Can you guess what the RewriteCond would check for?

my guess is no

i already had it that way, thumbs.

RewriteLogLevel 3 is incredibly verbose...
I don't wanna know what 9 looks like...
!"#?%&
OK. Just tell me. I know you have the answer.

no.
find it.
what version would that be? We're still at 11.0

how do I tell if I have apache or apache2 installed on my server?

httpd -V

httpd -v returns Apache's version number. httpd -V returns compile settings.

that will help.

thanks
Apache/1.3.33 (Debian GNU/Linux)

ok.

thumbs can you help me to understand how to install the fastcgi module?

I pity you.

I will praise you always

under debian it's always more complicated.

have you done it on debian?

fastcgi

fastcgi is http://www.fastcgi.com/ or see mod_fcgid, which is more up-to-date

no, I don't use debian.
a2enmod

a2enmod is an apache script that enables modules very easily for you (it actually just makes a symlink in /etc/apache2/mods-enabled to a corresponding /etc/apache2/mods-available file),an attempt by debian to atone for their sins

try those.

thumbs I see this package when I apt-cache search fastcgi
libapache-mod-fastcgi - FastCGI module for Apache
should I install that?

try it?

install it?

if you're not sure, ask in #debian

ok

we are not familiar with debian packages here

ok
thumbs how do I know if fastcgi is intalled?

a2enmod the module
if it says module doesn't exist, it's not installed...

-su: a2enmod: command not found

oh boy.

try /sbin/a2enmod or /usr/sbin/a2enmod

is a2enmod for apache 2.x only?

yeah
apache2+

I don't have 2.x

they could have done some crazy thing like using aenmod for apache 1.3.x

i don't think so

-su: aenmod: command not found

they are known to rename binary files for no apparent reason

any reason why you're not using apache2?
don't worry about that a2enmod command... if you're using apache1 you won't have it

well it came with my default install is all

1.3

1.3 is the 1998 release of apache. Do you use Windows 98? Slackware 4? Redhat 5?

you know, apache does work on windows xp

but XP barely works
how is that a viable solution?

AddHandler fastcgi-script fcgi
DocumentRoot /path/to/your/jifty/app/web/templates
FastCgiServer /path/to/your/jifty/app/bin/jifty -initial-env JIFTY_COMMAND=fastcgi
ScriptAlias / /path/to/your/jifty/app/bin/jifty/
what file does this go in?
httpd.conf?

httpd.conf is the main Apache configuration file. By default it's located at /usr/local/apache2/conf/httpd.conf /etc/apache2/httpd.conf /home/httpd/conf/httpd.con C:/Program Files/Apache Group/Apache/conf/httpd.conf check 'httpd -V'

where is your httpd.conf located?
i'm talking file system-wise

/etc/apache

ok
just making sure you're really using apache1
iirc, apache1 doesn't have addhandler
addhandler

addhandler is http://httpd.apache.org/docs-2.0/mod/mod_mime.html#addhandler or http://httpd.apache.org/docs/mod/mod_mime.html#addhandler or part of mod_mime

so I need to upgrade to apache2?

whups nevermind me... :P

ok, so do I put those commands/cnfiguration in my httpd.conf right?

well, i would always recommend using the latest version of apache...
but that's up to you

megaspace but do I put those lines in my httpd.conf if I want to try it with my current apache yes?

yeah

ok I will try that right now

apache 1 has had addhandler since 1996

yeah
i saw the link in the factoid

only 1.0 was missing it

after apache1.1

I want to create a new virtual host : 1 ) I create a new directory in /var/www/ (called web2)/ 2) I create in /etc/apache2/sites-available/ a new file called web.com and enabled it by a2ensite - two questions: even I disabled the default ( a2dissite) when I browse as localhost it does attempt to go to open from olde apache2-default - what should I do?
I am using Debian Etch

when you created your new vhost did you just copy the default vhost and edit that?

yes

there's a redirectmatch line you need to comment then

in Debian's Apache /etc/apache2/sites-available/default there is no RedirectMatch
that was for you
I got similar indication on debian's chat room

s/room/channel/

debian has always used a redirectmatch line in it's default vhost config file

actually I found it

Hello again
Should I go to #php for help with enabling/installing php on my server?

um...
what's your problem?

your problem is communication

let me guess, another debian/ubuntu user?

fajita++

yup, why do you say that?

because 99.999999% of the php issues come from debian/ubuntu users

install libapache2-mod-php5, run a2enmod php5

debian php

debian php is here http://wiki.apache.org/httpd/ScratchPad/DebianPHP

thumbs loves debian so much he gets jealous ...

haha
niq++

I have Ubuntu and I already have Apache2 installed on it; am I going to have to re-install apache to put PHP on it?

I am not expert - usually in Debian once you choose and install your apache you can install php from synaptic package manager - to test it I just make a index.htm and rename it a a index.php at /var/www/ and test it out

wow

[ ajgenius] I am looking to find out, and google is being dense.

debian--

yeah you're definately not an expert

the libapache2-mod-php5 works for Ubuntu too right?

with apache, ubuntu == debian

ok

same packages, same layout

thanks

Hello fellow internet addicts! - - Are we all looking forward to another Long & Glorious weekend of irc? - - are you all looking forward to getting your "Monitor Tan" again, getting paler by the second, more stomach hanging by the second, via sitting in the chair all day eating pizza etc
uHello fellow internet addicts! - - Are we all looking forward to another Long & Glorious weekend of irc? - - are you all looking forward to getting your "Monitor Tan" again, getting paler by the second, more stomach hanging by the second, via sitting in the chair all day eating pizza etc /u

yup

megaspaz is guilty. Just look at him!
A bad workman blames his tools.

mmhmm

ccvp`: I don't have any pizza.
I only have...Fig Newtons.

well at least you'll be regular then
or runny if you eat too many of them...

hah

I ate too many of them yesterday!
Augh!

when you said to install libapache2-mod-php5, you told me to run something also; what was it again?

a2enmod php5

a2enmod php5 is supposed to take care of that addhandler/addtype thing

do I do that from the command prompt?

yes
as root

run: command not found"
oh sorry

I should think so too

I'm retarded

try /sbin/a2enmod or /usr/sbin/a2enmod
or when you sudo do sudo su -
include the '-'
that will load root's environment

well it's apparently already enabled, but should there be something about php in ../apache2/modules directory?

yeah. you should see a php.conf and php.load file
if you've added lines to apache2.conf, take them out and try a2enmod again

added lines since when? since I installed apache?

dunno

Neither do I

i said 'if' you did

well do you mean lines that have to do with php, or just basic configuration lines (like changing the listening port)

some people follow general instructions from the web before figuring out how their distro configures apache

to redirect all the petitions of a domain to an ip... do i just add "Redirect / http://ip/" ?

i mean lines related to php

just push out the diode 38, where the sphincter charge of obfuscation 37 rm -rf's the nerplexia'd line of code, then the icout++ strdins into dong

ok, I haven't done anything in it about php

if that's the ip of the vhost you're going to redirect from, you don't want to do that
you'll get an infinite redirect loop

but in modules there's just httpd.exp

then your install is borked

hmm

what did you install package-wise
libapache2-mod-php5 is just the apache module... you'll still need to install php and other php packages
although i thought apt was supposed to install dependencies...
who knows what package managers do or install... *shrugs*

I want change my website to another server (both with 2 different ips).. but the dns changes makes effort in two days or so.. then I want to redirect all from the old domain to new server...

ok... as long as server 1 is different than server 2 you should be fine

I added "deb http://packages.dotdeb.org stable all" to my sources.list file and ran "apt-get install libapache2-mod-php5"

i don't use debian, so um... good for you???
all i know from what you said was in mods-enabled means something not right
that's /etc/apache2/mods-enabled
debian php

debian php is here http://wiki.apache.org/httpd/ScratchPad/DebianPHP

^^ look at that also

tags...

no it won't
well actually i take that back... it should shouldn't it?
if you're using relative or absolute links...

well when I type "php -v" it says "PHP 5.2.3-0.dotdeb.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Jun 1 2007 15:59:23)

hrm... i would suspect even if using a fully qualified link/url, it should redirect as well as long as a request takes place...

then, do i must use relative links?

you're gonna have to experiment. i actually don't know the answer off hand
but with that redirect, it'll redirect everything from server1
so if the user did http://blah.com/whatever.html, that'll redirect to http://ip
so it really depends on what you want

tags

there's no need to redirect that... apache just creates a new request to the new server
and takes the user there... any issues you see will be from server2

oh, ok

like if you were to do redirect / http://www.google.com, when the user does http://yoursite/blah.html, apache will redirect the user to google. it doesn't care what blah.html has in its code

megaspaz, quit poachin'

heh
s/www.google.com/apachetutor.org/
:P

bah

humbug

AHH this is driving me crazy

debian'll do that to ya

well what distribution do you recommend?

for apache/php/apache modules, i recommend source packages... apache from apache.org, php from php.net, apache modules from wherever they come from
but that's just me

no I mean which OS distro
besides debian

os distro doesn't matter.
i only comment about apache
distros use the same libraries and same innards
how they package and configure applications is what's different

well I got apache from apache.org, I think I got php automatically when I installed ubuntu

eh?
i thought you said you got everything from ubuntu automatically

not apache

if you're using source, then you'll need to go source with php

what does that mean?

as well
mixing source and distro packages is a sure fire way to give you a headache
basically ubuntu's php package isn't packaged to deal with how you install the source package from apache.org... it's made to deal with ubuntu's packaging of apache...
it means ubuntu built the php package against how it packages apache
not how you might install apache from the source package
ubuntu/debian apache packages are installed in specific places on the hard drive
ubuntu/debian php packages are made with that in mind
they rely on where apache is located on the hard drive
you understand?

right, I understand
it's not flexible enough

right. but that's why you use distro packages. because you don't want to deal with knowing that kind of stuff

so is there any way I can uninstall the distro php and install a source php?

one problem with doing source packages direct from the developer is that if you upgrade, you have to recompile the other software that might depend on that application/library
yeah. use apt... but you'll want to ask that in #ubuntu

oh ok

or ubuntu

ubuntu is an ancient African word meaning 'I can't configure Debian'

lol
what do you use?

or you could uninstall the apache.org package and just use ubuntu's packages... *shrugs*
i use magnets and telepathy

ubuntu has an apache package?

niq's beard is also a good conductor

lol that's nifty

yeah...
o.O
just about every distro has packaged apache

lol I know I'm just screaming noob; I got linux at the beginning of the month

Hey all.

all is yango in disguise

I need some help.
Every time I install php, apache stops working
Any ideas?

thinking is *hard*!

wow thanks

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

and fajita's a bot
just so you know

hwh
ha
okay
I'm reading the documentation.
But it's not really telling me much.

read your error log
error log

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"

Yeah, nothing helpful in the error ong
log*
9 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software
but that shouldn't make it say that firefox cannot establish a connection to localhost

I"m running fedora and I'm trying to get a php page working, and after installing php it doesn't show me the code as text anymore, but it doesn't show me anything, not even in source view
anyone know why that would be?
yum install php if that means anything to you guys

correct. that's a spurious error... means nothing really...
try doing a simple phpinfo file and seeing if that works...

yeah, that does
is must be set up to not show it if there's errors
OK

that means whatever app you're running is borked
check the error log and see if there's any stack traces or error messages...

Its trying to access imaginary databases

define what's stop working...

Hrmm

ok, did you install a php-mysql module? do you have this database installed? and why is the database imaginary?

I don't know, I'm so confused
I'll get back to you after I throw my computer against the wall

i just migrated from another server
and I haven't created the db yet

well there ya go

byt the phpmysql module is a good start

get your environment working first

I thought it would at least give me a page of errors though

nah
you'll just get a white screen of death

it only does that for minor syntax errors or something?

you'll only get errors if the request can be fulfilled

ok
thanks

syntax errors would cause your script to not complete and thus the request never being fulfilled
and a nice big blank white page

ok

wsod

wsod is White Screen Of Death, one of PHP's specialities or to solve it, look for the error reporting settings in my php.ini (or ini_set()). Further questions MUST GO TO ##PHP.

Ok, I did apt-get install apache2
and it did its thing
but I don't see a folder in /usr/local for it
should there be one?

default layout

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

please consult this link

ah thank you

also, the 'folder' term is wrong. The proper term is 'directory'

I'm trying to cd into the new apache2 directory, and it's telling me there is no directory by that name (though I can navigate to it using the GUI). When I use ls -l, it shows it as a 'regular file' instead of a directory

I'm getting a could not bind error
And there is nothing else listening on port 80

oh wait, sorry bad question

what does the error log tell you, exactly?

Oh man
It was skype
I downloaded portreporter
And looked at it
It's log files
And Skype was stealing my portses

skype does that.

Well that was evil.
Thanks though
Now php is not working though.
HAHAHa
It just returns a blank page.

wsod

wsod is White Screen Of Death, one of PHP's specialities or to solve it, look for the error reporting settings in my php.ini (or ini_set()). Further questions MUST GO TO ##PHP.

what does the error log tell you, exactly?

lol
require_once() [a href='function.require'function.require/a]: Failed opening required 'SAM/php_sam.php' (include_path='.;C\php5\\pear') in sam_factory on line 1, referer: http://192.168.1.100/phpmyadmin/documentation.html

ask in ##php

Ok, I got my apache working again, kind of
I'm having a problem though; when it's listening on port 80, I can view the web page, but when it's listening on port 8000, I get a 403 (Forbidden) when I try to view it
I need it to work with port 8000 though because that's what I have forwarded to it

look in the error log for why you got that 403

well I don't see anything about it in the error log or the access log that has to do with 403
there's just the favicon
and two 404's
one second
yeah it's not logging anything about a 403

that is a bummer.

hmm, but it works for 8001
do you think that had anything to do with my router forwarding port 8000?

couldn't even guess

hi , is there a place that apache limits the size of files that can be served ?
i just tried to put a backup i did inside a protected folder in my public html dir so i coudl use https to dl it
it see's the file but it downloads it in like 20 secconds and it's 5 gig
all i can put it down to is apache stopping the download beause of it's size
i checked the file after movign it and it was fine

one possible issue is if you're using mod_deflate and this file is already compressed

Ok I know this is a dumb q and what the man pages are but what exactly does the -DSSL switch provide to httpd

over https, mod_deflate would have issues with already compressed files...
ssl

The reason I am asking is because I am diagnosing why a /etc/init.d/httpd start fails even though it says started.. everything else properly starts httpd, graceful, apachectl etc
growl.. must be lizdexic or tired.. I think I didn't notice that all because of the D
lol
thnx :o)

someone awake ?

insert cheezbarger plskthnx

i have a module, mod_chm but it handles chm-files only when typed with an trailing slash, and i have indexing in a directory, how can i achieve that on clicking a file the trailing slash get added ?

Hmm anyone have any pointers or suggestions for me.. Apache simply does not start when loading ssl, ive commented the modules out of httpd.conf no help and strace is no help

exec of '/var/www/localhost/cgi-bin/env.cgi' failed
join #gentoo
exec of '/var/www/localhost/cgi-bin/env.cgi' failed

(13)

(13) indicates a file permissions problem. Make sure that Apache can read the file(s) and directories being accessed. See also http://wiki.apache.org/httpd/Errors/13PermissionDenied

i got the permission set right on folder and on the cgi script
the test-cgi working fine in the folder

well the error says exec of script failed...
so that makes me think the file doesn't have +x set for apache

3

that's not even the same script the error's complaining about

sorry my falied wrong error
exec of '/var/www/emAlbum/emAlbum.cgi' failed
it stell gives the problem
with the env.cgi in the cgi-bin dir

what does namei -m /var/www/emAlbum/emAlbum.cgi say?
and just to let you know, you don't have to have the owner and group of your scripts be owned by apache...

5

no i want to see the whole output
for the whole path
use apce
apc

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

^^
paste the output there and paste the link here

http://apache.pastebin.ca/571372

that's not the right output

http://apache.pastebin.ca/571376

http://apache.pastebin.ca/571378

use the whole path to the file
like in my pastebin

http://apache.pastebin.ca/571382

ok... that looks fine
how are you telling apache about this directory since it's not in your docroot physically?

in my httpd.conf

is it in your httpd.conf?
i think gentoo uses vhosts by default
what version of apache are you using?

2.0
http://apache.pastebin.ca/571387

ok then i think there's vhost config in gentoo

i had it working before intell data lost
i have also check the vhost
00_vhost_default

block

and you don't need Options ExecCGI
scriptalias directories automatically try to execute all content in it

the weried thing the cgi counter works

anyone there?

no

?

nobody is here...

stell have the error

other files in that dir execute right?
*in emAlbum

linux.org wont help me cause its the weekend

no

is why I ask

different scritp

ok
is that block inside your 00_default_vhost file?
*the scriptalias block

ok
apache webserver on linux wont read on port 80

elaborate

You make no sense, try to rephrase your question and elaborate on what you want, what you tried, and what didn't work (paste the error message you see in the error log, usually named error_log or error.log). Also tell us what platform you are on and what version of apache you are using.

how are you trying to access your server?

its ip address

and what do you mean by read port 80?
that was for seniasen

it accesses fine on local lan but not outside

port forward

port forward is http://portforward.com

router

In order to access your web site behind a router, you must forward the port apache is listening on to your internal IP. Then you can access your site by pointing your browser to http://your external IP here:port. If your ISP blocks port 80, see 'port 80 redirection'. Instructions on how to forward a port using most common routers can be found at http://portforward.com

dns

Your host must resolve to an public IP address

ssl port reads fine but 80 wont
all that is right believe me I can access apache on windows

on a windows machine on the same network?
using internal ip?
that doesn't mean anything

yes
outside ip hold
66.153.239.196

i got my count under /var/www/counter and my emAlbum script is under /var/www/emAlbum both set the same but counte works

hello all. what is the name of the little icon in the adress bar? and how can i set it?

thats my ip

servertokens 66.153.239.196

Apache/2.0.51 (Fedora)

looks fine to me
it's fine

ok I guess I can see it from inside my network
why would that be

seeing your site from inside your network?

like putting that ip in my browser

is this a trick question? if you set up your network right, of course you'd be able to access it internally

yes but not with your public ip address

that's your external public ip. you use that ip address to access your site from outside your network

favicon.ico

what are you talking about? if i type in my external ip address, i get my site...

yea

it's a public ip address. everyone has access to that

rici, hmm ok ill see what google says'

favicon?

favicon is used by many browsers to display an icon along with the title of the web page. http://favicon.com has good information interspersed around the advertisements.

just stick an ico file in your docroot

i can't i got to go by my host or my interal ip address

Can someone point me at an opensource app used to track people's trips through your website?

then you fscked up somewhere

ok I can access my ssh ftp and everything else from my public ip from within my network exept port 80

megaspaz, hmm ok it has to be named favicon.ico?

think its my dsl router

yeah

is what Im saying

I've got apache's log parsed and dumped into a mysql database with bash, but I wondered if there's a better way

cool thanks :-)

but if yall can access it I guess its ok thank you sorry for any confusion

i can't acess my with the ip address that my isp assgined me

ok dident know If I did something wrong

that's pretty common with cheap-o routers

ok thank you

if i just can fiuger out these cgi script why it can't exec

oh he left... i was gonna offer him up maybe firewall blocking port 80 from the localhost...
oh well
try changing the scriptalias to alias and add in Options ExecCGI

block

what's common with cheapo routers?

not doing NAT from inside to inside

ah

it's also common with badly-configured expensive routers

ah hrm

of course, if you carefully set up your lan, you don't need to worry about it.

nope

but that probably counts as an advanced course in lan configuration...

i've never experienced or heard of that... so... heh
ok... dragonlar left too...
excuse

the router thinks its a printer.

heh
how apt...

typically NAT is set up on the outward facing router port, and that port is also set to block incoming traffic with an invalid source address.
so if you issue a request from inside your network to your external address, it has to loop back through the router and actually be NATted.

mmm

mmm, niqadamien nuts

unless, like i say, you set your network up so that all the machines know that your external ip number is local.
anyway, a lot of routers won't special case that type of request, so it gets dropped into the bit bucket
NAT sucks, but apparently ipv6 sucks more.

ipv6? :P

128-bit ip addresses

that'll reach critical mass when duke nukem forever comes out...

it's amazing how long adoption is taking

yeah

ten years ago the shortage of ip addresses was The Next Crisis
but then it got overtaken by y2k and space aliens

y2k wasn't anything... the damn space aliens on the other hand... .

personally i think the crisis has always been trigger happy boys in positions of real power, but that's never lead to the same level of public hysteria
upersonally i think the crisis has always been trigger happy boys in positions of real power, but that's never lead to the same level of public hysteria/u

you could compare to buzz words of it

yeah... after all it's not gonna matter anyway since the world's gonna end after 2038
oh lamp's awake...
heh heh

my ipv6 book was printed in 1996, i see.

haha

i actually read it then. fat lot of good it didme.

11 years and still counting

but it's still rotting on my bookshelf.
oh, well.

bed

nighty night

yeah, I was watching some tv series (actually did take a nap but...)

god, i should've taken a nap today... i love naps...

9

up that early on a sunday? :P
seen whizzer

0

well, I mentioned the nap I took. I guess you could call that good night... but the sun rised like 3 hours ago
well, I mentioned the nap I took. I guess you could call that good night... but the sun rised like 3 hours ago

well good morning there (:

http://www.gaisma.com/en/location/helsinki.html - good time of the year

megaspaz, hi
megaspaz, still my problem is not solved

whizzer!

i'm just being sarcastic. it doesn't communicate well over irc i've found. but i do it anyway
ui'm just being sarcastic. it doesn't communicate well over irc i've found. but i do it anyway/u

what were those urls again?

megaspaz, packages.bosslinux.in and downloads.bosslinux.in
megaspaz, I found one thing the only the first vhost block has been detected by apache and no other are detected, as its correspoding access.logs are empty even if I am accessing them
megaspaz, so, we have to find out why only the first vhost entry is detected and all others are negledted
megaspaz, thus , apache is not finding the vhost for downloads and redirecting the page to the first vhost entry

what files are your vhosts set in?
and can you paste those files again?

megaspaz, my file is pasted here http://apache.pastebin.ca/571478
megaspaz, this is a seperate site name 001.bosslinux.in.conf file under sites-enabled

are you still using the 000-default file?

megaspaz, no i am not using
000-default has beeen disabled now

how did you disable it?

and I enabled the file 001-bosslinux.in.conf file
a2dissite command in debian

ok so 000-default isn't in sites-enabled anymore correct?
and i don't see the boss directory in your directory listing

megaspaz, yes its no more in sites-enabled

i don't see Downloads in your directory listing either

megaspaz, which directory listing you are talking about?

the directory listing i see when going to those urls

megaspaz, those are the contents of /vaw/www/boss

ah

whose vhost entry is packages.bosslinux.in
and /var/www/Downloads contents have to be displayed by downlaods.bosslinux.in, but downloads.bosslinux.in is showing the wrong contects

ok... none of your vhosts work
wiki doesn't work either

megaspaz, yes


Related Topic:

Im trying to get dav working The module is loading and i can attempt to log in but it always says I have the