SV: SV: [EMAIL PROTECTED] Rewrite on Windows-server (subdomain)

2006-03-04 Thread Dennis Madsen
Hei,

I still have problems.
My Virtual Host is:


DocumentRoot c:/www/myhp.dk/www
ServerName myhp.dk
ServerAlias *.myhp.dk
ServerAdmin [EMAIL PROTECTED]
php_admin_value open_basedir c:/www/myhp.dk/www/
CustomLog c:/www/myhp.dk/access.log combined
ErrorLog c:/www/myhp.dk/error.log
RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^.]+)\.myhp\.dk$ RewriteCond %1 !^www$
RewriteCond c:/www/myhp.dk/www/%1 -d RewriteRule ^(.*) /%1/$1 [L]


I restart Apache without any errors, but when I visit myhp.dk I get this
error on the server:
The requested operation has failed.

Can you help me? Any logs?

Med venlig hilsen / Best regards
Dennis Madsen
-Oprindelig meddelelse-
Fra: Robert Ionescu [mailto:[EMAIL PROTECTED] 
Sendt: 3. marts 2006 15:01
Til: users@httpd.apache.org
Emne: Re: SV: [EMAIL PROTECTED] Rewrite on Windows-server (subdomain)

Dennis Madsen wrote:
> Should I insert a rewrite rule in my virtual host for myhp.dk? I have
this:
> 
> 
> DocumentRoot c:/www/myhp.dk/www
> ServerName myhp.dk
> ServerAlias *.myhp.dk
> ServerAdmin [EMAIL PROTECTED]
> php_admin_value open_basedir c:/www/myhp.dk/www/
> CustomLog c:/www/myhp.dk/access.log combined
> ErrorLog c:/www/myhp.dk/error.log
> 

Hello Dennis.

In this case (rewrite within the document root), you can easily use 
inside your  (just add the rules somewhere between the 
other directives):

RewriteEngine On
RewriteCond %{HTTP_HOST} ^([^.]+)\.myhp\.dk$
RewriteCond %1 !^www$
RewriteCond c:/www/myhp.dk/www/%1 -d
RewriteRule ^(.*) /%1/$1 [L]

You don't need any looping protection here, because there is no internal 
redirect in per-server context. Since you're on a windows system, there 
are no concerns about security. But if would use e.g. Linux, I'd 
strongly recommend to prefix the substitution with the document root 
(like RewriteRule ^(.*) /var/www/html/%1/$1 [L]), but again, there is no 
need here to use RewriteRule ^(.*) c:/www/myhp.dk/www/%1/$1 [L]

So you might test the rules inside your .

-- 
Robert

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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 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] Additional status codes

2006-03-04 Thread Michael Hauf

Hi,

our client wants to send certain data via http to our apache server (2.0.54-5). 
We are supposed to store that data in a directory.


The client wants to get a http response with a status code. If everything worked 
fine, we are supposed to send the status code 200 (OK). If an error occured, he 
wants us to send a status code between 100 and 199.


The codes 100 and 101 are already assigned to CONTINUE (100) and Switching 
Protocols (101). So we want to use status codes above 101 (i.e. 110). But, if we 
send such codes back via a cgi script, the apache returns the status code 500 
(Internal Server Error). I think, this code is sent back because apache doesn't 
know the code 110 and every unknown code leads to an internal server error.


How is it possible to implement additional codes in apache? Can we do that with 
changes in the configuration or do we have to write an apache module? Or what else?



Thanks in advance,

I hope someone can help!

Michael

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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] apr_sock

2006-03-04 Thread azeem ahmad

hi list
i have just installed apache
when i start or restart httpd it gives the following error
httpd: apr_sockaddr_info_get() failed for Alpha2

what the problem can be
Regards
Azeem



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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] new rpm

2006-03-04 Thread azeem ahmad

hi list
i have an apche installed in /etc/httpd
i want to install new rpm version in a different directory. the problem is 
that rpm version installs in /etc/httpd where my old apache is already 
working, how can i install rpm in a new directory


Regards
Azeem



-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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] new rpm

2006-03-04 Thread Gary W. Smith
Azeem, 

The problem isn't just the /etc/httpd directory but all dependency
directories.  This can be tricky.  I think the best way to do this is to
download the SRPM file, change the specs to have a different install
location for all files and recompile.

Gary 

> -Original Message-
> From: azeem ahmad [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 04, 2006 9:48 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] new rpm
> 
> hi list
> i have an apche installed in /etc/httpd
> i want to install new rpm version in a different directory. the
problem is
> that rpm version installs in /etc/httpd where my old apache is already
> working, how can i install rpm in a new directory
> 
> Regards
> Azeem
> 
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See 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 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] permission denied

2006-03-04 Thread azeem ahmad

hi list
i have installed apache 2.2.0 and configured webdav on it, suexec isnt 
installed, SELinux is disabled on the system

i have configured Webdav using following configuration


Alias /webdav/ "/var/www/webdav/"

   DAV On
   AuthType Basic
   AuthName "WebDAV Storgae"
   AuthUserFile /etc/httpd/passwd/passwd.dav



   Options +Indexes
   require user must


but when i goto access it
it says access denied
below is the error_log entry

[Sun Mar 05 00:10:32 2006] [error] [client 127.0.0.1] client denied by 
server configuration: /var/www/webdav/must


and below is error_log entry when set on debug
[Sun Mar 05 00:15:46 2006] [info] [client 192.168.3.8] Connection to child 0 
established (server www.example.com:443)

[Sun Mar 05 00:15:46 2006] [info] Seeding PRNG with 136 bytes of entropy
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1749): OpenSSL: 
Handshake: start
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1757): OpenSSL: Loop: 
before/accept initialization
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1775): OpenSSL: read 
11/11 bytes from BIO#8522e78 [mem: 8538838] (BIO dump follows)
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1722): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | : 16 03 00 
00 41 01 00 00-3d 03A...=.   |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1751): | 0011 - 
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1753): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1775): OpenSSL: read 
59/59 bytes from BIO#8522e78 [mem: 8538843] (BIO dump follows)
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1722): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | : 44 09 e7 
62 0e 4b c1 73-4a 4b 22 00 c9 05 84 24  D..b.K.sJK"$ |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0010: 62 98 b1 
66 af 29 c7 5a-c7 8b bc c7 62 8a b0 ca  b..f.).Zb... |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0020: 00 00 16 
00 04 00 05 00-0a 00 09 00 64 00 62 00  d.b. |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0030: 03 00 06 
00 13 00 12 00-63 01c.   |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1751): | 0059 - 
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1753): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1757): OpenSSL: Loop: 
SSLv3 read client hello A
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1757): OpenSSL: Loop: 
SSLv3 write server hello A
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1757): OpenSSL: Loop: 
SSLv3 write certificate A
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1757): OpenSSL: Loop: 
SSLv3 write server done A
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_kernel.c(1757): OpenSSL: Loop: 
SSLv3 flush data
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1775): OpenSSL: read 5/5 
bytes from BIO#8522e78 [mem: 8538838] (BIO dump follows)
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1722): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | : 16 03 00 
00 84   .|
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1753): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1775): OpenSSL: read 
132/132 bytes from BIO#8522e78 [mem: 853883d] (BIO dump follows)
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1722): 
+-+
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | : 10 00 00 
80 20 00 31 1c-6b ce d6 20 f2 f2 de ce   .1.k..  |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0010: 0f 9a a1 
3a 1d 58 31 5b-82 64 74 b8 e1 2f b5 45  ...:.X1[.dt../.E |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0020: 6c ed 3a 
62 26 92 06 2c-04 d0 a5 83 fb 80 60 2c  l.:b&..,..`, |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0030: 07 45 37 
bf 22 10 03 ea-05 26 41 c0 82 3e 7e 5a  .E7."&A..>~Z |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0040: 8f 6d cd 
cf 99 69 8c d6-2e da c1 c9 fa 5f 0a 3e  .m...i..._.> |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0050: 8b d2 86 
f0 c3 d7 26 fd-99 57 de 07 a8 06 92 e2  ..&..W.. |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0060: 6f e0 02 
47 e6 37 4b 8b-dd af 2d 0c ec e6 5e fc  o..G.7K...-...^. |
[Sun Mar 05 00:15:46 2006] [debug] ssl_engine_io.c(1747): | 0070: d0 87 cd 
3a 5f f0 

Re: [EMAIL PROTECTED] permission denied

2006-03-04 Thread Joshua Slive
On 3/4/06, azeem ahmad <[EMAIL PROTECTED]> wrote:
> hi list
> i have installed apache 2.2.0 and configured webdav on it, suexec isnt
> installed, SELinux is disabled on the system
> i have configured Webdav using following configuration
>
>
> Alias /webdav/ "/var/www/webdav/"
> 
>DAV On
>AuthType Basic
>AuthName "WebDAV Storgae"
>AuthUserFile /etc/httpd/passwd/passwd.dav
>
> 
> 
>Options +Indexes
>require user must
> 

In 2.2 the default config in  denies all access.  So
anywhere you want to access outside the DocumentRoot you'll need
Order Allow,Deny
Allow from all

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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] Segment Fault

2006-03-04 Thread Garry Taylor

Hi
Can anyone help me findout what is killing an apache child when I 
process a paypal script. The paypal script works from the command line 
and on other systems.


When I try to process of the new system I get an apache segment fault 
and the child dies.
I have tried running gbd but this produces nothing as I don't think 
debuging support was compliled in. I have also tried to enable CoreDump 
without any sucess. Also I don't really know how to get gdb to find the 
right pid for the child.


Log file show: [date and time] [notice] child pid 1685 exit signal 
Segmentation fault (11)


I have uninstalled and reinstalled all of the PayPal libs without sucess.

This is a live server so I am reluctent to reinstall apache. Does anyone 
have any ideas on what I could do next?


Thanx for any help you can give me.
PS I have Googled and read all the FAQ and tried everything from Apache 
Debuging page.

Giz

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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] serving pdf

2006-03-04 Thread Mike Dewhirst
How do I serve pdf output from python scripts directly to the user's 
browser?


I know I can write the output to a pdf file and then serve an 
intermediate page containing a link or button for the user to click but 
I want to bypass that step.


The pdf output contains info the user wants to remain private so it 
would be brilliant to avoid writing it as a file then linking to it. I 
suppose I could delete the file afterwards if I'm forced to go that way.


Also, we don't want the user to be able to alter the content hence html 
output - although easy - is not the way to go.


Thanks for hints or links to more info. Professor Google hasn't been so 
helpful so far.


Mike

-
The official User-To-User support forum of the Apache HTTP Server Project.
See 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]