Joshua Slive | 1 Feb 2007 01:45
Picon

Re: RewriteRule

On 1/31/07, Javier Martínez Fernández <ecentinela <at> gmail.com> wrote:
> Thanks, but I can't understand this. I'm a newbie on apache config.
> Some more help, please?
>
>
> El 31/01/2007, a las 21:04, Joshua Slive escribió:
>
> > On 1/31/07, Javier Martínez Fernández <ecentinela <at> gmail.com> wrote:
> >> I'm making a rewrite rule and I'm having problems with the "?"
> >> character
> >
> > Read the box labeled "Note: Query String" under
> > http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule

The query string is the part of URL following the ?.  It is not
matched by a standard RewriteRule.  In your case, you'll need
something like
RewriteCond %{QUERY_STRING} blahblah

In the blahblah, you match against, the part after the ?.  Then in the
following RewriteRule, you can use back-references (%1, %2, etc) to
grab the matches.  I'd give a crack at showing you how your case
should work, but I find your example too complex and confusing.  You
appear to be embedding a second query string inside the query string,
which isn't going to work (the second question mark will need to be
escaped).

Some general advice:
- Google a little for "RewriteCond QUERY_STRING" and you'll find lots
of examples.
(Continue reading)

Sam Carleton | 1 Feb 2007 04:31
Favicon
Gravatar

Apache/2.2.3 on windows not shutting down

My windows GUI app is starting apache and needs to shut it down before
it exits.  I have tried following the manual:

------------------------
You can tell a running Apache to stop by opening another console
window and entering:

httpd -k shutdown

This should be preferred over pressing Control-C because this lets
Apache end any current operations and clean up gracefully.
------------------------

But it does not work.  Does anyone know why?  I know it is better to
run it as a service, but that is not an option for my usage of apache.
 I am NOT using the standard httpd.conf, I have also tried sending
this:

httpd -k shutdown -f <path to conf file>

And that does not work either.  Any thoughts?

Sam

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org
(Continue reading)

William A. Rowe, Jr. | 1 Feb 2007 06:44

Re: Apache/2.2.3 on windows not shutting down

Sam Carleton wrote:
> 
> httpd -k shutdown
> 
> This should be preferred over pressing Control-C because this lets
> Apache end any current operations and clean up gracefully.
> ------------------------
> 
> But it does not work.  Does anyone know why?  I know it is better to
> run it as a service, but that is not an option for my usage of apache.

As nobody uses httpd as an application except in brief testing, it has
relatively little testing and review.  You can always look at the test
framework available via svn from;

http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework/

for an example of how the framework invokes and shuts down httpd as an
application for the purposes of testing.

The ctrl+c signal *is* captured and handled, so there is no issue with using
that approach.  Of course, killing the process (TerminateProcess) has the side
effects described above.

Patches are welcome, of course.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
(Continue reading)

Picon
Favicon

Re: Apache 2.2.4 problem

I tried to use Win32DisableAcceptEx directive - it did not solved the problem! Server again terminates,
but in error log no messages about errors appears.

>You did something wrong - you installed junky software that breaks the
>advanced sockets API's.
>
>Try DisableWin32AcceptEx in your config

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Octavian Rasnita | 1 Feb 2007 07:45
Picon

Re: Apache/2.2.3 on windows not shutting down

I have also encountered this problem, but when running Apache as a normal
installed web server (as a service).

I have tried:

net stop apache2.2

It tried stopping the service for some time, but without success. I have
also tried

httpd -k stop

But it doesn't want to shut it down.

I have also tried stopping the process from Windows processes list, but it
shown  that it is in the process of stopping...

So I needed to reboot.

Octavian

----- Original Message ----- 
From: "Sam Carleton" <scarleton <at> miltonstreet.com>
To: <users <at> httpd.apache.org>
Sent: Thursday, February 01, 2007 5:31 AM
Subject: [users <at> httpd] Apache/2.2.3 on windows not shutting down

> My windows GUI app is starting apache and needs to shut it down before
> it exits.  I have tried following the manual:
>
(Continue reading)

William A. Rowe, Jr. | 1 Feb 2007 09:58

Re: Apache 2.2.4 problem

Владимир Андреев wrote:
> I tried to use Win32DisableAcceptEx directive - it did not solved the problem! Server again terminates,
but in error log no messages about errors appears.

Sounds like a good start, though.  Also try

EnableMMAP Off
EnableSendfile Off

for good measure, to kill almost all the accelerated features.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Chirouze Olivier | 1 Feb 2007 10:11

RE: Frame Question.

This is probably more than "slightly" off topic.

You might want to check your html syntax (validator.w3c.org), and use
something like

if (parent.navigate.document) {
  // Seems like it's necessary for IE
  parent.navigate.document.location = url;
 } else {
  // Usual way
  parent.navigate.src = url;
 }

Your script should also be included in :
<script type="text/javascript">
</script>

Anyway... You should find much more info on a more appropriate forum...

Olivier CHIROUZE
I&0 Infrastructure 
Volvo Information Technology 

________________________________

	From: Robert Cahn [mailto:robertscahn <at> gmail.com] 
	Sent: 31 January 2007 19:22
	To: users <at> httpd.apache.org
	Subject: [users <at> httpd] Frame Question.
	
(Continue reading)

Sam Carleton | 1 Feb 2007 13:07
Favicon
Gravatar

Re: Apache/2.2.3 on windows not shutting down

On 2/1/07, William A. Rowe, Jr. <wrowe <at> rowe-clan.net> wrote:

> As nobody uses httpd as an application except in brief testing, it has
> relatively little testing and review.  You can always look at the test
> framework available via svn from;
>
> http://svn.apache.org/repos/asf/httpd/test/trunk/perl-framework/
>
> Patches are welcome, of course.

Ok, ok, ok, I will look into it, it would be nice to have fixed and I
am finally doing something that should generate some money so the
least I can do is give back a little;)

So, I am new to subversion, just got my subversion server setup last
week and have been using it at my new job for about three weeks now.
I tried to get the link above with TortoiseSVN, but it isn't
happening.  When I give the repository browser a URL, like
http://svn.apache.org/repos/asf/httpd/httpd/trunk I can see it but not
browse any of it.  I get this error:

Error * REPORT request failed on
'http://svn.apache.org/repos/asf/httpd/httpd/trunk' REPORT of
'http://svn.apache.org/repos/asf/httpd/httpd/trunk': 400 Bad Request
(http://svn.apache.org)

I think I am missing something.  Anyone able to point me to the
correct documentation?

Sam
(Continue reading)

thomas Armstrong | 1 Feb 2007 14:16
Picon

Can I use AddDefaultCharset on Apache 2.0?

Hi.

I want to use UTF-8 on Apache 2.0.59, and I configured 'httpd.conf' to use:
-----
AddDefaultCharset utf-8
-----

I don't know if it's correct, since I'm still suffering some
special-chars problems (perhaps due to other issues).

Thank you very much.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org

Chirouze Olivier | 1 Feb 2007 14:39

RE: suEXEC and RewriteRule

Hmm... mod_rewrite only rewrites the URL... It doens't change the
content.
I guess you use the dynamically generated listing?
So you should probably play with the directive that allows you to list
directories. I don't remember which one it is and don't use it myself.
But I guess you can play with it to change the page title.

Olivier

Olivier CHIROUZE
I&0 Infrastructure
Volvo Information Technology

> -----Original Message-----
> From: Florian Effenberger [mailto:floeff <at> arcor.de] 
> Sent: 31 January 2007 17:06
> To: users <at> httpd.apache.org
> Subject: Re: [users <at> httpd] suEXEC and RewriteRule
> 
> Hi Olivier,
> 
> > I'm not exactly sure RewriteRule accepts all sorts of regex, such as
> > "?".
> > But if so, I guess the following should do:
> > 
> > RewriteRule ^/projects/design/(.?) 
> http://www.mydoma.in/~michael/$1 [P]
> > 
> > And below:
> > 
(Continue reading)


Gmane