chroot php5-cgi ohne kompletten apache zu chrooten
Hallo, momentan betreibe ich apache2 mit mod_fastcgi, suexec und php5-cgi, sodass ich jedem virtualhost mit einem eigenen benutzer laufen lassen kann. Jedoch ist mir eine Idee gekommen, wie ich die einzelnen Benutzer noch besser von einander abgrenzen kann. Momentan habe ich folgende Verzeichnisstruktur: /var/www domain1 conf cgi-bin web logs htdocs domain2 In jedem cgi-bin verzeichnis ist ein php-fcgi-starter skript, welches den php.ini pfad auf das jeweilige conf verzeichnis setzt und dann php5-cgi startet. Meine Idee ist es nun unterhalb von /var/www/domainX/web eine chroot-umgebung aufzubauen und irgendwie über das php-fcgi-starter-skript die chroot-umgebung zu starten und dort dann php5-cgi zu starten. Der Vorteil wäre, dass auch bessere php-Benutzer mit z.B. phpShell nur ihre Umgebung sehen. Nun jedoch meine Frage: Wie bekomme ich das hin? :-) Danke schonmal im Voraus für Tips, Tricks und so weiter Joerg Schoppet -- Apache HTTP Server Mailing List users-de unsubscribe-Anfragen an [EMAIL PROTECTED] sonstige Anfragen an [EMAIL PROTECTED] --
[EMAIL PROTECTED] compile apache 2.2.0 for IPv6 address.
Hi All, I compiled apache 2.2.0 successfully on Windows. But apache is not responding to IPv6 address. It says Internet explorer can not display the page What changes I should do in the configuration file. Do I need to compile the source code with some IPv6 option flag or something? Please reply. PS: I have configured my machine for IPv6 address. I am able to ping successfully. Thanks and Regards, Ashwani Sharma Mob: +91+9916454843 Off: +91-80-26265053 DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where. - 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] Does Alias /foo/bar/ work?
Several things here Thomas, Can you look in your errorlog [1] and paste the error's that relate to this 404. Do you have a global DirectoryIndex setup so Apache knows which file to serve by default, i.e. DirectoryIndex index.html as you have not specified one in your vhost it will take the gloable default, if you have one. Check this file exists. The logs will show us exaclty what is at fault here, and will help us diagnose the issue much more quickly [1] Look here to find it if you dont know where it is -- http://wiki.apache.org/httpd/DistrosDefaultLayout Tony thomas Armstrong wrote: Hi. Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an alias: /foo1/foo2/ -- /usr/www/example/foo2/ This is part of my 'httpd.conf': --- VirtualHost example.com DocumentRoot /usr/www/example/web ServerName example.com Alias /foo1/foo2/ /usr/www/example/foo2/ Directory /usr/www/example/foo2/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory /VirtualHost But if I access: http://example.com/foo1/foo2/ I get a 404 error. Any suggestion? 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] - 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] Moving Apache Binary
Actually you also have a third possibility which would allow you to run your apache from /home/abc/apache. You would need to do the following (from the top of my head): * Edit the file /home/abc/apache/bin/envvars and modify the paths as appropriate * Edit the file /home/abc/apache/bin/apachectl and modify the path assigned to the variable HTTPD as appropriate * Source /home/abc/apache/bin/envvars in your .profile so you can run httpd without using apachectl. I think that should do the trick. -ascs -Message d'origine- De : Tony Stevenson [mailto:[EMAIL PROTECTED] Envoyé : vendredi 16 novembre 2007 10:37 À : users@httpd.apache.org Objet : Re: [EMAIL PROTECTED] Moving Apache Binary Desai, You have two real options here: 1) Rebuild apache with the correct binary path int he ./configure script 2) Use a symlink I would personally go with option 1, but I just tried to avoid symlinks all over the place. Tony Desai Sunil Kumar wrote: Hi All, I have built Apache binary by specify path /home/xyz/apache in Linux. I want to just copy the binary folder to some other location for example /home/abc/apache. Then I tried executing httpd, I got library error not able to find libapr.so and libapr-util.so under the original path. Now is there a way to execute httpd by just moving the Apache binary folder. Please let me know. Reg Sunil Desai *DISCLAIMER:* This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where. - 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] Does Alias /foo/bar/ work?
Thank you very much, Tony. I've found out that my problem was another Alias directory: - Alias /foo1/ /usr/www/foo1/ - which I placed *after* Alias /foo1/foo2/. So Apache was looking for /usr/www/foo1/foo2 directory. You must place Alias /foo1/ *BEFORE* Alias /foo1/foo2 On Nov 16, 2007 10:35 AM, Tony Stevenson [EMAIL PROTECTED] wrote: Several things here Thomas, Can you look in your errorlog [1] and paste the error's that relate to this 404. Do you have a global DirectoryIndex setup so Apache knows which file to serve by default, i.e. DirectoryIndex index.html as you have not specified one in your vhost it will take the gloable default, if you have one. Check this file exists. The logs will show us exaclty what is at fault here, and will help us diagnose the issue much more quickly [1] Look here to find it if you dont know where it is -- http://wiki.apache.org/httpd/DistrosDefaultLayout Tony thomas Armstrong wrote: Hi. Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an alias: /foo1/foo2/ -- /usr/www/example/foo2/ This is part of my 'httpd.conf': --- VirtualHost example.com DocumentRoot /usr/www/example/web ServerName example.com Alias /foo1/foo2/ /usr/www/example/foo2/ Directory /usr/www/example/foo2/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory /VirtualHost But if I access: http://example.com/foo1/foo2/ I get a 404 error. Any suggestion? 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] - 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]
[EMAIL PROTECTED] Does Alias /foo/bar/ work?
Hi. Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an alias: /foo1/foo2/ -- /usr/www/example/foo2/ This is part of my 'httpd.conf': --- VirtualHost example.com DocumentRoot /usr/www/example/web ServerName example.com Alias /foo1/foo2/ /usr/www/example/foo2/ Directory /usr/www/example/foo2/ Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all DirectoryIndex index.php /Directory /VirtualHost But if I access: http://example.com/foo1/foo2/ I get a 404 error. Any suggestion? 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]
Re: [EMAIL PROTECTED] debugging strategies for httpd that kills the box
On Nov 16, 2007 2:19 AM, Christian Folini [EMAIL PROTECTED] wrote: Hey Greg, Hi Christian, thanks for your response. - Play around with MaxRequestsPerChild. A typical value I will do -- I experimented with low values (100-1000) in addition to 0, but nothing seemed to correlate. In my testing, the hangs would often occur long before this threshold was ever reached. - Did you compile apache yourself? Give it a try. I do. Most everything is installed from ports; I recompiled by hand when testing. - Have you tried to get the lock-up in a lab setup with apache bench or some other load generating tool? Yup -- ab was used to test each random tweak I made to try and isolate the problem. - You disabled mod_perl2 and mod_php. This sounds as if you would not really need them. (Or you sacrificed functionality :) They are both critical to our operation, but since the box was dead in the water anyway I took the opportunity to turn everything off and test each one in turn. I only mentioned them in particular because I figured they were the most likely suspects. :) then you might give it a try with another mpm. That crossed my mind as well, but I haven't had any experience with mod_perl2 and HTML::Mason under mpm, so I would have to do some research to see what I was getting into there. In the mean time, The Powers That Be have decided to build a replacement box so I can pull this one off the wire and do more testing. Hard to debug a problem that kills the production machine resonsible for web, storefront, email and support chat. Good luck - and keep us informed on how it goes. Thanks, I will. -G - 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] debugging strategies for httpd that kills the box
On Nov 16, 2007 10:39 AM, Christian Folini [EMAIL PROTECTED] wrote: On Fri, Nov 16, 2007 at 10:06:50AM -0500, Greg Boyington wrote: - Play around with MaxRequestsPerChild. A typical value I will do -- I experimented with low values (100-1000) in addition to 0, but nothing seemed to correlate. In my testing, the hangs would often occur long before this threshold was ever reached. The directive means to let a child process die and fork it anew after n individual request for this particular child process. Indeed; I monitored the request counts via Apache2::VMonitor; sometimes processes would reach the MaxRequestsPerChild and die/fork before the lockup, sometimes not. I will experiment with mod_status and mod_diagnostics once the box is off the wire; thanks for the suggestions. I'll post my progress, if there is any. :) -G - 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: [SPAM] - [EMAIL PROTECTED] Apache2 and thttp - Email found in subject
What seems to be the problem? -Original Message- From: Meltem Hastanesi [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 9:11 AM To: users@httpd.apache.org Subject: [SPAM] - [EMAIL PROTECTED] Apache2 and thttp - Email found in subject Hello all, Could someone please tell me where to find documentation to run apache2 and thttp server on same linux box? Thanks many... Ali Akkaya Meltem Hastanesi IT Department -- View this message in context: http://www.nabble.com/Apache2-and-thttp-tf4821513.html#a13793946 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. - 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] This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. FXDirectDealer, LLC reserves the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them. Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal confirmation. FXDirectDealer, LLC is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. - 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] Installing PHP module as CGI
Dear all, I'm not sure this is the right place where send this support request, but I try... I have a server with an Apache 2 installed, compiled as threaded MPM. I've tried to install PHP as module, but it seems very hard to install PHP as module while Apache is threaded MPM. PHP manual suggests to install PHP as CGI but I don't know how to do it. Can you tell me a way? Thanks in advance. Luigi - 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] Moving Apache Binary
Desai, You have two real options here: 1) Rebuild apache with the correct binary path int he ./configure script 2) Use a symlink I would personally go with option 1, but I just tried to avoid symlinks all over the place. Tony Desai Sunil Kumar wrote: Hi All, I have built Apache binary by specify path /home/xyz/apache in Linux. I want to just copy the binary folder to some other location for example /home/abc/apache. Then I tried executing httpd, I got library error not able to find libapr.so and libapr-util.so under the original path. Now is there a way to execute httpd by just moving the Apache binary folder. Please let me know. Reg Sunil Desai *DISCLAIMER:* This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where. - 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] Moving Apache Binary
Hi All, I have built Apache binary by specify path /home/xyz/apache in Linux. I want to just copy the binary folder to some other location for example /home/abc/apache. Then I tried executing httpd, I got library error not able to find libapr.so and libapr-util.so under the original path. Now is there a way to execute httpd by just moving the Apache binary folder. Please let me know. Reg Sunil Desai DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
[EMAIL PROTECTED] Intermittent Server Access
Hi, For a number of weeks I have been puzzling over a strange problem. My Web Server is only available to visitors intermittently! A remote request is made and the browser returns a message server not found, several seconds or minutes even hours later everything is OK. I have experienced this myself sometimes too, and sometimes all I have to do is refresh the page and everything is OK. Sometimes I have to open a new window to get what I want but what is interesting is that if I Ping my domain Name the process does not return an IP Address sometimes. If I try the ping process several times I eventually get my servers IP address and if I then use a browser I get my web page too. I was in a position to sit in front a PC on my local LAN today monitoring all traffic in out of my Router whilst a friend tried to request a web page. No incoming traffic and he didn't get a web page either, I ask him to ping my domain name and he got nothing (No ip address returned) and I asked him to ping my ip address and he gets a response. I ask him to make an addition to his hosts file and everything worked fine, I ask him to comment it out and he gets nothing, moments later all is well. This is an intermittent problem, a problem that I would like to resolve but how? For weeks I have believed that the problem could of been my aging server, a dodgy connection or cable or a faulty Router but after I have asked a friend to test a few things for me at the command prompt and the use of his hosts file whilst I monitor my routers activity I think the problem is elsewhere. Are some Domain Name servers dropping my Domain Name entry or is there something going on! This is so frustrating My thoughts and ideas welcome. Regards Mark - 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] debugging strategies for httpd that kills the box
On Fri, Nov 16, 2007 at 10:06:50AM -0500, Greg Boyington wrote: - Play around with MaxRequestsPerChild. A typical value I will do -- I experimented with low values (100-1000) in addition to 0, but nothing seemed to correlate. In my testing, the hangs would often occur long before this threshold was ever reached. The directive means to let a child process die and fork it anew after n individual request for this particular child process. You can try and keep an eye on these children with mod_status, write it all into a logfile and reconstruct when the lockup occurs. Not sure it's of any use though. ;( You mentioned httpd -X. Maybe you try and follow the process(es) during the lockup with strace/truss. Besides, I forgot to mention, that there is mod_diagnostics by Nick Kew. Itis mentioned here from time to time. See http://apache.webthing.com/mod_diagnostics/ Nick will be able to give you specific hints on how to use it. mod_forensic can also help to nail down the bad request. But it sounds, like your problem is not about a specific request. Otherwise, I am slowly running out of ideas and you have done all your homework before. It's really hard to recommend anything here. At least for me, but that does not say much. regs, Christian - 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] Can Apache 2 run mod_perl then php?
Blaine Everingham wrote: I'm still having an issue tying to get this running. Below is what I have so far, however I believe that the output filter of x-httpd-php is wrong. I'm not sure where I would find the compiled filter name for this. Does anyone know? It's borked - you specified the x-httpd-php CONTENT GENERATOR. You wanted the PHP output filter, provided you build and load the apache2filter sapi. (NOT apache2handler sapi!) Bill - 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] defining subdomains rewrite-rule outside of vhosts
Hey guys, I am looking for a way to put my rewrite rule for subdomains outside of each virtual host into the global config to safe space and simplify my configuration. Here is what I tried. We own the domains kilu.de, kilu2.de and netgag.de. And we give username.kilu.de to our users. Our users are able to define subdomains like sub.username.kilu.de and those requests should go to the sub-folder. Here is what I tried: IfModule mod_rewrite.c RewriteEngine On RewriteCond %{HTTP_HOST} !^(www.)?([a-z0-9-]+).(netgag|kilu[23]?).de$ [NC] RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).([a-z0-9-]+).(netgag|kilu[23]?).de [NC] RewriteRule (.*) %2/$1 [L] /IfModule Unfortunately this doesn't work. The rewrite rule does not redirect a request to sub.username.kilu.de. Does anybody see the mistake? Regards, Samy - 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] Can Apache 2 run mod_perl then php?
I'm still having an issue tying to get this running. Below is what I have so far, however I believe that the output filter of x-httpd-php is wrong. I'm not sure where I would find the compiled filter name for this. Does anyone know? Directory /www/test Options -Indexes FollowSymLinks ## Set perl to handle the request SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI Order allow,deny Allow from all AddOutputFilter x-httpd-php html /Directory At 11:29 AM 15/11/2007, you wrote: I know it should be possible. I've never actually done it but I know the theory and can try to point you in the right direction... You'd want to compile mod_php as a filter, not a handler, and have mod_perl run as a response handler. In addition, you'd want to SetOutputFilter PHP for the request and possible have mod_perl set the content-type to application/x-httpd-php Give that a try and see if it does what you want. Issac Blaine Everingham wrote: Hi, I think I might of read something somewhere that indicated that Apache 2 could run multiple application layers before displaying content. However, I can not find this again, and any information would be helpful. Does anyone know if it's possible to have 1) Apache run mod perl (obviously it can) 2) Then take the mod_perl resulting page and parse it using PHP 3) Display the output Thanks, Blaine - 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] _ Blaine Everingham, Software Developer World Web Technologies Inc. Direct: 403 218-4663 Office: 403 777-9300 Toll Free: 1-800-221-3429 Fax: 403 777-9304 http://www.worldweb.com/WorldWeb.com | internet + travel - 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] can Apache proxy convert a HTTP request to HTTPS and proxy it to a HTTPS Server?
Hello, There is a need that an Apache server converts a HTTP request to HTTPS, and proxies it to the backend HTTPS server. Can an Apache instance do it? Many Thanks, Q.Xie Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs - 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] How to link libapr and libapr-util statically with httpd
Hi All, I want to build httpd which is linked statically to libapr.a and libapr-util.a. I do not want httpd to be dependent on dynamic libraries of apr and apr-util. Please let me know if anybody has any idea Reg Sunil Desai DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
[EMAIL PROTECTED] Mod_vhost_dbi (or other modules) possibilities
Hi list, I want to be able to store my virtual host directives into a mysql database for two reasons: * I want to provide a web based frontend so end users can edit their own virtual host. * I want configration changes to have immediate effect. From what I understood it's quite straight forward to have single entries stored in the sql database like documentroot or something like that. Can I store a Virtual's host location based entries in such a setup? If so, .. How can I do that ? Location /test1 ProxyPass http://internalhost:8080/test1 ProxyPassReverse http://internalhost:8080/test1 /Location Location /test2 ProxyPass http://internalhost:8180/test2 ProxyPassReverse http://internalhost:8180/test2 /Location One virtual host can contain more location entries then another,... If this is not possible with mod_vhost_dbi, are there any other modules/tools I could use for this ? Cheers, Js - 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] Apache2 and thttp
Hello all, Could someone please tell me where to find documentation to run apache2 and thttp server on same linux box? Thanks many... Ali Akkaya Meltem Hastanesi IT Department -- View this message in context: http://www.nabble.com/Apache2-and-thttp-tf4821513.html#a13793946 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. - 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] can Apache proxy convert a HTTP request to HTTPS and proxy it to a HTTPS Server?
On Nov 16, 2007 8:14 PM, Qingshan Xie [EMAIL PROTECTED] wrote: Hello, There is a need that an Apache server converts a HTTP request to HTTPS, and proxies it to the backend HTTPS server. Can an Apache instance do it? Yes Apache can do this. However not out of the box. See: http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslproxyengine For example add the following to your config: SSLProxyEngine on SSLProxyMachineCertificatePath /usr/local/apache2/conf/proxy.crt/ You can of course use another path, but it must contain the PEM encoded root certificate used to sign the certificates the servers you want to communicate with use. These you will have to provide yourself. Once you have that you ought to be possible to do something like this: ProxyPass/mysite https://www.myothersite.com/foo HTH, Krist -- [EMAIL PROTECTED] [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - 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] mainting session cookies with a reverse proxy
I used the tools and there is no path or domain in the original cookie that ican see. I know it is encrypted under MD5 so maybe icant access the cookie and change it. Is there a way to hold a cookie with in the prroxy server itself? Axel-Stephane SMORGRAV-2 wrote: Since your ProxyPass directive does not modify the URL path, you will only need ProxyPassReverseCookieDomain. Rather than working in the dark, the best approach is to use a tool such as Firefox LiveHTTPheaders, or HTTPWatch (MSIE) to observe the cookies that are returned by the application server and see what cookie domain they contain. If that domain is obviously such that the browser will not submit it to the RP, then you definitely need a ProxyPassReverseCookieDomain. If you use FF but do not have LiveHTPHeaders and do not wish to install it, clear all the cookies in your browser (ToolsOptionsPrivacyShow CookiesRemoveAllCookies), connect to your application through the RP, and then see what cookies have appeared in the Show Cookies window. In the bottom pane you will see all cookie details, including the path and domain. Use that information to determine the right argument to ProxyPassReverseCookieDomain. -ascs -Message d'origine- De : dertown [mailto:[EMAIL PROTECTED] Envoyé : jeudi 15 novembre 2007 20:03 À : users@httpd.apache.org Objet : Re: [EMAIL PROTECTED] mainting session cookies with a reverse proxy I am running a reverse proxy to a back end web app with its own sign that uses session cookies. here is an what i have configured for the proxy the web app is an ajax app. virtual host *:443 ProxyRequests Off ProxySSLEngine On ProxyPass / https://appserver.domain.com ProxyPassReverse / https://appserver.domain.com ProxyPassReverseCookieDomain appserver.domain.com proxy.domain.com ProxyPassReverseCookiePath proxy.domain.com / /virtualhost that is the example it is withn a - 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] -- View this message in context: http://www.nabble.com/mainting-session-cookies-with-a-reverse-proxy-tf4814291.html#a13802763 Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com. - 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] Forbidden error using mod_userdir.c
Hello, I have interesting issue with mod_userdir.c to allow users to show their websites from their directories. I'm running RHL5 with httpd server 2.2.6 and SELinux is in permissive mode. These directories are symbolic links to NFS mount but I thought SymLinks would allow this. I have rebooted the server and this still happens. The links are readable by everyone and I though I had the permissions correct. Here is a excerpt of my httpd.conf: IfModule mod_userdir.c UserDir nfsmount/public_html /IfModule # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # Directory /home/*/nfsmount/public_html AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Limit GET POST OPTIONS PROPFIND Order allow,deny Allow from all /Limit LimitExcept GET POST OPTIONS PROPFIND Order deny,allow Deny from all /LimitExcept /Directory Directory /home/*/public_html AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Limit GET POST OPTIONS PROPFIND Order allow,deny Allow from all /Limit LimitExcept GET POST OPTIONS PROPFIND Order deny,allow Deny from all /LimitExcept /Directory Here is an excerpt from my error_log from httpd: [error] [client xxx.xxx.xxx.xxx] (13)Permission denied: access to /~username/ denied [error] [client xxx.xxx.xxx.xxx] Symbolic link not allowed or link target not accessible: /home/username/nucleus Is there something I'm missing here? Thank you, Frank - 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] Forbidden error using mod_userdir.c
On Nov 16, 2007 6:22 PM, fchan [EMAIL PROTECTED] wrote: Here is an excerpt from my error_log from httpd: [error] [client xxx.xxx.xxx.xxx] (13)Permission denied: access to /~username/ denied [error] [client xxx.xxx.xxx.xxx] Symbolic link not allowed or link target not accessible: /home/username/nucleus The User/Group specified in httpd.conf must have read permissions on the file and search (+x) permissions on the directory where the file is located AND ALL PARENT DIRECTORIES to that directory. 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] Forbidden error using mod_userdir.c
[Please keep your messages on the list.] On Nov 16, 2007 8:10 PM, fchan [EMAIL PROTECTED] wrote: Hi Joshua, I have rwxr-xr-x on /home and the user's directory. The symbolic link to the nfs mount is rwxrwxrwx in the user's directory. Actually I copied these settings from my original server that working before but the old system was running httpd 1.3 server on old RHL 9.0 system. Any other permission ideas? You need to check all the parent directories of the link TARGET. This is a unix permissions issue, it has nothing to do with httpd configuration or version. 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] Intermittent Server Access
On Nov 16, 2007 10:58 AM, Mark Feather [EMAIL PROTECTED] wrote: I ask him to make an addition to his hosts file and everything worked fine, I ask him to comment it out and he gets nothing, moments later all is well. Clearly there is a DNS problem Unfortunately that is not within the scope of this list as it seems unrelated to apache so you probably won't get too many replies here. Good luck. - 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]