Passwort prüfen und mit htpasswd dann ände rn?

2007-02-02 Thread dA
Hallo zusammen,

ich möchte gern auf meine Webserver ein CGI (sh-)
skript
laufen lassen mit dem es den Besuchern möglich ist ein
vorgegebenes Passwort (für die jeweilige) Seite selbst
zu ändern:

1) Seite xy benötigt einen User aus der Gruppe
Gäste...

2) User gibt vorgegebenes Passwort ein, Seite zum
Ändern
des User Passworts wird geladen

3) Eingabe des Benutzernamens + alten Passworts und
2fache Eingabe des neuen Passworts

4) CGI skript gleicht das alte Passwort mit der
Passwort
datei vom Apache2 ab und ruft bei Übereinstimmung das
Programm htpasswd username neues Passwort auf

Im Prinzip ist mir die Realisierung soweit klar,
ich hänge an der Prüfung des alten Passworts.

Wie lässt sich htpasswd aufrufen um das eingegebene
Passwort mit dem Passwort in der Vorhandenen Datei
abgleichen? Die Passwörter sind der Sicherheit wegen
nicht im Klartext abgelegt.

Ich finde diese Prüfung notwendig da sonst die
Passwort
Datei überflutet werden könnte.

Kann mir jemand einen Tipp / link / Hinweis geben?


Grüße
Tom



___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

--
Apache HTTP Server Mailing List users-de 
  unsubscribe-Anfragen an [EMAIL PROTECTED]
   sonstige Anfragen an [EMAIL PROTECTED]
--



[EMAIL PROTECTED] Re: Mess with symbolic links, directory owners and 403 Forbidden error

2007-02-02 Thread thomas Armstrong

Fixed.

I changed  /var/www/mydomain/dir/common_images/ owner to 'apache.apache' and
it works now.

Thank you very much, anyway :)

On 2/2/07, thomas Armstrong [EMAIL PROTECTED] wrote:

Hi.

Using Apache 2.0.51, I've got a VirtualHost 'mydomain.com' mounted on:
'/var/www/mydomain/'

Within this directory, I've got another directory ('test'), and within it
one symbolic link:
/var/www/mydomain/test/images - /var/www/mydomain/dir/common_images/
--

If I make 'images' owner be 'root.root' it works ok when accessing
'http://www.mydomain.com/test/images/foo.php', but if the owner is
'apache.apache' I get a '403 Forbidden error'. In both cases,
'foo.php' script's got execution permissions (also 'images'
directory).

How can I execute this script with 'apache.apache' owner? 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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Mess with symbolic links, directory owners and 403 Forbidden error

2007-02-02 Thread thomas Armstrong

Hi.

Using Apache 2.0.51, I've got a VirtualHost 'mydomain.com' mounted on:
'/var/www/mydomain/'

Within this directory, I've got another directory ('test'), and within it
one symbolic link:
/var/www/mydomain/test/images - /var/www/mydomain/dir/common_images/
--

If I make 'images' owner be 'root.root' it works ok when accessing
'http://www.mydomain.com/test/images/foo.php', but if the owner is
'apache.apache' I get a '403 Forbidden error'. In both cases,
'foo.php' script's got execution permissions (also 'images'
directory).

How can I execute this script with 'apache.apache' owner? 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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] get module full path from module code

2007-02-02 Thread Asaf Dalet

Hi,

I am writing an apache module. In the module code, on runtime, I want to
know the directory of my module (to read a configuration file).

for example:

LoadModule mod_mymodule c:\my_module_path\my_module.so

I want to be able to get the path: c:\my_module_path\

is there a way to do it? for apache v1.3,2.0,2.2 ?
should I read the configuration file (how do i get path/access to it)? can i
use ap_mpm_query for that?

appreciate any help

Asaf


[EMAIL PROTECTED] RewriteRule not executed with https

2007-02-02 Thread Andreas Matthias
My RewriteRule is working for http connections but not for https
connections.

In my .htaccess I have the following RewriteRule:

IfModule mod_rewrite.c
  RewriteEngine on
  RewriteBase /drupal/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
/IfModule

This is working pretty well when connecting to http://localhost/drupal/
From the log:

127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (3) [per-dir 
/var/www/localhost/htdocs/drupal/] strip per-dir prefix: 
/var/www/localhost/htdocs/drupal/ -
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (3) [per-dir 
/var/www/localhost/htdocs/drupal/] applying pattern '^(.*)$' to uri ''
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (4) RewriteCond: 
input='/var/www/localhost/htdocs/drupal/' pattern='!-f' = matched
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (4) RewriteCond: 
input='/var/www/localhost/htdocs/drupal/' pattern='!-d' = not-matched
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (1) [per-dir 
/var/www/localhost/htdocs/drupal/] pass through 
/var/www/localhost/htdocs/drupal/


But if I am trying to connect to https://localhost/drupal/ the 
RewriteRule doesn't seem to be executed. There is not entry in
the log file. And addresses like https://localhost/drupal/admin
fail with `url not found'.

What's going wrong?


Ciao
Andreas


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread nick
Hi all,

Does apache automatically log the client IP address if the client goes
through a proxy that sends an X-Forwarded-For header?

If i set up a proxy for people, and do NOT want it to be anonymous, will
my proxy ip show up in other servers http-access logs?

If so, is there any indication of what % of webservers deal with
X-Forwarded-For logging (is it common practice to do so for larger
companies)?

Many thanks in advance,

- nick


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] RewriteRule not executed with https

2007-02-02 Thread Olaf Lautenschlaeger
On Friday, February 02, 2007 11:59 AM [GMT+1=CET],
Andreas Matthias [EMAIL PROTECTED] wrote:

 But if I am trying to connect to https://localhost/drupal/ the
 RewriteRule doesn't seem to be executed.

You probably need to have 'RewriteEngine On' (and of
course all the rule set too) for the https virtual host?!

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread Joshua Slive

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi all,

Does apache automatically log the client IP address if the client goes
through a proxy that sends an X-Forwarded-For header?


No.  Doing so would allow trivial spoofing since the X-Forwarded-For
header is completely under the control of the client.


If i set up a proxy for people, and do NOT want it to be anonymous, will
my proxy ip show up in other servers http-access logs?


No.

Joshua.

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] X-Forwarded-For and default apache logging

2007-02-02 Thread Yu, Ming
Is there a way or a module for Apache to get the X-Forwarded-For header?


- Ming

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua
Slive
Sent: Friday, February 02, 2007 8:46 AM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] X-Forwarded-For and default apache logging

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hi all,

 Does apache automatically log the client IP address if the client goes

 through a proxy that sends an X-Forwarded-For header?

No.  Doing so would allow trivial spoofing since the X-Forwarded-For
header is completely under the control of the client.

 If i set up a proxy for people, and do NOT want it to be anonymous, 
 will my proxy ip show up in other servers http-access logs?

No.

Joshua.

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache 2.2.4 problem

2007-02-02 Thread Владимир Андреев
Sounds like a good start, though.  Also try

EnableMMAP Off
EnableSendfile Off

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

I tried to use EnableMMAP Off and EnableSendfile Off, but it did not helped me. 
Server again terminates.

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia

Hi Everyone,

I configured my .htaccess to map/redirect all my *.html page to *.php pages
like below


RewriteEngine on
RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php


It works. But now, I want the client cannot access the php script directly.
So I write the rule like these


RewriteCond %{REQUEST_URI}  \.(php)$
RewriteRule .* - [F]


But now it forbid every *.html  that maps to my *.php pages... What is wrong
? How can I achieve my goal ?


Regards,

Feris


Re: [EMAIL PROTECTED] RewriteRule not executed with https

2007-02-02 Thread Krist van Besien

On 2/2/07, Andreas Matthias [EMAIL PROTECTED] wrote:

My RewriteRule is working for http connections but not for https
connections.

In my .htaccess I have the following RewriteRule:

IfModule mod_rewrite.c
  RewriteEngine on
  RewriteBase /drupal/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
/IfModule

This is working pretty well when connecting to http://localhost/drupal/
From the log:

127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (3) [per-dir 
/var/www/localhost/htdocs/drupal/] strip per-dir prefix: 
/var/www/localhost/htdocs/drupal/ -
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (3) [per-dir 
/var/www/localhost/htdocs/drupal/] applying pattern '^(.*)$' to uri ''
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (4) RewriteCond: 
input='/var/www/localhost/htdocs/drupal/' pattern='!-f' = matched
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (4) RewriteCond: 
input='/var/www/localhost/htdocs/drupal/' pattern='!-d' = not-matched
127.0.0.1 - - [02/Feb/2007:11:46:19 +0100] 
[localhost/sid#818b240][rid#8236d00/initial] (1) [per-dir 
/var/www/localhost/htdocs/drupal/] pass through 
/var/www/localhost/htdocs/drupal/


But if I am trying to connect to https://localhost/drupal/ the
RewriteRule doesn't seem to be executed. There is not entry in
the log file. And addresses like https://localhost/drupal/admin
fail with `url not found'.

What's going wrong?


Your SSL virtualhost probably doesn't read the .htaccess file at all.
Maybe you need an AllowOverride all somewhere.

You could also add the rewrites to your httpd.conf. That's how I did
it when I installed Drupal.


Krist

--
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation. (Comment on the Dilbert Blog)

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Chirouze Olivier
Hi,
 
I guess you should add [L] (last) to your first rule, and make sure
the second one is AFTER. Thus, the first rule will work for *.html, and
exit. When calling *.php, it will go to the second one...
 
RewriteEngine on
RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php [L]
RewriteCond %{REQUEST_URI}  \.(php)$
RewriteRule .* - [F]

Olivier
 

Olivier CHIROUZE
I0 Infrastructure 
Volvo Information Technology 

 




From: Feris Thia [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2007 15:16
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] URLRewrite Question


Hi Everyone,

I configured my .htaccess to map/redirect all my *.html page to
*.php pages like below


RewriteEngine on
RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php


It works. But now, I want the client cannot access the php
script directly. So I write the rule like these


RewriteCond %{REQUEST_URI}  \.(php)$
RewriteRule .* - [F]


But now it forbid every *.html  that maps to my *.php pages...
What is wrong ? How can I achieve my goal ? 


Regards,

Feris


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Krist van Besien

On 2/2/07, Feris Thia [EMAIL PROTECTED] wrote:

Hi Everyone,

I configured my .htaccess to map/redirect all my *.html page to *.php pages
like below


 RewriteEngine on
RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php


It works. But now, I want the client cannot access the php script directly.
So I write the rule like these


 RewriteCond %{REQUEST_URI}  \.(php)$
RewriteRule .* - [F]


But now it forbid every *.html  that maps to my *.php pages... What is wrong
? How can I achieve my goal ?


RewriteRule processing doesn't stop when a rule matches, unless you
tell it to. So you first rewrite *.html to *.php and then tell your
server to forbid access to *.php, and you get exactly that.

First a question: Why do you want to do this? This will cause all
kinds of trouble, like when a piece of php generates self referencing
urls, that will naturlally end in .php. Forms for example work like
this.

What you can do however is:
- Play with the order of the rules.
- Add the [L] flag to stop processing.



Regards,

Feris




--
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation. (Comment on the Dilbert Blog)

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia

Hi Olivier,

This still doesn't work as what I want it too. It makes every access to html
and php forbidden.

Regards,

Feris

On 2/2/07, Chirouze Olivier [EMAIL PROTECTED] wrote:


Hi,

I guess you should add [L] (last) to your first rule, and make sure
the second one is AFTER. Thus, the first rule will work for *.html, and
exit. When calling *.php, it will go to the second one...

RewriteEngine on
RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php [L]
RewriteCond %{REQUEST_URI}  \.(php)$
RewriteRule .* - [F]

Olivier


Olivier CHIROUZE
I0 Infrastructure
Volvo Information Technology





[EMAIL PROTECTED] Configuring htpasswd only for specific ServerAlias

2007-02-02 Thread Ben Roberts


Does anybody know if it's possible to apply htpasswd authentication to a 
particular directory ONLY if a specific ServerAlias is requested.


e.g. I have a single virtual host container, with 2 server aliases:

VirtualHost 1.2.3.4:80
ServerName www.domain.com
ServerAlias foo.domain.com

Directory /home/user/www
AuthType Basic
AuthName My Server
AuthUserFile /home/user/.htpasswds
Require user myuser
/Directory

/VirtualHost

Basically I just want the htpasswd authentication to apply if the server 
name requested is foo.domain.com and not www.domain.com


I know this can be done by creating a new virtual host container for 
foo.domain.com instead of using a serveralias, but I'd rather not do 
that if possible.


Thanks

Ben


-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Configuring htpasswd only for specific ServerAlias

2007-02-02 Thread Joshua Slive

On 2/2/07, Ben Roberts [EMAIL PROTECTED] wrote:


I know this can be done by creating a new virtual host container for
foo.domain.com instead of using a serveralias, but I'd rather not do
that if possible.


Why not?  VirtualHost sections are designed for exactly this purpose.

Joshua.

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Chirouze Olivier
I guess nothing is supposed to work on some platform and not on others
(Windows, Unix...).
 
Did you try upgrading RewriteLogLevel to 3? You should get more
information on what's happening.

Another note: Kriss is right, if you want to redirect anything to your
php files, remember to never print the real php path. Never use PHP_SELF
or such: instead, always replace php to html when you need links,
redirect, or URL that would be printed to your html output...



Olivier CHIROUZE
I0 Infrastructure 
Volvo Information Technology 

 




From: Feris Thia [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2007 15:55
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] URLRewrite Question


Sorry...

I think I understand both of you guys... the [L] is to stop any
further rule processing. Is it work with Apache on Windows ?

I have added the [L] but it seems not stopping.

Regards,

Feris 



On 2/2/07, Feris Thia [EMAIL PROTECTED] wrote: 

On 2/2/07, Krist van Besien [EMAIL PROTECTED] 
wrote: 

RewriteRule processing doesn't stop when a rule
matches, unless you
tell it to. So you first rewrite *.html to *.php
and then tell your
server to forbid access to *.php, and you get
exactly that.

First a question: Why do you want to do this?
This will cause all 
kinds of trouble, like when a piece of php
generates self referencing
urls, that will naturlally end in .php. Forms
for example work like
this.


Hi Krist,

It is requested by my client as he doesn't want client
to guess the scripting engine that being used. And how do I forbid the
php extension access while stil can map html to php extension ?
 



What you can do however is: 
- Play with the order of the rules.
- Add the [L] flag to stop processing.



Hm... can you please give me an example ? I'm quite
frustrated with this :) 

Many Thanks... 

Regards,

Feris



-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] redirecting SSL

2007-02-02 Thread Chirouze Olivier
I'm not sure I get you, but it sounds like you just don't want to have
the *:443 virtual host existing at all!! I think as soon as the apache
processing starts on your virtual host, the SSL handshake has been done
(= the warning appeared). So whatever you will put in the virtualHost
scope will be handled _after_ the warning...

Did you try having _ssl NOT activated_ on the *:443 virtualhost?

Olivier

Olivier CHIROUZE
I0 Infrastructure
Volvo Information Technology
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Sam Carleton
 Sent: 02 February 2007 16:08
 To: users@httpd.apache.org
 Subject: [EMAIL PROTECTED] redirecting SSL
 
 I have setup a virtual SSL host that is working great!  I would like
 to configure the default SSL to redirect the browser back to the
 default non SSL site.  I don't have a cert that is signed by a real
 CA, so I would prefer if SSL was not actually used so that the warning
 message does not come up.  My whole objective is to try to hide the
 presents of the virtual host.
 
 -
 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: [EMAIL PROTECTED]
   from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Configuring htpasswd only for specific ServerAlias

2007-02-02 Thread Ben Roberts



I know this can be done by creating a new virtual host container for
foo.domain.com instead of using a serveralias, but I'd rather not do
that if possible.


Why not?  VirtualHost sections are designed for exactly this purpose.

Joshua.


Yes I suppose so. I've also realised I now need to configure logging for 
each server alias separately, so it does make sense to create multiple 
virtual host containers and then Include a file containing all the 
common configuration directives


Thanks

Ben



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia

Hi Chirouze,

Yes... I've tried it on both windows  linux and still got the same things.
Is it possible the sequence processes are like these :
1. Try to get *.html
2. got RewriteRule ^([0-9a-zA-Z]+)\.html$ $1.php [L] rule and then try to
access *.php
3. Try to get *.php
4. got
RewriteCond %{REQUEST_URI}  \.(php)$
RewriteRule .* - [F]
   rules, so prevent access to php

Eventually, all access to *.html are also prohibited. Is that the way the
rules work ?

Regards,

Feris

On 2/2/07, Chirouze Olivier [EMAIL PROTECTED] wrote:


I guess nothing is supposed to work on some platform and not on others
(Windows, Unix...).

Did you try upgrading RewriteLogLevel to 3? You should get more
information on what's happening.

Another note: Kriss is right, if you want to redirect anything to your
php files, remember to never print the real php path. Never use PHP_SELF
or such: instead, always replace php to html when you need links,
redirect, or URL that would be printed to your html output...



Olivier CHIROUZE
I0 Infrastructure
Volvo Information Technology






From: Feris Thia [mailto:[EMAIL PROTECTED]
Sent: 02 February 2007 15:55
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] URLRewrite Question


Sorry...

I think I understand both of you guys... the [L] is to stop any
further rule processing. Is it work with Apache on Windows ?

I have added the [L] but it seems not stopping.

Regards,

Feris



On 2/2/07, Feris Thia [EMAIL PROTECTED] wrote:

On 2/2/07, Krist van Besien [EMAIL PROTECTED] 
wrote:

RewriteRule processing doesn't stop when a rule
matches, unless you
tell it to. So you first rewrite *.html to *.php
and then tell your
server to forbid access to *.php, and you get
exactly that.

First a question: Why do you want to do this?
This will cause all
kinds of trouble, like when a piece of php
generates self referencing
urls, that will naturlally end in .php. Forms
for example work like
this.


Hi Krist,

It is requested by my client as he doesn't want client
to guess the scripting engine that being used. And how do I forbid the
php extension access while stil can map html to php extension ?




What you can do however is:
- Play with the order of the rules.
- Add the [L] flag to stop processing.



Hm... can you please give me an example ? I'm quite
frustrated with this :)

Many Thanks...

Regards,

Feris



-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




[EMAIL PROTECTED] Re: RewriteRule not executed with https

2007-02-02 Thread Andreas Matthias
Olaf Lautenschlaeger wrote:

 On Friday, February 02, 2007 11:59 AM [GMT+1=CET],
 Andreas Matthias [EMAIL PROTECTED] wrote:
 
 But if I am trying to connect to https://localhost/drupal/ the
 RewriteRule doesn't seem to be executed.
 
 You probably need to have 'RewriteEngine On' (and of
 course all the rule set too) for the https virtual host?!

How embarrassing. I totally forgot to configure the ssl
virtual host. Now, after doing that, apache  executes the
rewrite rules in .htaccess for https requests as well.

Thanks.

Ciao
Andreas


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] RewriteRule shennanigans

2007-02-02 Thread cristopher pierson ewing

Hi there.

I've got a set of rewrite rules designed to allow for search-engine 
freindly URLs.  An example rule looks like this:


RewriteRule ^(register|course)/([A-Z]{2,2}[0-9]{4,4}) $1.php?id=$2

This rule has been working for the past year or so in rewriting URLs like

http://my.server.com/register/MJ0701  into

http://my.server.com/register.php?id=MJ0701

I recently accidentally wiped out the .htaccess file on my test server 
that held these rules, and rewrote them with rules copied from my 
production server .htaccess file.  I restarted apache, and suddenly the 
rule failed to work.


I turns out, after turning on rewrite logging, that before my rule could 
be applied, some apache internal process was rewriting my incoming url


http://my.server.com/register/MJ0701 into
http://my.server.com/register.php/MJ0701

using a step called 'add path-info postfix'.

My question is this.  When did this start happening, and is there some way 
to shut it off?  I am leery of processes which rewrite my urls without my 
consent, and would like to control this myself.  I can (and have) 
rewritten the rules to account for the added postfixes, but I don't like 
the need to do that, and I didn't use to have to.  I think there was 
another directive in my .htaccess that did it, but I can't remember what 
it was.


Thanks for any suggestions you all might have.

Cris


Cris Ewing
CME and Telehealth Web Services
Department of Radiology Web Services
University of Washington
School of Medicine
Work Phone: (206) 685-9116
Home Phone: (206) 365-3413
E-mail: [EMAIL PROTECTED]
***


-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Symantec Antivirus installed during apache_2.2.4-win32-x86-no_ssl.msi

2007-02-02 Thread J E
I downloaded apache_2.2.4-win32-x86-no_ssl.msi from
the //apache.cs.utah.edu/pub/apache.org mirror.  I
used the md5 method to validate and validation
appeared to be successful.  During apache install
there was an error when SymantecAntivirus was being
installed.  I do not have the exact error message but
the apache install continued after clicking the Cancel
to proceed past the Symantec install.

The apache install appeared to be working but when I
did a right click on the Start button (Windows XP SP2)
I would get a SymantecAntivirus.msi install error as
it was trying to access a file on C:\temp\.
It was a rather time consuming process to rid my
machine of this partial Symantec installation.  Part
of my concern is that this was a 10.0 version of Sym
AntiVirus.  We just had a virus outbreak because of
vulnerability in that version of Symantec antivirus.  

I am posting this question because I have not seen any
indication, on the apache site, about this problem. 
Have others seen this problem?  Why does apache 2.2.4
install SymantecAntivirus software?


Thanks


 

Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Daylight Savings Time change

2007-02-02 Thread Roberta Clark-Chabluk
HI

We are running Apache on Redhat Linux ES 3.0 and will be updating Linux to 
comply with the new daylight savings time changes for 2007 starting in March.  
Does anyone know if there are any changes that need to happen for Apache or 
does it just rely on the OS time? thanks.

Roberta Clark-Chabluk
Unix Administrator
New Flyer Industries Canada ULC
PH 204-224-6459
email [EMAIL PROTECTED]





Re: [EMAIL PROTECTED] Symantec Antivirus installed during apache_2.2.4-win32-x86-no_ssl.msi

2007-02-02 Thread Evan Platt

At 12:30 PM 2/2/2007, J E wrote:

I downloaded apache_2.2.4-win32-x86-no_ssl.msi from
the //apache.cs.utah.edu/pub/apache.org mirror.  I
used the md5 method to validate and validation
appeared to be successful.  During apache install
there was an error when SymantecAntivirus was being
installed.  I do not have the exact error message but
the apache install continued after clicking the Cancel
to proceed past the Symantec install.

The apache install appeared to be working but when I
did a right click on the Start button (Windows XP SP2)
I would get a SymantecAntivirus.msi install error as
it was trying to access a file on C:\temp\.
It was a rather time consuming process to rid my
machine of this partial Symantec installation.  Part
of my concern is that this was a 10.0 version of Sym
AntiVirus.  We just had a virus outbreak because of
vulnerability in that version of Symantec antivirus.

I am posting this question because I have not seen any
indication, on the apache site, about this problem.
Have others seen this problem?  Why does apache 2.2.4
install SymantecAntivirus software?


I could be wrong, but I don't believe Apache installs Symantec.

Is it possible you already HAVE symantec, and the error was something 
to do with maybe Symantec security suite? Or perhaps an improperly 
installed copy of Symantec?



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Symantec Antivirus installed during apache_2.2.4-win32-x86-no_ssl.msi

2007-02-02 Thread William A. Rowe, Jr.
J E wrote:
 
 I am posting this question because I have not seen any
 indication, on the apache site, about this problem. 
 Have others seen this problem?  Why does apache 2.2.4
 install SymantecAntivirus software?

It does not.  Please take this up with Symantec.

Unlike Symantec and many other applications, httpd installer does
not deposit any files into C:\Windows\... etc.  Everything installed
is deposited into httpd, except for MSVCRT which is from an install
shield provided, microsoft sourced merge module.

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Daylight Savings Time change

2007-02-02 Thread Mark Lavi
This is a FAQ: this question has been answered before.

 

Please search the mailing list archives and check the Apache FAQ to be
sure it applies to your version of Apache. You did not specify your
version of Apache, but the short answer is yes, Apache relies on the
operating system for date/time information.

 

http://httpd.apache.org/userslist.html#archives

http://httpd.apache.org/docs/1.3/misc/FAQ.html#year2000

 

 

--Mark 

Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707



From: Roberta Clark-Chabluk [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 02, 2007 1:00 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Daylight Savings Time change

 

HI 

We are running Apache on Redhat Linux ES 3.0 and will be updating Linux
to comply with the new daylight savings time changes for 2007 starting
in March.  Does anyone know if there are any changes that need to happen
for Apache or does it just rely on the OS time? thanks.

Roberta Clark-Chabluk 
Unix Administrator 
New Flyer Industries Canada ULC 
PH 204-224-6459 
email [EMAIL PROTECTED] 

 



[EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread arry

Hi,

I would like to have a path like /go/ after which the address to be proxied.
This is the config:

Location /go/ 

  SSLCipherSuite MEDIUM
  SSLRequireSSL

   AuthType Digest
   AuthName Restricted Area
   AuthDigestDomain /go/
   AuthDigestProvider file
   AuthUserFile /var/www/.digestpwd
   Require valid-user

  RewriteEngine on
  RewriteRule ^(.*)  http://$1  [P,L]

/Location


but the rewrite rule does not work.
I get an error /go/yahoo.com not found on this server.

I would like when i type /myserver/go/yahoo.com to be connected to  
yahoo.com through myserver.


thanks


-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread Serge Dubrouski

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi,

I would like to have a path like /go/ after which the address to be proxied.
This is the config:

Location /go/ 

   SSLCipherSuite MEDIUM
   SSLRequireSSL

AuthType Digest
AuthName Restricted Area
AuthDigestDomain /go/
AuthDigestProvider file
AuthUserFile /var/www/.digestpwd
Require valid-user

   RewriteEngine on
   RewriteRule ^(.*)  http://$1  [P,L]


RewriteRule ^/go/(.*) http://SERVER_NAME_SHOULD_BE_HERE/$1 [P,L]

What is the reason top put SSL options in Location tag?


/Location


but the rewrite rule does not work.
I get an error /go/yahoo.com not found on this server.

I would like when i type /myserver/go/yahoo.com to be connected to
yahoo.com through myserver.

thanks


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] how to set up virtual hosts

2007-02-02 Thread Beraru Liviu
configure DNS to map the desired hostname to the IP address for your
server
   
  Thanks, but how do I do this?
  

Joshua Slive [EMAIL PROTECTED] wrote:
  On 2/1/07, Beraru Liviu 
wrote:
 Hy!
 I am new in Apache and I used it until now only for testing PHP and MySQL.
 I have now to host some web sites but I don't know how.
 I searched for tutorials on the web, in the apache mailing lists, in the
 Apache documentation and also in the FAQ but I couldn't find an answer to a
 few questions.
 I mention that I haven't done any experiments in order to lunch my
 websites because I don't want to ruin the computers I use...

 How do I find a A to Z websiteshosting tutorial?

 I know that I have to change the vhosts.conf file, but... more than this ...
 I know nothing.

 How exactly to I get my websites on the net?

 Just create folders and declare them in the vhosts file?

 What's the importance of the .com, .de, .net, .it, .ro and so on
 terminations?
 Should I just create a folder named www.website.com and that's it?

The apache virtual host documentation is a good place to start:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

But it sounds like you might need something a little more basic. In
particular, before you even start configuring apache, you need to
configure DNS to map the desired hostname to the IP address for your
server. This is out of scope for this list in general, especially
since it is impossible to tell exactly what point you are starting
from. Your ISP would probably be a good source of help for this
question, or maybe something like:
http://www.howstuffworks.com/dns.htm

Once you get the DNS mapped correctly, you need to configure apache.
If you find the apache docs too dense, a quick google will turn up
dozens of tutorials:
http://www.google.com/search?q=virtual+hosts+apache
Just be sure to check what they say against the official docs, since
the quality of the tutorials can vary widely.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

RE: [EMAIL PROTECTED] how to set up virtual hosts

2007-02-02 Thread Mark Lavi
Your question about DNS is completely out of scope for this list!

Find out who maintains DNS for your domain and work with them.

 

If you don't know what that means, then start to ask and work with your
domain registrar and work your way to a responsible party or service
provider for DNS (nameserver) configuration.

 

--Mark 

Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707



From: Beraru Liviu [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 02, 2007 1:36 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] how to set up virtual hosts

 

configure DNS to map the desired hostname to the IP address for your
server

 

Thanks, but how do I do this?



Joshua Slive [EMAIL PROTECTED] wrote:

On 2/1/07, Beraru Liviu wrote:
 Hy!
 I am new in Apache and I used it until now only for testing
PHP and MySQL.
 I have now to host some web sites but I don't know how.
 I searched for tutorials on the web, in the apache mailing
lists, in the
 Apache documentation and also in the FAQ but I couldn't find
an answer to a
 few questions.
 I mention that I haven't done any experiments in order to
lunch my
 websites because I don't want to ruin the computers I use...

 How do I find a A to Z websiteshosting tutorial?

 I know that I have to change the vhosts.conf file, but... more
than this ...
 I know nothing.

 How exactly to I get my websites on the net?

 Just create folders and declare them in the vhosts file?

 What's the importance of the .com, .de, .net, .it, .ro and so
on
 terminations?
 Should I just create a folder named www.website.com and that's
it?

The apache virtual host documentation is a good place to start:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html

But it sounds like you might need something a little more basic.
In
particular, before you even start configuring apache, you need
to
configure DNS to map the desired hostname to the IP address for
your
server. This is out of scope for this list in general,
especially
since it is impossible to tell exactly what point you are
starting
from. Your ISP would probably be a good source of help for this
question, or maybe something like:
http://www.howstuffworks.com/dns.htm

Once you get the DNS mapped correctly, you need to configure
apache.
If you find the apache docs too dense, a quick google will turn
up
dozens of tutorials:
http://www.google.com/search?q=virtual+hosts+apache
Just be sure to check what they say against the official docs,
since
the quality of the tutorials can vary widely.

Joshua.


-
The official User-To-User support forum of the Apache HTTP
Server Project.
See for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





  



Bored stiff? http://us.rd.yahoo.com/evt=49935/*http:/games.yahoo.com
Loosen up...
Download and play hundreds of games for free
http://us.rd.yahoo.com/evt=49935/*http:/games.yahoo.com  on Yahoo!
Games.



Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Bob

Feris Thia wrote:

I have added the [L] but it seems not stopping.


It does. But there is an internal redirect in directory context.

Put

RewriteEngine on
RewriteRule ^/([0-9a-zA-Z]+)\.html$ /$1.php [PT]
RewriteRule \.php$ - [F]

into your httpd.conf/ per-server context (main server config section or 
inside your client's virtualhost-section).


--
Bob

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread Bob

[EMAIL PROTECTED] wrote:

Location /go/ 

[...]

  RewriteEngine on
  RewriteRule ^(.*)  http://$1  [P,L]


RewriteRules inside location sections are syntactically permitted, but 
unsupported (see manual).


--
Bob

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Re:Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread arry

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi,

I would like to have a path like /go/ after which the address to be proxied.
This is the config:

Location /go/ 

   SSLCipherSuite MEDIUM
   SSLRequireSSL

AuthType Digest
AuthName Restricted Area
AuthDigestDomain /go/
AuthDigestProvider file
AuthUserFile /var/www/.digestpwd
Require valid-user

   RewriteEngine on
   RewriteRule ^(.*)  http://$1  [P,L]



RewriteRule ^/go/(.*) http://SERVER_NAME_SHOULD_BE_HERE/$1 [P,L]


O.k. but i would like to poxy locations that are not on my server.


What is the reason top put SSL options in Location tag?


To heve sll traffic btwn client and the apache server. Isn't that right?



/Location


but the rewrite rule does not work.
I get an error /go/yahoo.com not found on this server.

I would like when i type /myserver/go/yahoo.com to be connected to
yahoo.com through myserver.

thanks



-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread arry

Quoting Bob [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Location /go/ 

[...]

 RewriteEngine on
 RewriteRule ^(.*)  http://$1  [P,L]


RewriteRules inside location sections are syntactically permitted, but
unsupported (see manual).

--
Bob


OHhh...,

thanks for pointing that out.
i will put it in server config then





-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Re:Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread Serge Dubrouski

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 I would like to have a path like /go/ after which the address to be proxied.
 This is the config:

 Location /go/ 

SSLCipherSuite MEDIUM
SSLRequireSSL

 AuthType Digest
 AuthName Restricted Area
 AuthDigestDomain /go/
 AuthDigestProvider file
 AuthUserFile /var/www/.digestpwd
 Require valid-user

RewriteEngine on
RewriteRule ^(.*)  http://$1  [P,L]

 RewriteRule ^/go/(.*) http://SERVER_NAME_SHOULD_BE_HERE/$1 [P,L]

O.k. but i would like to poxy locations that are not on my server.


Them you need to say from what server you want to get proxied content.


 What is the reason top put SSL options in Location tag?

To heve sll traffic btwn client and the apache server. Isn't that right?


Just 2 those options aren't enough and they are in the wrong place.
Looks like you have to read Apache documentation for the beginning.




 /Location


 but the rewrite rule does not work.
 I get an error /go/yahoo.com not found on this server.

 I would like when i type /myserver/go/yahoo.com to be connected to
 yahoo.com through myserver.

 thanks


-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread arry

Hi,

Is there a rewrite option for stopping the redirects, like ReverseProxyPass?
I looked in the manual but could not find.

thanks

H.Todorov


Quoting Bob [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Location /go/ 

[...]

RewriteEngine on
RewriteRule ^(.*)  http://$1  [P,L]


RewriteRules inside location sections are syntactically permitted, but
unsupported (see manual).

--
Bob


OHhh...,

thanks for pointing that out.
i will put it in server config then





-
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: [EMAIL PROTECTED]
from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] simple rewrite rule

2007-02-02 Thread Serge Dubrouski

There is a RewriteCond with which you can build any kind of
rewriting/redirection rules.

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi,

Is there a rewrite option for stopping the redirects, like ReverseProxyPass?
I looked in the manual but could not find.

thanks

H.Todorov

 Quoting Bob [EMAIL PROTECTED]:

 [EMAIL PROTECTED] wrote:
 Location /go/ 
 [...]
 RewriteEngine on
 RewriteRule ^(.*)  http://$1  [P,L]

 RewriteRules inside location sections are syntactically permitted, but
 unsupported (see manual).

 --
 Bob

 OHhh...,

 thanks for pointing that out.
 i will put it in server config then




 -
 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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] how to set up virtual hosts

2007-02-02 Thread Joshua Slive

On 2/2/07, Beraru Liviu [EMAIL PROTECTED] wrote:

configure DNS to map the desired hostname to the IP address for your
server

Thanks, but how do I do this?


As I said immediately following this line:
This is out of scope for this list in general, especially
since it is impossible to tell exactly what point you are starting
from.  Your ISP would probably be a good source of help for this
question, or maybe something like:
http://www.howstuffworks.com/dns.htm

-
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: [EMAIL PROTECTED]
 from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Query-String Access from SetEnvIf

2007-02-02 Thread tyju tiui
Sorry, you're missing the point I think.
I don't want to create any variables if I don't have to ... I just want access 
to the query-string.

I think at this point it is impossible ... I'm just going to submit a bug 
report / feature request.

Thanks,

Ty



- Original Message 
From: Krist van Besien [EMAIL PROTECTED]
To: users@httpd.apache.org
Sent: Wednesday, January 31, 2007 11:22:50 AM
Subject: Re: [EMAIL PROTECTED] Query-String Access from SetEnvIf

On 1/31/07, tyju tiui [EMAIL PROTECTED] wrote:

 Hi Boyle,

 I'm actually only interested in finding out how to evaluate the query-string
 portion of an incoming URL to trigger custom log events.

 I got the Query_String var from [EMAIL PROTECTED] who initially
 responded to my request for help (see below).

 Any idea as to how I can get to the query-string with SetEnvIf?

I don't think you can get to the query string with SetEnvIf, but you
can set environment variables based on about anything with a
rewriterule.

RewriteCond %{QUERY_STRING} !^$
RewriteRule  (.*)   $1 [E=dolog:yes]

Krist


-- 
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation. (Comment on the Dilbert Blog)

-
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: [EMAIL PROTECTED]
  from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

Re: [EMAIL PROTECTED] URLRewrite Question

2007-02-02 Thread Feris Thia

On 2/3/07, Bob [EMAIL PROTECTED] wrote:


Feris Thia wrote:
 I have added the [L] but it seems not stopping.

It does. But there is an internal redirect in directory context.

Put

RewriteEngine on
RewriteRule ^/([0-9a-zA-Z]+)\.html$ /$1.php [PT]
RewriteRule \.php$ - [F]

into your httpd.conf/ per-server context (main server config section or
inside your client's virtualhost-section).


--

Bob




Hi Bob,

It's working. Thanks.

Another question, the rule will not work in shared host, right ?

Regards,

Feris